All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Looijmans <mike.looijmans@topic.nl>
To: <yocto@yoctoproject.org>
Subject: Re: [meta-raspberrypi][PATCH 1/1] linux-rpi: clean .config in before do_configure step
Date: Fri, 16 Dec 2016 20:31:49 +0100	[thread overview]
Message-ID: <58544125.903@topic.nl> (raw)
In-Reply-To: <7304ACDB-B05D-472D-8FF5-FC5CE402E88E@gmail.com>

On 16-12-16 17:58, Khem Raj wrote:
>
>> 

Kind regards,

Mike Looijmans
System Expert

TOPIC Products
Materiaalweg 4, NL-5681 RJ Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: mike.looijmans@topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail





On Dec 15, 2016, at 2:05 AM, Piotr Lewicki <piotr.lewicki@elfin.de> wrote:
>>
>> 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
>
> we should investigate the kernel tooling from OE-Core and use that IMO

See this thread on the OE list for a similar problem:
http://lists.openembedded.org/pipermail/openembedded-core/2016-November/129205.html



-- 
Mike Looijmans


  reply	other threads:[~2016-12-16 20:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58544125.903@topic.nl \
    --to=mike.looijmans@topic.nl \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.