All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-raspberrypi][PATCH 0/1] linux-rpi: clean .config in before do_configure step
@ 2016-12-15 10:05 Piotr Lewicki
  2016-12-15 10:05 ` [meta-raspberrypi][PATCH 1/1] " Piotr Lewicki
  2016-12-15 10:51 ` [meta-raspberrypi][PATCH 0/1] " Andreas Müller
  0 siblings, 2 replies; 11+ messages in thread
From: Piotr Lewicki @ 2016-12-15 10:05 UTC (permalink / raw)
  To: yocto

Previously using bbappend files for linux-raspberrypi recipe did not allow to
use "kernel_configure_variable" function to set kernel config variables.
If user wanted to use it in his bbappend with "do_configure_prepend" it was
cleared afterwards. This patch moves cleaning to a separate step.
I'm unsure about whether CONF_SED_SCRIPT variable gets cleaned here. Please
verify this.

Piotr Lewicki (1):
  linux-rpi: clean .config in before do_configure step

 recipes-kernel/linux/linux-rpi.inc | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

-- 
2.7.4



^ permalink raw reply	[flat|nested] 11+ messages in thread
* [meta-raspberrypi][PATCH 1/1] linux-rpi: clean .config in before do_configure step
@ 2016-12-16 12:04 Piotr Lewicki
  0 siblings, 0 replies; 11+ messages in thread
From: Piotr Lewicki @ 2016-12-16 12:04 UTC (permalink / raw)
  To: yocto

Previously using bbappend files for linux-raspberrypi recipe did not allow to
use "kernel_configure_variable" function to set kernel config variables.
If user wanted to use it in his bbappend with "do_configure_prepend" it was
cleared afterwards. This patch moves cleaning to a separate step.
I'm unsure about whether CONF_SED_SCRIPT variable gets cleaned here. Please
verify this.

Signed-off-by: Piotr Lewicki <piotr.lewicki@elfin.de>
---
 recipes-kernel/linux/linux-rpi.inc | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/recipes-kernel/linux/linux-rpi.inc b/recipes-kernel/linux/linux-rpi.inc
index 95a9530..c665b9f 100644
--- a/recipes-kernel/linux/linux-rpi.inc
+++ b/recipes-kernel/linux/linux-rpi.inc
@@ -34,11 +34,13 @@ kernel_configure_variable() {
     fi
 }
 
-do_configure_prepend() {
+do_rpi_kconfig_clean() {
     # Clean .config
-    echo "" > ${B}/.config
+    echo -n "" > ${B}/.config
     CONF_SED_SCRIPT=""
+}
 
+do_configure_prepend() {
     # oabi / eabi support
     kernel_configure_variable AEABI y
     if [ "${ARM_KEEP_OABI}" = "1" ] ; then
@@ -124,8 +126,11 @@ do_configure_prepend() {
     # Keep this the last line
     # Remove all modified configs and add the rest to .config
     sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${B}/.config'
+    # Clean variable- useful when calling configure step multiple times
+    CONF_SED_SCRIPT=""
 
     yes '' | oe_runmake oldconfig
+
 }
 
 # Automatically depend on lzop-native if CONFIG_KERNEL_LZO is enabled
@@ -146,3 +151,5 @@ python () {
 
     configfile.close()
 }
+
+addtask rpi_kconfig_clean before do_configure after do_populate_lic
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-01-02 13:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-15 10:05 [meta-raspberrypi][PATCH 0/1] linux-rpi: clean .config in before do_configure step Piotr Lewicki
2016-12-15 10:05 ` [meta-raspberrypi][PATCH 1/1] " Piotr Lewicki
2016-12-16 16:58   ` Khem Raj
2016-12-16 19:31     ` Mike Looijmans
2016-12-19 15:31     ` Sandro Stiller
2016-12-29 18:20     ` Andrei Gherzan
2016-12-30  7:20       ` Piotr Lewicki
2016-12-30 13:20         ` Andrei Gherzan
2017-01-02 13:41           ` Piotr Lewicki
2016-12-15 10:51 ` [meta-raspberrypi][PATCH 0/1] " Andreas Müller
  -- strict thread matches above, loose matches on Subject: below --
2016-12-16 12:04 [meta-raspberrypi][PATCH 1/1] " Piotr Lewicki

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.