From: Haiqing Bai Date: Tue, 11 Jun 2019 01:47:52 +0000 (+0800) Subject: kernel.bbclass: Make task clean depend on cleaning of make-mod-scripts X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~14220 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f79c95f6a883e999e0c2ecfd60b6b696b7595497;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Haiqing Bai Signed-off-by: Richard Purdie --- diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 111a0b2eebb..a60e15b5781 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 PACKAGE_WRITE_DEPS += "depmodwrapper-cross" do_deploy[depends] += "depmodwrapper-cross:do_populate_sysroot" +do_clean[depends] += "make-mod-scripts:do_clean" CVE_PRODUCT ?= "linux_kernel"