From: Bruce Ashfield Date: Wed, 5 Aug 2020 15:42:57 +0000 (-0400) Subject: kernel-devsrc: fix x86 (32bit) on target module build X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~10394 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=368537ab94e141e02eb981fa0fb44548b4be297e;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git kernel-devsrc: fix x86 (32bit) on target module build The previous devsrc v5.8 on target build fixup [532ae127c kernel-devsrc: fix on-target module build for v5.8+], missed on condition: the defconfig On 32bit x86 the arch can be queried differently on the host and target. We aren't building against the defconfig, so we remove it from auto.conf.cmd and we can again prepare to build modules on target. Signed-off-by: Bruce Ashfield Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb index 0c98535f758..6a606c3570f 100644 --- a/meta/recipes-kernel/linux/kernel-devsrc.bb +++ b/meta/recipes-kernel/linux/kernel-devsrc.bb @@ -263,6 +263,8 @@ do_install() { sed -i 's/ifneq "$(LD)" ".*-linux-ld.bfd.*$/ifneq "$(LD)" "ld"/' "$kerneldir/build/include/config/auto.conf.cmd" sed -i 's/ifneq "$(CC_VERSION_TEXT)".*\(gcc.*\)"/ifneq "$(CC_VERSION_TEXT)" "\1"/' "$kerneldir/build/include/config/auto.conf.cmd" sed -i 's/ifneq "$(srctree)" ".*"/ifneq "$(srctree)" "."/' "$kerneldir/build/include/config/auto.conf.cmd" + # we don't build against the defconfig, so make sure it isn't the trigger for syncconfig + sed -i 's/ifneq "$(KBUILD_DEFCONFIG)".*"\(.*\)"/ifneq "\1" "\1"/' "$kerneldir/build/include/config/auto.conf.cmd" fi # make the scripts python3 safe. We won't be running these, and if they are