[oe-commits] [openembedded-core] branch master-next updated: kernel.bbclass: Make task clean depend on cleaning of make-mod-scripts

git at git.openembedded.org git at git.openembedded.org
Tue Jun 11 09:08:59 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

The following commit(s) were added to refs/heads/master-next by this push:
     new 99ff615  kernel.bbclass: Make task clean depend on cleaning of make-mod-scripts
99ff615 is described below

commit 99ff615ada56be95fe28a333810552f67b12edab
Author: Haiqing Bai <Haiqing.Bai at windriver.com>
AuthorDate: Tue Jun 11 09:47:52 2019 +0800

    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 at linaro.org>
    
    Signed-off-by: Haiqing Bai <Haiqing.Bai at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/kernel.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 111a0b2..a60e15b 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"
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list