core/linux-am33x to 4.12.7-1

This commit is contained in:
Kevin Mihelich 2017-08-15 01:42:32 +00:00
parent 360c0f74b9
commit 346d933541
4 changed files with 47 additions and 6 deletions

View file

@ -0,0 +1,11 @@
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Target = boot/zImage
Target = usr/lib/initcpio/*
[Action]
Description = Updating %PKGBASE% initcpios
When = PostTransaction
Exec = /usr/bin/mkinitcpio -p %PKGBASE%

View file

@ -7,7 +7,7 @@ pkgbase=linux-am33x
_srcname=linux-4.12 _srcname=linux-4.12
_kernelname=${pkgbase#linux} _kernelname=${pkgbase#linux}
_desc="TI AM335x Beaglebone (Black)" _desc="TI AM335x Beaglebone (Black)"
pkgver=4.12.5 pkgver=4.12.7
pkgrel=1 pkgrel=1
rcnrel=bone3 rcnrel=bone3
arch=('armv7h') arch=('armv7h')
@ -20,13 +20,17 @@ source=("http://www.kernel.org/pub/linux/kernel/v4.x/${_srcname}.tar.xz"
"http://rcn-ee.com/deb/sid-armhf/v${pkgver}-${rcnrel}/patch-${pkgver%.0}-${rcnrel}.diff.gz" "http://rcn-ee.com/deb/sid-armhf/v${pkgver}-${rcnrel}/patch-${pkgver%.0}-${rcnrel}.diff.gz"
"git+https://github.com/RobertCNelson/bb.org-overlays.git" "git+https://github.com/RobertCNelson/bb.org-overlays.git"
'0001-add-lcd-cape-for-chiliboard.patch' '0001-add-lcd-cape-for-chiliboard.patch'
'config') 'config'
'linux.preset'
'99-linux.hook')
md5sums=('fc454157e2d024d401a60905d6481c6b' md5sums=('fc454157e2d024d401a60905d6481c6b'
'0993b69927d19e4f2b52d99670a95d07' '3ce799c369531ec13a202bc7da6eb847'
'd009c7eb580e1f56bbc9eb20ec4b281e' '6ef597098761accc1d1c590110e87c49'
'SKIP' 'SKIP'
'dc780fbf3d4d1175a94232d7ba1e3cb3' 'dc780fbf3d4d1175a94232d7ba1e3cb3'
'8a37235ff2bcc7f7a3d06ddd119872ee') '3808e3fb8b3e89f16e1de0f8b0f2446e'
'f575ed91dcd73677a820196fd1d1d986'
'79fa396e3f9a09a85156d6d7c2d34b58')
prepare() { prepare() {
cd "${srcdir}/${_srcname}" cd "${srcdir}/${_srcname}"
@ -87,6 +91,7 @@ _package() {
pkgdesc="The Linux Kernel and modules - ${_desc}" pkgdesc="The Linux Kernel and modules - ${_desc}"
depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio>=0.7') depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio>=0.7')
optdepends=('crda: to set the correct wireless channels of your country') optdepends=('crda: to set the correct wireless channels of your country')
backup=("etc/mkinitcpio.d/${pkgbase}.preset")
provides=('kernel26' "linux=${pkgver}") provides=('kernel26' "linux=${pkgver}")
conflicts=('linux') conflicts=('linux')
replaces=('linux-ti') replaces=('linux-ti')
@ -112,6 +117,17 @@ _package() {
-e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \ -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
-i "${startdir}/${pkgname}.install" -i "${startdir}/${pkgname}.install"
# install mkinitcpio preset file for kernel
install -D -m644 "${srcdir}/linux.preset" "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"
sed \
-e "1s|'linux.*'|'${pkgbase}'|" \
-e "s|ALL_kver=.*|ALL_kver=\"${_kernver}\"|" \
-i "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"
# install pacman hook for initramfs regeneration
sed "s|%PKGBASE%|${pkgbase}|g" "${srcdir}/99-linux.hook" |
install -D -m644 /dev/stdin "${pkgdir}/usr/share/libalpm/hooks/99-${pkgbase}.hook"
# remove build and source links # remove build and source links
rm -f "${pkgdir}"/lib/modules/${_kernver}/{source,build} rm -f "${pkgdir}"/lib/modules/${_kernver}/{source,build}
# remove the firmware # remove the firmware

View file

@ -2,7 +2,7 @@
# arg 2: the old package version # arg 2: the old package version
KERNEL_NAME=-am33x KERNEL_NAME=-am33x
KERNEL_VERSION=4.0.2-1-ARCH KERNEL_VERSION=4.12.7-1-ARCH
post_install () { post_install () {
# updating module dependencies # updating module dependencies
@ -34,3 +34,7 @@ post_upgrade() {
echo ">>> Updating module dependencies. Please wait ..." echo ">>> Updating module dependencies. Please wait ..."
depmod ${KERNEL_VERSION} depmod ${KERNEL_VERSION}
} }
post_remove() {
rm -f boot/initramfs-linux.img
}

View file

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