account for the missing "kernel-tfg/extra-configs" dir if it is empty

This commit is contained in:
Pratham Patel 2023-10-28 09:43:47 +05:30
parent df096cde95
commit 3a132fa198
No known key found for this signature in database
2 changed files with 8 additions and 4 deletions

View File

@ -2,4 +2,4 @@
set -xeu set -xeu
find ./extra-configs -name "*.sh" -exec "{}" \; || echo "Extra configs not found, not modifying anything" find ./extra-configs -name "*.sh" -exec "{}" \;

View File

@ -97,9 +97,13 @@ export LLVM=1 AR=llvm-ar CC=clang HOSTAR=llvm-ar HOSTCC=clang HOSTCXX=clang++ HO
%{make} defconfig %{make} defconfig
tar -xf %{SOURCE2} -C . tar -xf %{SOURCE2} -C .
if [ -d 'kernel-tfg/extra-configs' ]; then
cp -vr kernel-tfg/{configure-linux.sh,extra-configs} . cp -vr kernel-tfg/{configure-linux.sh,extra-configs} .
rm -rf kernel-tfg/ rm -rf kernel-tfg/
./configure-linux.sh ./configure-linux.sh
else
echo "Extra configs not found, not modifying anything"
fi
%build %build
%{make} PYTHON=%{__python3} %{make_targets} %{make} PYTHON=%{__python3} %{make_targets}