diff --git a/master.inc b/master.inc index 1ebf4f8..f51c82b 100644 --- a/master.inc +++ b/master.inc @@ -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}