Sophie

Sophie

distrib > Mageia > 8 > i586 > by-pkgid > f65f1d773383ac49d6fcc3657259ff43 > files > 63

kernel-5.10.45-2.mga8.src.rpm

pushd $(ls -d BUILD/kernel-*/linux* | tail -n1)
cp -a ../../../SOURCES/defconfig-* .
first=1
for arch in x86_64 i386 arm64 arm; do
    for config in defconfig-$arch-*; do
	echo "updating config: $config"
	mv $config .config
	yes '' | make oldconfig ARCH=$arch
	mv .config $config
	if [ $first == 1 ]; then
	    first=0
	    # First time reuse the selections from first one to avoid answering same questions many times
	    # This means ithe user needs to remember when something is specific to x86_64-desktop to disable it in others
	    for arch2 in x86_64 i386 arm64 arm; do
		for config2 in defconfig-$arch2-*; do
		    [ $config -ne $config2 ] && diff -u ../../../SOURCES/$config $config | sed -n 's/^\+//p'
		done
	    done
	fi
    done
done
cp -af defconfig-* ../../../SOURCES/
popd