use defconfig for stable and lts

This commit is contained in:
Pratham Patel 2023-10-22 14:06:45 +05:30
parent 1291168c6f
commit 0374272a89
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

View File

@ -95,12 +95,16 @@ export LLVM=1 AR=llvm-ar CC=clang HOSTAR=llvm-ar HOSTCC=clang HOSTCXX=clang++ HO
[ -f .config ] && rm -vf .config*
%{make} distclean
%if "%{kname}" == "stable" || "%{kname}" == "lts"
%{make} defconfig
%else
cp %{SOURCE3} .config
tar -xf %{SOURCE2} -C .
cp -vr kernel-tfg/{configure-linux.sh,extra-configs} .
rm -rf kernel-tfg/
./configure-linux.sh
%endif
%build
%{make} PYTHON=%{__python3} %{make_targets}