core/linux-aarch64 to 6.7.5-1

1. Update to current mainline kernel building on:
   * https://github.com/archlinuxarm/PKGBUILDs/pull/2010
   * https://github.com/archlinuxarm/PKGBUILDs/pull/2014

2. 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 file to trigger
     90-mkinitcpio-install.hook from mkinitcpio.

3. Add config options for rock64 (credit to @anarsoul)

Run-tested: RPi4B, Radxa Rock Pi 4, rock64, rockpro64
This commit is contained in:
graysky 2024-02-13 10:44:10 -05:00
parent 8cfa6eaad9
commit 0f2bbe5123
4 changed files with 671 additions and 322 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,11 +0,0 @@
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Target = boot/Image
Target = usr/lib/initcpio/*
[Action]
Description = Updating %PKGBASE% initcpios...
When = PostTransaction
Exec = /usr/bin/mkinitcpio -p %PKGBASE%

View file

@ -4,10 +4,10 @@
buildarch=8
pkgbase=linux-aarch64
_srcname=linux-6.2
_srcname=linux-6.7
_kernelname=${pkgbase#linux}
_desc="AArch64 multi-platform"
pkgver=6.2.10
pkgver=6.7.5
pkgrel=1
arch=('aarch64')
url="http://www.kernel.org/"
@ -22,26 +22,21 @@ source=("http://www.kernel.org/pub/linux/kernel/v6.x/${_srcname}.tar.xz"
'generate_chromebook_its.sh'
'kernel.keyblock'
'kernel_data_key.vbprivk'
'linux.preset'
'60-linux.hook'
'90-linux.hook')
md5sums=('787862593d7bf354cf1a5c37e21fc147'
'e0221ea0e6eeb147c29d2fd72e987ed5'
'linux.preset')
md5sums=('7861a2ed9d33c0694df738203532b715'
'095742952c5dad8765be4c086568d052'
'7b08a199a97e3e2288e5c03d8e8ded2d'
'c9d4e392555b77034e24e9f87c5ff0b3'
'f1379ae267804a7820963dd0527f11a8'
'9d55c60a161423c7beba6fb5eb9f859a'
'7c97cf141750ad810235b1ad06eb9f75'
'61c5ff73c136ed07a7aadbf58db3d96a'
'584777ae88bce2c5659960151b64c7d8'
'41cb5fef62715ead2dd109dbea8413d6'
'0a5f16bfec6ad982a2f6782724cca8ba'
'3dc88030a8f2f5a5f97266d99b149f77')
'41cb5fef62715ead2dd109dbea8413d6')
prepare() {
cd $_srcname
echo "Setting version..."
scripts/setlocalversion --save-scmversion
echo "-$pkgrel" > localversion.10-pkgrel
echo "${pkgbase#linux}" > localversion.20-pkgname
@ -89,8 +84,8 @@ _package() {
echo "Installing modules..."
make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 modules_install
# remove build and source links
rm "$modulesdir"/{source,build}
# remove build link
rm "$modulesdir"/build
# sed expression for following substitutions
local _subst="
@ -102,11 +97,10 @@ _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
install -d "${pkgdir}/usr/lib/firmware/"
touch "${pkgdir}/usr/lib/firmware/$(<version)"
}
_package-headers() {

File diff suppressed because it is too large Load diff