From 1b0f1b0b3c11af54aba3c76c086cedd101dd5202 Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Fri, 3 Apr 2020 19:22:39 +0200 Subject: backports: fix building for arm64 aka aarch64 Related-to: ELB-2388 Signed-off-by: Marcel Ziswiler --- recipes-kernel/backports/backports_5.4.bb | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/recipes-kernel/backports/backports_5.4.bb b/recipes-kernel/backports/backports_5.4.bb index f7282ca..8929c0b 100644 --- a/recipes-kernel/backports/backports_5.4.bb +++ b/recipes-kernel/backports/backports_5.4.bb @@ -1,5 +1,3 @@ -#https://github.com/mangOH/meta-mangoh/blob/master/recipes-kernel/backports/backports_4.14.bb - DESCRIPTION = "Linux Backports" HOMEPAGE = "https://backports.wiki.kernel.org" SECTION = "kernel/modules" @@ -10,8 +8,8 @@ inherit module-base # To generate the backports tree yourself, so you can make modifications: # Generate the backport tree using: -# https://github.com/mangOH/linux-backports-generated/blob/master/README.md -# git init, add/commit the generated tree +# git clone git://git.toradex.com/backports-sources-toradex.git -b linux-5.4.y +# add/commit the generated tree # Change SRCREV = to point to your generated tree # Under SRC_URI point this at your generated tree as such: # git:///home/user/linux-backports-generated;protocol=file @@ -30,12 +28,7 @@ DEPENDS += "bison-native coreutils-native flex-native" S = "${WORKDIR}/git" -# TODO: Is there a better way to set KLIB_BUILD? -#KLIB_BUILD=${B}/../../../linux-toradex/${KERNEL_VERSION}-r1/build -#KLIB_BUILD=${B}/../../../linux-toradex/4.14-2.3.x+gitAUTOINC+fdcb9ec95d-r0/build EXTRA_OEMAKE = " \ - ARCH=${TARGET_ARCH} \ - CROSS_COMPILE=${TARGET_PREFIX} \ KLIB_BUILD=${KBUILD_OUTPUT} \ KLIB=${B} \ " @@ -50,7 +43,9 @@ do_configure() { oe_runmake oldconfig } +# LDFLAGS are not suitable for direct ld use as with the kernel build system do_compile() { + unset LDFLAGS oe_runmake } -- cgit v1.2.3