forgot "%global" would be expanded before the "shell if"

This commit is contained in:
Pratham Patel 2023-10-09 10:14:32 +05:30
parent 605d2bbcc1
commit 5bcf420cc3
No known key found for this signature in database

View File

@ -102,10 +102,10 @@ cp -vr kernel-tfg/{configure-linux.sh,extra-configs} .
rm -rf kernel-tfg/
./configure-linux.sh
if [[ "%{name}" =~ 'opi5' ]]; then
sed -i 's@KBUILD_IMAGE := $(boot)/Image.gz@KBUILD_IMAGE := $(boot)/Image@' arch/arm64/Makefile
%global make_targets olddefconfig Image modules dtbs
fi
%if "%{name}" == "*opi5*"
sed -i 's@KBUILD_IMAGE := $(boot)/Image.gz@KBUILD_IMAGE := $(boot)/Image@' arch/arm64/Makefile
%global make_targets olddefconfig Image modules dtbs
%endif
%build
%{make} PYTHON=%{__python3} %{make_targets}