From 0dd2c75e2646cd5cd8183a91803ac203ab08fb99 Mon Sep 17 00:00:00 2001 From: Amarnath Valluri Date: Fri, 23 Sep 2016 15:10:16 +0300 Subject: [PATCH] backport-iwlwifi: Fix build failure Ocationally image build fails with below error: Generating local configuration database from kernel ...make[1]: *** No rule to make target 'kernelversion'. Stop. Kernel version parse failed! make: *** [Makefile:42: defconfig-iwlwifi-public] Error 1 The reason is the race condtion between do_configure vs preparing of 'kernel-build-artifacts'. This commit adds dependency to 'virtual/kernel:do_shared_workdir', This ensures that 'kernel-build-artifacts' is ready before configuring this iwlwifi kernel module. Signed-off-by: amarnath --- .../recipes-connectivity/iwlwifi-driver/backport-iwlwifi_18.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-ostro-xt/recipes-connectivity/iwlwifi-driver/backport-iwlwifi_18.bb b/meta-ostro-xt/recipes-connectivity/iwlwifi-driver/backport-iwlwifi_18.bb index 57b8259..4d9fd2a 100644 --- a/meta-ostro-xt/recipes-connectivity/iwlwifi-driver/backport-iwlwifi_18.bb +++ b/meta-ostro-xt/recipes-connectivity/iwlwifi-driver/backport-iwlwifi_18.bb @@ -54,6 +54,7 @@ EXTRA_OEMAKE = "INSTALL_MOD_PATH=${D} KLIB_BUILD=${KBUILD_OUTPUT}" do_configure() { CC=gcc CFLAGS= LDFLAGS= make defconfig-iwlwifi-public KLIB_BUILD=${KBUILD_OUTPUT} } +do_configure[depends] += "virtual/kernel:do_shared_workdir" do_install() { ## install kernel objects from driver tree into target fs