core/linux-raspberrypi4 to 5.10.63-16

This commit is contained in:
Kevin Mihelich 2021-10-07 01:43:59 +00:00
parent bb2fa149a2
commit 4fccd9dad9
4 changed files with 59 additions and 3 deletions

View file

@ -0,0 +1,11 @@
[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

@ -0,0 +1,13 @@
[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

@ -12,7 +12,7 @@ _srcname=linux-${_commit}
_kernelname=${pkgbase#linux}
_desc="RPi 3/4/400"
pkgver=5.10.63
pkgrel=15
pkgrel=16
pkgdesc='Linux'
url="http://www.kernel.org/"
arch=(armv7h aarch64)
@ -26,10 +26,16 @@ source_aarch64=('config8' 'config8.txt')
source=("https://github.com/raspberrypi/linux/archive/${_commit}.tar.gz"
cmdline.txt
0001-Make-proc-cpuinfo-consistent-on-arm64-and-arm.patch
linux.preset
60-linux.hook
90-linux.hook
)
md5sums=('8b6f5b06d5a252cbb06ea1b33ee45c25'
'31c02f4518d46deb5f0c2ad1f8b083cd'
'f66a7ea3feb708d398ef57e4da4815e9')
'f66a7ea3feb708d398ef57e4da4815e9'
'86d4a35722b5410e3b29fc92dae15d4b'
'0a5f16bfec6ad982a2f6782724cca8ba'
'441ec084c47cddc53e592fb0cbce4edf')
md5sums_armv7h=('50e8caecceed5b0e959f1e62b0a481e8'
'9669d916a5929a2eedbd64477f83d99e')
md5sums_aarch64=('f7855453cf26a32256472c34f67748cf'
@ -38,7 +44,7 @@ md5sums_aarch64=('f7855453cf26a32256472c34f67748cf'
# setup vars
if [[ $CARCH == "armv7h" ]]; then
_kernel=kernel7.img KARCH=arm _image=zImage _config=config _bconfig=config.txt
else [[ $CARCH == "aarch64" ]]; then
elif [[ $CARCH == "aarch64" ]]; then
_kernel=kernel8.img KARCH=arm64 _image=Image _config=config8 _bconfig=config8.txt
fi
@ -106,6 +112,22 @@ _package() {
cp arch/$KARCH/boot/dts/overlays/README "${pkgdir}/boot/overlays"
install -m644 ../$_bconfig "${pkgdir}/boot/config.txt"
install -m644 ../cmdline.txt "${pkgdir}/boot"
# sed expression for following substitutions
local _subst="
s|%PKGBASE%|${pkgbase}|g
s|%KERNVER%|${kernver}|g
"
# install mkinitcpio preset file
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"
}
_package-headers() {

View file

@ -0,0 +1,10 @@
# mkinitcpio preset file for the '%PKGBASE%' package
ALL_config="/etc/mkinitcpio.conf"
ALL_kver="%KERNVER%"
PRESETS=('default')
#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-linux.img"
#default_options=""