From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 38578E00CD9; Fri, 10 Jun 2016 03:40:23 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [185.38.181.40 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Greylist: delayed 337 seconds by postgrey-1.32 at yocto-www; Fri, 10 Jun 2016 03:40:17 PDT Received: from smtp-out11.electric.net (smtp-out11.electric.net [185.38.181.40]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E1F66E00CC0 for ; Fri, 10 Jun 2016 03:40:17 -0700 (PDT) Received: from 1bBJlu-0004h2-VW by out11a.electric.net with emc1-ok (Exim 4.87) (envelope-from ) id 1bBJlu-0004hN-Vs for meta-freescale@yoctoproject.org; Fri, 10 Jun 2016 03:34:38 -0700 Received: by emcmailer; Fri, 10 Jun 2016 03:34:38 -0700 Received: from [192.36.1.72] (helo=mx-3.enea.com) by out11a.electric.net with esmtps (TLSv1:AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1bBJlu-0004h2-VW for meta-freescale@yoctoproject.org; Fri, 10 Jun 2016 03:34:38 -0700 Received: from sestofb11.enea.se (172.21.3.146) by smtp.enea.com (172.21.1.209) with Microsoft SMTP Server id 14.3.294.0; Fri, 10 Jun 2016 12:34:38 +0200 Received: by sestofb11.enea.se (Postfix, from userid 4451) id 789032413F7; Fri, 10 Jun 2016 12:34:38 +0200 (CEST) From: Adrian Dudau To: Date: Fri, 10 Jun 2016 12:34:38 +0200 Message-ID: <1465554878-36036-1-git-send-email-adrian.dudau@enea.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Received-SPF: None (SESTOEX03.enea.se: adrian.dudau@enea.com does not designate permitted sender hosts) X-Outbound-IP: 192.36.1.72 X-Env-From: Adrian.Dudau@enea.com X-PolicySMART: 6551647 X-Virus-Status: Scanned by VirusSMART (c) X-Virus-Status: Scanned by VirusSMART (s) Subject: [meta-fsl-arm][PATCH] fsl-kernel-localversion: Configure kernel in a separate task X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2016 10:40:23 -0000 Content-Type: text/plain 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 --- 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