ML should automatically support new options

This commit is contained in:
Mustafa Gezen 2023-10-16 23:01:52 +02:00
parent a3dca2b5ba
commit 20e05daf49
Signed by: mustafa
GPG Key ID: DCDF010D946438C1

View File

@ -574,8 +574,9 @@ sed -i "s@^EXTRAVERSION.*@EXTRAVERSION = -%{release}.%{_target_cpu}@" Makefile
cp config-%{_target_cpu} .config
%{__make} -s ARCH=%{bldarch} listnewconfig | grep -E '^CONFIG_' > newoptions-%{_target_cpu}.txt || true
if [ -s newoptions-%{_target_cpu}.txt ]; then
cat newoptions-%{_target_cpu}.txt
exit 1
# We're just automatically adding new options, think of it as rolling.
# If something breaks we can disable it explicitly.
cat newoptions-%{_target_cpu}.txt >> .config
fi
rm -f newoptions-%{_target_cpu}.txt
%endif