]> code.ossystems Code Review - meta-freescale.git/commitdiff
fsl-kernel-localversion: Configure kernel in a separate task
authorAdrian Dudau <adrian.dudau@enea.com>
Fri, 10 Jun 2016 10:34:38 +0000 (12:34 +0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 27 Jun 2016 10:53:36 +0000 (07:53 -0300)
As it is implemented right now this class overwrites the .config file
making it impossible for any other layer to configure the kernel in a
.bbappend to the kernel recipe. By doing it in a separate task before
do_configure we ensure that recipe .bbappends can make further kernel
configurations in do_configure_prepend.

Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
classes/fsl-kernel-localversion.bbclass

index 1004e35526aceaa7277aa0ffc20d36fcc0064f1d..42c2b1773585fe25bca1c8983c3dbeb484717d95 100644 (file)
@@ -22,7 +22,7 @@ kernel_conf_variable() {
        fi
 }
 
-do_configure_prepend() {
+do_preconfigure() {
        echo "" > ${B}/.config
        CONF_SED_SCRIPT=""
 
@@ -37,3 +37,4 @@ do_configure_prepend() {
                printf "%s%s" +g $head > ${S}/.scmversion
        fi
 }
+addtask preconfigure before do_configure after do_patch