core/linux-rpi: re-enable LRU_GEN by default for armv7h

This commit is contained in:
graysky 2023-12-14 05:59:04 -05:00
parent 73fc053739
commit 4e2be1fd1f

View file

@ -69,10 +69,12 @@ prepare() {
if [[ $CARCH == "armv7h" ]]; then
# https://archlinuxarm.org/forum/viewtopic.php?f=23&t=16373
scripts/config --enable CONFIG_BCM2835_THERMAL
# workaround OOM killer issue
# https://github.com/raspberrypi/linux/issues/5395
# re-enable LRU_GEN by default as the intial observation that it was to blame
# for triggering OOM was likely a false positive, see:
# https://github.com/raspberrypi/linux/issues/5395#issuecomment-1854410361
# https://archlinuxarm.org/forum/viewtopic.php?f=23&t=16377
scripts/config --disable CONFIG_LRU_GEN_ENABLED
scripts/config --enable CONFIG_LRU_GEN_ENABLED
fi
sed '/^CONFIG_LOCALVERSION=/s,.*$,CONFIG_LOCALVERSION="-ARCH",' .config >$startdir/newconfig.$_config
echo "verify that newconfig.$_config is fit for purpose then redefine $_config"