account for the missing "kernel-tfg/extra-configs" dir if it is empty
This commit is contained in:
parent
df096cde95
commit
3a132fa198
@ -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 "{}" \;
|
||||||
|
10
master.inc
10
master.inc
@ -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 .
|
||||||
cp -vr kernel-tfg/{configure-linux.sh,extra-configs} .
|
if [ -d 'kernel-tfg/extra-configs' ]; then
|
||||||
rm -rf kernel-tfg/
|
cp -vr kernel-tfg/{configure-linux.sh,extra-configs} .
|
||||||
./configure-linux.sh
|
rm -rf kernel-tfg/
|
||||||
|
./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}
|
||||||
|
Loading…
Reference in New Issue
Block a user