mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-09 00:17:31 +00:00
core/linux-rpi: tweak default config generation
This commit is contained in:
parent
09ce857548
commit
7931b9475d
1 changed files with 8 additions and 3 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue