diff options
author | Haiqing Bai <Haiqing.Bai@windriver.com> | 2019-06-11 09:47:52 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-06-11 13:26:55 +0100 |
commit | 9729d0597593cfa5a21928ba52d30cb8f4a279ab (patch) | |
tree | 416f953c614b5fb2d0ec4a52f4dc7509531a1ee4 /meta | |
parent | 317a0984e76c382b7b667c7497b7cdc91782d5cb (diff) | |
download | poky-9729d0597593cfa5a21928ba52d30cb8f4a279ab.tar.gz |
kernel.bbclass: Make task clean depend on cleaning of make-mod-scripts
The package 'make-mod-scripts' creates files in 'kernel-build-artifacts/include/config'
which are removed by 'cleanall/cleansstate' of 'virtual/kernel'. And this causes the
below error while building out of tree kernel module:
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
Suggested-by: Jun Nie <jun.nie@linaro.org>
(From OE-Core rev: f79c95f6a883e999e0c2ecfd60b6b696b7595497)
Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/kernel.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 111a0b2eeb..a60e15b578 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -8,6 +8,7 @@ DEPENDS += "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc kmod-na | |||
8 | PACKAGE_WRITE_DEPS += "depmodwrapper-cross" | 8 | PACKAGE_WRITE_DEPS += "depmodwrapper-cross" |
9 | 9 | ||
10 | do_deploy[depends] += "depmodwrapper-cross:do_populate_sysroot" | 10 | do_deploy[depends] += "depmodwrapper-cross:do_populate_sysroot" |
11 | do_clean[depends] += "make-mod-scripts:do_clean" | ||
11 | 12 | ||
12 | CVE_PRODUCT ?= "linux_kernel" | 13 | CVE_PRODUCT ?= "linux_kernel" |
13 | 14 | ||