From dbd80e62f8a8feb0db34795486b7bd2e5fb9860a Mon Sep 17 00:00:00 2001 From: graysky Date: Fri, 1 Oct 2021 12:18:24 -0400 Subject: [PATCH] core/linux-raspberrypi to 5.10.63-14 --- core/linux-raspberrypi/60-linux.hook | 12 -- core/linux-raspberrypi/90-linux.hook | 12 -- core/linux-raspberrypi/PKGBUILD | 249 ++++++++++++--------------- core/linux-raspberrypi/config | 7 +- core/linux-raspberrypi/linux.preset | 10 -- 5 files changed, 113 insertions(+), 177 deletions(-) delete mode 100644 core/linux-raspberrypi/60-linux.hook delete mode 100644 core/linux-raspberrypi/90-linux.hook delete mode 100644 core/linux-raspberrypi/linux.preset diff --git a/core/linux-raspberrypi/60-linux.hook b/core/linux-raspberrypi/60-linux.hook deleted file mode 100644 index b33873c85..000000000 --- a/core/linux-raspberrypi/60-linux.hook +++ /dev/null @@ -1,12 +0,0 @@ -[Trigger] -Type = File -Operation = Install -Operation = Upgrade -Operation = Remove -Target = usr/lib/modules/%KERNVER%/* -Target = usr/lib/modules/%EXTRAMODULES%/* - -[Action] -Description = Updating %PKGBASE% module dependencies... -When = PostTransaction -Exec = /usr/bin/depmod %KERNVER% diff --git a/core/linux-raspberrypi/90-linux.hook b/core/linux-raspberrypi/90-linux.hook deleted file mode 100644 index c29cd4928..000000000 --- a/core/linux-raspberrypi/90-linux.hook +++ /dev/null @@ -1,12 +0,0 @@ -[Trigger] -Type = File -Operation = Install -Operation = Upgrade -Target = boot/kernel.img -Target = boot/kernel7.img -Target = usr/lib/initcpio/* - -[Action] -Description = Updating %PKGBASE% initcpios... -When = PostTransaction -Exec = /usr/bin/mkinitcpio -p %PKGBASE% diff --git a/core/linux-raspberrypi/PKGBUILD b/core/linux-raspberrypi/PKGBUILD index 2a87e0801..a4470edda 100644 --- a/core/linux-raspberrypi/PKGBUILD +++ b/core/linux-raspberrypi/PKGBUILD @@ -1,77 +1,64 @@ -# Maintainer: Dave Higham +# Maintainer: graysky # Maintainer: Kevin Mihelich # Maintainer: Oleg Rakhmanov -# Maintainer: graysky +# Maintainer: Dave Higham +# Contributer: Jan Alexander Steffens (heftig) buildarch=20 pkgbase=linux-raspberrypi -_commit=f694d1cfee63afaaa77e7d9e1f621a83e2f98846 +_commit=1faafd963e48eafb3abd555e13496a773d858b02 _srcname=linux-${_commit} _kernelname=${pkgbase#linux} -_desc="Raspberry Pi 2" +_desc="Raspberry Pi 1 and 2" pkgver=5.10.63 -pkgrel=13 -arch=('armv6h' 'armv7h') +pkgrel=14 +pkgdesc='Linux' url="http://www.kernel.org/" -license=('GPL2') -makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc' 'git') +arch=(armv6h armv7h) +license=(GPL2) +makedepends=( + bc kmod inetutils +) options=('!strip') source=("https://github.com/raspberrypi/linux/archive/${_commit}.tar.gz" - 'cmdline.txt' - 'linux.preset' - 'config.txt' - 'config' - '60-linux.hook' - '90-linux.hook') -md5sums=('cb39469f07bcf3c3eb2509ed24231f9f' + cmdline.txt + config.txt + config +) +md5sums=('8b6f5b06d5a252cbb06ea1b33ee45c25' '31c02f4518d46deb5f0c2ad1f8b083cd' - '86d4a35722b5410e3b29fc92dae15d4b' '9669d916a5929a2eedbd64477f83d99e' - '4e77a3c2e7dbf645f60fcc9217587dc6' - 'ce6c81ad1ad1f8b333fd6077d47abdaf' - '69e1db90d78f691dc446fe2ab94727eb') + '18d63f130f6e161aece55aea93b38e14') + +# setup vars +[[ $CARCH == "armv6h" ]] && _kernel=kernel.img +[[ $CARCH == "armv7h" ]] && _kernel=kernel7.img +_image=zImage +_config=config +_bconfig=config.txt +KARCH=arm prepare() { cd "${srcdir}/${_srcname}" - cat "${srcdir}/config" > ./.config + echo "Setting version..." + scripts/setlocalversion --save-scmversion + echo "-$pkgrel" > localversion.10-pkgrel + echo "${pkgbase#linux}" > localversion.20-pkgname - # add pkgrel to extraversion - sed -ri "s|^(EXTRAVERSION =)(.*)|\1 \2-${pkgrel}|" Makefile + echo "Setting config..." + cp ../"$_config" .config + make olddefconfig - # don't run depmod on 'make install'. We'll do this ourselves in packaging - sed -i '2iexit 0' scripts/depmod.sh + make -s kernelrelease > version + echo "Prepared $pkgbase version $(/dev/null) + done < <(find "$builddir" -type f -perm -u+x) + + echo "Adding symlink..." + mkdir -p "$pkgdir/usr/src" + ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase" } pkgname=("${pkgbase}" "${pkgbase}-headers") diff --git a/core/linux-raspberrypi/config b/core/linux-raspberrypi/config index babbe21e9..5c875fbf5 100644 --- a/core/linux-raspberrypi/config +++ b/core/linux-raspberrypi/config @@ -1,6 +1,6 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/arm 5.10.52-4 Kernel Configuration +# Linux/arm 5.10.63 Kernel Configuration # CONFIG_CC_VERSION_TEXT="gcc (GCC) 10.2.0" CONFIG_CC_IS_GCC=y @@ -4087,7 +4087,7 @@ CONFIG_REGULATOR_GPIO=y # CONFIG_REGULATOR_PV88080 is not set # CONFIG_REGULATOR_PV88090 is not set # CONFIG_REGULATOR_PWM is not set -# CONFIG_REGULATOR_RASPBERRYPI_TOUCHSCREEN_ATTINY is not set +CONFIG_REGULATOR_RASPBERRYPI_TOUCHSCREEN_ATTINY=m # CONFIG_REGULATOR_RT4801 is not set # CONFIG_REGULATOR_RTMV20 is not set # CONFIG_REGULATOR_SLG51000 is not set @@ -4548,6 +4548,7 @@ CONFIG_VIDEO_IMX290=m CONFIG_VIDEO_IMX477=m # CONFIG_VIDEO_IMX319 is not set # CONFIG_VIDEO_IMX355 is not set +CONFIG_VIDEO_IMX519=m # CONFIG_VIDEO_OV2640 is not set # CONFIG_VIDEO_OV2659 is not set # CONFIG_VIDEO_OV2680 is not set @@ -4978,7 +4979,7 @@ CONFIG_DRM_DISPLAY_CONNECTOR=m # CONFIG_DRM_SII9234 is not set CONFIG_DRM_SIMPLE_BRIDGE=m # CONFIG_DRM_THINE_THC63LVD1024 is not set -# CONFIG_DRM_TOSHIBA_TC358762 is not set +CONFIG_DRM_TOSHIBA_TC358762=m # CONFIG_DRM_TOSHIBA_TC358764 is not set # CONFIG_DRM_TOSHIBA_TC358767 is not set # CONFIG_DRM_TOSHIBA_TC358768 is not set diff --git a/core/linux-raspberrypi/linux.preset b/core/linux-raspberrypi/linux.preset deleted file mode 100644 index 8d7f379c9..000000000 --- a/core/linux-raspberrypi/linux.preset +++ /dev/null @@ -1,10 +0,0 @@ -# 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=""