All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-fsl-arm][PATCH] fsl-kernel-localversion: Configure kernel in a separate task
@ 2016-06-10 10:34 Adrian Dudau
  0 siblings, 0 replies; only message in thread
From: Adrian Dudau @ 2016-06-10 10:34 UTC (permalink / raw)
  To: meta-freescale

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>
---
 classes/fsl-kernel-localversion.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/classes/fsl-kernel-localversion.bbclass b/classes/fsl-kernel-localversion.bbclass
index 1004e35..42c2b17 100644
--- a/classes/fsl-kernel-localversion.bbclass
+++ b/classes/fsl-kernel-localversion.bbclass
@@ -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
-- 
1.9.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-06-10 10:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-10 10:34 [meta-fsl-arm][PATCH] fsl-kernel-localversion: Configure kernel in a separate task Adrian Dudau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.