core/linux-rpi to 6.6.11-2

* Remove trailing -ARCH from kernel release
* Remove unneeded 60-linux.hook and 90-linux.hook
  * 60-linux.hook is redundant as 60-depmod.hook provided by kmod handles it
  * 90-linux.hook is redundant and causes mkinitcpio to run twice under certain
    circumstances so instead, simply write a 0-byte 'vmlinuz' which will trigger
    90-mkinitcpio-install.hook from mkinitcpio.
This commit is contained in:
graysky 2024-01-14 07:22:02 -05:00
parent babd80243f
commit 07b8e7adb8
5 changed files with 12 additions and 42 deletions

View file

@ -1,11 +0,0 @@
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Operation = Remove
Target = usr/lib/modules/%KERNVER%/*
[Action]
Description = Updating %PKGBASE% module dependencies...
When = PostTransaction
Exec = /usr/bin/depmod %KERNVER%

View file

@ -1,13 +0,0 @@
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Target = boot/kernel.img
Target = boot/kernel7.img
Target = boot/kernel8.img
Target = usr/lib/initcpio/*
[Action]
Description = Updating %PKGBASE% initcpios...
When = PostTransaction
Exec = /usr/bin/mkinitcpio -p %PKGBASE%

View file

@ -10,7 +10,7 @@ _srcname=linux-${_commit}
_kernelname=${pkgbase#linux}
_regen=
pkgver=6.6.11
pkgrel=1
pkgrel=2
pkgdesc='Linux'
url="https://github.com/raspberrypi/linux"
arch=(armv7h aarch64)
@ -28,8 +28,6 @@ source=("linux-$pkgver-${_commit:0:10}.tar.gz::https://github.com/raspberrypi/li
config.txt
0001-Make-proc-cpuinfo-consistent-on-arm64-and-arm.patch
linux.preset
60-linux.hook
90-linux.hook
archarm.diffconfig
)
md5sums=('4fccdacbd5f97ff0e0b85c29efffecd9'
@ -37,11 +35,9 @@ md5sums=('4fccdacbd5f97ff0e0b85c29efffecd9'
'16c484af9f72b9275afcf83a6b8eab36'
'f66a7ea3feb708d398ef57e4da4815e9'
'86d4a35722b5410e3b29fc92dae15d4b'
'0a5f16bfec6ad982a2f6782724cca8ba'
'441ec084c47cddc53e592fb0cbce4edf'
'c8f84694321e249492c80149833671d7')
md5sums_armv7h=('249f5f5e7f7985c0a13f6b1669b13c12')
md5sums_aarch64=('7141b36bf441654769cdbd0038a986de')
md5sums_armv7h=('d0f6f5760648f67d334ee8985bc37553')
md5sums_aarch64=('814310e1fdf35c32129255cf14cf13df')
# setup vars
if [[ $CARCH == "armv7h" ]]; then
@ -76,17 +72,17 @@ prepare() {
# https://archlinuxarm.org/forum/viewtopic.php?f=23&t=16377
scripts/config --enable CONFIG_LRU_GEN_ENABLED
fi
sed '/^CONFIG_LOCALVERSION=/s,.*$,CONFIG_LOCALVERSION="-ARCH",' .config >$startdir/newconfig.$_config
# bcm2711_defconfig inserts either -v7l or -v8 for CONFIG_LOCALVERSION= so set this to null
sed '/^CONFIG_LOCALVERSION=/s,.*$,CONFIG_LOCALVERSION="",' .config >$startdir/newconfig.$_config
echo "verify that newconfig.$_config is fit for purpose then redefine $_config"
exit
else
make bcm2711_defconfig
make -s kernelrelease | sed 's/rpi-.*$/rpi-ARCH/' > version
make mrproper
echo "Setting config..."
cp ../"$_config" .config
make olddefconfig
diff -u ../"$_config" .config || :
make -s kernelrelease > version
echo "Prepared $pkgbase version $(<version)"
fi
}
@ -163,11 +159,9 @@ _package() {
sed "${_subst}" ../linux.preset |
install -Dm644 /dev/stdin "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"
# install pacman hooks
sed "${_subst}" ../60-linux.hook |
install -Dm644 /dev/stdin "${pkgdir}/usr/share/libalpm/hooks/60-${pkgbase}.hook"
sed "${_subst}" ../90-linux.hook |
install -Dm644 /dev/stdin "${pkgdir}/usr/share/libalpm/hooks/90-${pkgbase}.hook"
# rather than use another hook (90-linux.hook) rely on kmod's 90-mkinitcpio-install.hook
# which avoids a double run of mkinitcpio that can occur
touch "${pkgdir}/usr/lib/modules/$(<version)/vmlinuz"
}
_package-headers() {

View file

@ -28,7 +28,7 @@ CONFIG_THREAD_INFO_IN_TASK=y
CONFIG_INIT_ENV_ARG_LIMIT=32
# CONFIG_COMPILE_TEST is not set
# CONFIG_WERROR is not set
CONFIG_LOCALVERSION="-ARCH"
CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_BUILD_SALT=""
CONFIG_HAVE_KERNEL_GZIP=y

View file

@ -28,7 +28,7 @@ CONFIG_THREAD_INFO_IN_TASK=y
CONFIG_INIT_ENV_ARG_LIMIT=32
# CONFIG_COMPILE_TEST is not set
# CONFIG_WERROR is not set
CONFIG_LOCALVERSION="-ARCH"
CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_BUILD_SALT=""
CONFIG_DEFAULT_INIT=""