diff --git a/core/linux-rpi/PKGBUILD b/core/linux-rpi/PKGBUILD index cb14dcdba..50b96be2b 100644 --- a/core/linux-rpi/PKGBUILD +++ b/core/linux-rpi/PKGBUILD @@ -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 $(