core/linux-rpi: tweak default config generation

This commit is contained in:
graysky 2023-02-14 07:54:00 -05:00
parent 09ce857548
commit 7931b9475d

View file

@ -43,9 +43,9 @@ md5sums_aarch64=('a38dce60d48211728bbe23e67b86f68d'
# setup vars
if [[ $CARCH == "armv7h" ]]; then
_kernel=kernel7.img KARCH=arm _image=zImage _config=config _bconfig=config.txt _name='-v7l'
_kernel=kernel7.img KARCH=arm _image=zImage _config=config _bconfig=config.txt
elif [[ $CARCH == "aarch64" ]]; then
_kernel=kernel8.img KARCH=arm64 _image=Image _config=config8 _bconfig=config8.txt _name='-v8'
_kernel=kernel8.img KARCH=arm64 _image=Image _config=config8 _bconfig=config8.txt
fi
prepare() {
@ -65,7 +65,11 @@ prepare() {
make bcm2711_defconfig
cat ../archarm.diffconfig >> .config
make oldconfig
sed "s/$_name/-ARCH/" .config >$startdir/newconfig.$_config
if [[ $CARCH == "armv7h" ]]; then
# https://archlinuxarm.org/forum/viewtopic.php?f=23&t=16373
scripts/config --enable CONFIG_BCM2835_THERMAL
fi
sed '/^CONFIG_LOCALVERSION=/s,.*$,CONFIG_LOCALVERSION="-ARCH",' .config >$startdir/newconfig.$_config
echo "verify that newconfig.$_config is fit for purpose then redefine $_config"
exit
else
@ -75,6 +79,7 @@ prepare() {
make -s kernelrelease > version
echo "Prepared $pkgbase version $(<version)"
fi
}
build() {