From bffb5141e3c5b4d88497c47f05fd544b8121c1d9 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 22 Mar 2015 18:35:50 +0100 Subject: [PATCH] sun7i-kernel: apply backported patch for kernel firmware loading. Apply the ALARM patch fetched directly from github. This is required to make eudev>=2.1 work. --- srcpkgs/sun7i-kernel/files/config | 1 + srcpkgs/sun7i-kernel/template | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/srcpkgs/sun7i-kernel/files/config b/srcpkgs/sun7i-kernel/files/config index 965166055a..f6c64cd9fb 100644 --- a/srcpkgs/sun7i-kernel/files/config +++ b/srcpkgs/sun7i-kernel/files/config @@ -1031,6 +1031,7 @@ CONFIG_PREVENT_FIRMWARE_BUILD=y CONFIG_FW_LOADER=y CONFIG_FIRMWARE_IN_KERNEL=y CONFIG_EXTRA_FIRMWARE="" +# CONFIG_FW_LOADER_USER_HELPER is not set # CONFIG_DEBUG_DRIVER is not set # CONFIG_DEBUG_DEVRES is not set # CONFIG_SYS_HYPERVISOR is not set diff --git a/srcpkgs/sun7i-kernel/template b/srcpkgs/sun7i-kernel/template index b6e3b18f8c..021da23988 100644 --- a/srcpkgs/sun7i-kernel/template +++ b/srcpkgs/sun7i-kernel/template @@ -6,7 +6,7 @@ _gitshort="${_githash:0:7}" pkgname=sun7i-kernel version=3.4.103 -revision=1 +revision=2 maintainer="Juan RP " homepage="http://www.kernel.org" license="GPL-2" @@ -38,6 +38,10 @@ do_configure() { _args="CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-" fi + # Apply backported kernel firmware changes required by eudev>=2.1. + $XBPS_FETCH_CMD https://raw.githubusercontent.com/archlinuxarm/PKGBUILDs/master/core/linux-sun7i/0001-Backport-firmware-loader.patch + patch -p1 -i 0001-Backport-firmware-loader.patch + unset LDFLAGS if [ -f ${FILESDIR}/config ]; then cp ${FILESDIR}/config .config