From b16d50a21274437da1d49a6a146dc602242f97c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Mon, 21 Sep 2015 15:45:45 -0300 Subject: linux-libre: add some changes based on linux-armv7 to adapt for u-Boot usage * rename vmlinuz-linux-libre to zImage * rename uImage-linux-libre-{armada-{370-smileplug,370-mirabox,xp-openblocks-ax3-4},dove-{d3plug,cubox}} to uImage * backup linux-libre-dtb and previous linux-libre armv7h changes to ~emulatorman for GRUB armv7h porting and avoid conflicts with another kernel installed --- ~emulatorman/linux-libre/linux.install | 49 ++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 ~emulatorman/linux-libre/linux.install (limited to '~emulatorman/linux-libre/linux.install') diff --git a/~emulatorman/linux-libre/linux.install b/~emulatorman/linux-libre/linux.install new file mode 100644 index 000000000..2f90d8bf6 --- /dev/null +++ b/~emulatorman/linux-libre/linux.install @@ -0,0 +1,49 @@ +# arg 1: the new package version +# arg 2: the old package version + +KERNEL_NAME= +KERNEL_VERSION= + +post_install () { + # updating module dependencies + echo ">>> Updating module dependencies. Please wait ..." + depmod ${KERNEL_VERSION} + if [ $(uname -m) != armv7h ]; then + echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." + mkinitcpio -p linux-libre${KERNEL_NAME} + else + echo "NOTE: Using this kernel requires an updated U-Boot!" + fi +} + +post_upgrade() { + if [ $(uname -m) != armv7h ]; then + if findmnt --fstab -uno SOURCE /boot &>/dev/null && ! mountpoint -q /boot; then + echo "WARNING: /boot appears to be a separate partition but is not mounted." + fi + + # updating module dependencies + echo ">>> Updating module dependencies. Please wait ..." + depmod ${KERNEL_VERSION} + echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." + mkinitcpio -p linux-libre${KERNEL_NAME} + + if [ $(vercmp $2 3.13) -lt 0 ]; then + echo ">>> WARNING: AT keyboard support is no longer built into the kernel." + echo ">>> In order to use your keyboard during early init, you MUST" + echo ">>> include the 'keyboard' hook in your mkinitcpio.conf." + fi + else + # updating module dependencies + echo ">>> Updating module dependencies. Please wait ..." + depmod ${KERNEL_VERSION} + fi +} + +if [ $(uname -m) != armv7h ]; then +post_remove() { + # also remove the compat symlinks + rm -f boot/initramfs-linux-libre${KERNEL_NAME}.img + rm -f boot/initramfs-linux-libre${KERNEL_NAME}-fallback.img +} +fi -- cgit v1.2.3-2-g168b