aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2021-04-10 10:07:02 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2021-04-10 10:07:02 -0300
commit492999986124b5e960d0e21fc81d341458d6c5ad (patch)
treef7178fcfff88b458ce0a666330367997ee5be2e3
parent722b1e6fc4f069cee4565c3fc9c7f0669529266d (diff)
downloadmeta-freescale-492999986124b5e960d0e21fc81d341458d6c5ad.tar.gz
meta-freescale-492999986124b5e960d0e21fc81d341458d6c5ad.tar.bz2
meta-freescale-492999986124b5e960d0e21fc81d341458d6c5ad.zip
classes: fsl-kernel-localversion: Fix task dependency
We need to do any change to the generated `.config` file after it is finished to be modified. In the case of `kernel-yocto` class being in use, we need to do it after `kernel_configme` task. Fixes: c7e23876 ("linux-imx.inc: inherit kernel-yocto class") Fixes: #707. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Change-Id: I7d32b47595dff269defdc5b3f98aa0b9d89b603a
-rw-r--r--classes/fsl-kernel-localversion.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/classes/fsl-kernel-localversion.bbclass b/classes/fsl-kernel-localversion.bbclass
index 0a175e31..c73b60a6 100644
--- a/classes/fsl-kernel-localversion.bbclass
+++ b/classes/fsl-kernel-localversion.bbclass
@@ -22,7 +22,8 @@ kernel_conf_variable() {
fi
}
-do_preconfigure() {
+do_kernel_localversion[dirs] += "${S} ${B}"
+do_kernel_localversion() {
mkdir -p ${B}
echo "" > ${B}/.config
CONF_SED_SCRIPT=""
@@ -40,4 +41,5 @@ do_preconfigure() {
printf "%s%s" +g $head > ${S}/.scmversion
fi
}
-addtask preconfigure before do_configure after do_unpack do_patch do_kernel_metadata
+
+addtask kernel_localversion before do_configure after do_patch do_kernel_configme