From dc6de4e985b96f7afd5c9b19bc3ff46fd06029a4 Mon Sep 17 00:00:00 2001 From: graysky Date: Fri, 26 Nov 2021 13:31:34 -0500 Subject: [PATCH] delete in prep for rename: core/linux-raspberrypi --- core/linux-raspberrypi/60-linux.hook | 11 - core/linux-raspberrypi/90-linux.hook | 12 - core/linux-raspberrypi/PKGBUILD | 212 - core/linux-raspberrypi/cmdline.txt | 1 - core/linux-raspberrypi/config | 8194 ----------------- core/linux-raspberrypi/config.txt | 4 - .../linux-raspberrypi.install | 46 - core/linux-raspberrypi/linux.preset | 10 - 8 files changed, 8490 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/PKGBUILD delete mode 100644 core/linux-raspberrypi/cmdline.txt delete mode 100644 core/linux-raspberrypi/config delete mode 100644 core/linux-raspberrypi/config.txt delete mode 100644 core/linux-raspberrypi/linux-raspberrypi.install 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 584ce3537..000000000 --- a/core/linux-raspberrypi/60-linux.hook +++ /dev/null @@ -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% 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 deleted file mode 100644 index 28a6d23a1..000000000 --- a/core/linux-raspberrypi/PKGBUILD +++ /dev/null @@ -1,212 +0,0 @@ -# Maintainer: graysky -# Maintainer: Kevin Mihelich -# Maintainer: Oleg Rakhmanov -# Maintainer: Dave Higham -# Contributer: Jan Alexander Steffens (heftig) - -buildarch=20 - -pkgbase=linux-raspberrypi -_commit=f9bd396cd0f5f8c2026473f1e570deed3d08d350 -_srcname=linux-${_commit} -_kernelname=${pkgbase#linux} -_desc="RPi 1/2/Zero/Zero W" -pkgver=5.10.81 -pkgrel=1 -pkgdesc='Linux' -url="http://www.kernel.org/" -arch=(armv6h armv7h) -license=(GPL2) -makedepends=( - bc kmod inetutils -) -options=('!strip') -source=("linux-$pkgver-$pkgrel-${_commit:0:10}.tar.gz::https://github.com/raspberrypi/linux/archive/${_commit}.tar.gz" - cmdline.txt - config.txt - config - linux.preset - 60-linux.hook - 90-linux.hook -) -md5sums=('60734f75c54c6eae9e32a9c6aacc572e' - '31c02f4518d46deb5f0c2ad1f8b083cd' - '9669d916a5929a2eedbd64477f83d99e' - '0de8feb422dbd1cb5561d86f3d063245' - '86d4a35722b5410e3b29fc92dae15d4b' - '0a5f16bfec6ad982a2f6782724cca8ba' - '69e1db90d78f691dc446fe2ab94727eb') - -# setup vars -if [[ $CARCH == "armv6h" ]]; then - _kernel=kernel.img -elif [[ $CARCH == "armv7h" ]]; then - _kernel=kernel7.img -fi -_image=zImage -_config=config -_bconfig=config.txt -KARCH=arm - -prepare() { - cd "${srcdir}/${_srcname}" - - echo "Setting version..." - scripts/setlocalversion --save-scmversion - echo "-$pkgrel" > localversion.10-pkgrel - echo "${pkgbase#linux}" > localversion.20-pkgname - - echo "Setting config..." - cp ../"$_config" .config - make olddefconfig - - make -s kernelrelease > version - echo "Prepared $pkgbase version $(=0.7' 'firmware-raspberrypi') - optdepends=('crda: to set the correct wireless channels of your country') - provides=('kernel26' "linux=${pkgver}" 'WIREGUARD-MODULE') - conflicts=('kernel26' 'linux') - install=${pkgname}.install - backup=('boot/config.txt' 'boot/cmdline.txt') - replaces=('linux-raspberrypi-latest') - - cd "${srcdir}/${_srcname}" - - local kernver="$(>> You appear to have dynamic memory (CMA) enabled, which is currently broken" - echo ">>> in newer kernels and will cause many issues if left enabled." - echo ">>> Disabling that for you now." - sed -i 's/^cma_/#cma_/g' /boot/config.txt - fi -} - -post_install () { - disable_cma -} - -post_upgrade() { - if grep "^[^#]*[[:space:]]/boot" etc/fstab 2>&1 >/dev/null; then - if ! grep "[[:space:]]/boot" etc/mtab 2>&1 >/dev/null; then - echo "WARNING: /boot appears to be a separate partition but is not mounted." - echo " You probably just broke your system. Congratulations." - fi - fi - - disable_cma - - if [ "$(vercmp $2 3.18.3)" -lt 0 ]; then - echo "________________________________________________________________________________" - echo "" - echo "WARNING: This kernel provides updated config.txt and cmdline.txt files." - echo " Check for pacnew files in /boot and merge or replace the existing files" - echo " with the new versions." - echo "________________________________________________________________________________" - echo "" - fi - - if [[ $(grep 'Raspberry Pi 4' /sys/firmware/devicetree/base/model) ]]; then - echo "________________________________________________________________________________" - echo "" - echo "WARNING: You must switch to a different kernel for the Raspberry Pi 4:" - echo " pacman -S linux-raspberrypi4" - echo "________________________________________________________________________________" - echo "" - fi -} - -post_remove() { - rm -f boot/initramfs-linux.img -} 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=""