From 1291b005594bad3fbf4b2379ff322c2e5f630048 Mon Sep 17 00:00:00 2001 From: Gottox Date: Thu, 23 Jan 2014 01:33:45 +0100 Subject: [PATCH] renaming kernel-odroid-u2 to odroid-u2-kernel; version bump; enable AUTOFS4 --- srcpkgs/kernel-headers-odroid-u2 | 1 - srcpkgs/odroid-u2-kernel-headers | 1 + .../template | 21 ++++++++++++------- 3 files changed, 14 insertions(+), 9 deletions(-) delete mode 120000 srcpkgs/kernel-headers-odroid-u2 create mode 120000 srcpkgs/odroid-u2-kernel-headers rename srcpkgs/{kernel-odroid-u2 => odroid-u2-kernel}/template (88%) diff --git a/srcpkgs/kernel-headers-odroid-u2 b/srcpkgs/kernel-headers-odroid-u2 deleted file mode 120000 index b3a59db17e5..00000000000 --- a/srcpkgs/kernel-headers-odroid-u2 +++ /dev/null @@ -1 +0,0 @@ -kernel-odroid-u2/ \ No newline at end of file diff --git a/srcpkgs/odroid-u2-kernel-headers b/srcpkgs/odroid-u2-kernel-headers new file mode 120000 index 00000000000..61543d3a459 --- /dev/null +++ b/srcpkgs/odroid-u2-kernel-headers @@ -0,0 +1 @@ +odroid-u2-kernel \ No newline at end of file diff --git a/srcpkgs/kernel-odroid-u2/template b/srcpkgs/odroid-u2-kernel/template similarity index 88% rename from srcpkgs/kernel-odroid-u2/template rename to srcpkgs/odroid-u2-kernel/template index 6f48c1a4684..ba1435ed045 100644 --- a/srcpkgs/kernel-odroid-u2/template +++ b/srcpkgs/odroid-u2-kernel/template @@ -1,9 +1,9 @@ -# Template file for 'kernel-odroid-u2' +# Template file for 'odroid-u2-kernel' # -# Latest commit as of 20140121 -_githash="9277d733a276fb27da1061d5210ac3c45a16ac18" +# Latest commit as of 20140123 +_githash="452f4a053d69404a1f69fd3aa4af8ee6524ab2b2" -pkgname=kernel-odroid-u2 +pkgname=odroid-u2-kernel version=3.8.13.14 revision=1 maintainer="Enno Boland " @@ -12,8 +12,10 @@ license="GPL-2" short_desc="The Linux kernel and modules for the Odroid U2/U3 (3.12 series [git ${_githash}])" create_srcdir=yes distfiles="https://github.com/hardkernel/linux/archive/${_githash}.tar.gz" -checksum=894cdbbdd0e5ef3ec4b57e4aef57f52fd83ed6fa99a2dc11aaca96ef028a9c99 +checksum=b351402dda80802c006574e319f39c22ef8ca48e049d65a9224fb518d67ffa3c wrksrc="linux-${_githash}" +provides="kernel-odroid-u2-${version}_${revision}" +replaces="kernel-odroid-u2>=0" _kernver="${version}_${revision}" @@ -45,6 +47,9 @@ do_configure() { # Always use our revision to CONFIG_LOCALVERSION to match our pkg version. sed -i -e "s|^\(CONFIG_LOCALVERSION=\).*|\1\"_${revision}\"|" .config + + # Enable Autofs for systemd + sed -i -e "s|.*CONFIG_AUTOFS4_FS.*|CONFIG_AUTOFS4_FS=y|" .config } do_build() { @@ -67,7 +72,7 @@ do_install() { vinstall arch/arm/boot/zImage 644 boot - hdrdest=${DESTDIR}/usr/src/kernel-headers-odroid-${_kernver} + hdrdest=${DESTDIR}/usr/src/odroid-u2-kernel-headers-${_kernver} # Switch to /usr. vmkdir usr @@ -75,7 +80,7 @@ do_install() { cd ${DESTDIR}/usr/lib/modules/${_kernver} rm -f source build - ln -sf ../../../src/kernel-headers-odroid-${_kernver} build + ln -sf ../../../src/odroid-u2-kernel-headers-${_kernver} build cd ${wrksrc} @@ -152,7 +157,7 @@ do_install() { depmod -b ${DESTDIR}/usr -F System.map ${_kernver} } -kernel-headers-odroid-u2_package() { +odroid-u2-kernel-headers_package() { nostrip=yes noverifyrdeps=yes short_desc="Linux kernel headers for the Odroid U2/U3 (3.12 series [${_githash}])"