Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
backport-iwlwifi: Fix build failure
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
avalluri committed Sep 23, 2016
1 parent 455e192 commit 0dd2c75
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0dd2c75

Please sign in to comment.