Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id BB3B2E00DB7; Mon, 4 Jul 2016 13:08:21 -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 * [209.85.220.193 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-qk0-f193.google.com (mail-qk0-f193.google.com [209.85.220.193]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 95273E00DBB for ; Mon, 4 Jul 2016 13:08:04 -0700 (PDT) Received: by mail-qk0-f193.google.com with SMTP id r68so31401839qka.3 for ; Mon, 04 Jul 2016 13:08:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:organization; bh=vlYcZ1t+p71HsppOw/jSRJ7po0sELghNcfFuwH3dGBI=; b=UgxZnVKCR5Bvp25jHDHwlViuIBFMekM8UfpwobtjMOSpYEFLHW5mwgFzi/4HmoWUTi CJYtrTHiOALrlolYNgT1jA/6UmhO6fCVcfe80fxzGsOwnitxfXnakz1LNZHmpXhLsGMv dPiY6aqlHCmvayFf81vj8sCZD1VZxmNbo+UVk6fjvFjfvZXiip+tkjTWW+56/zpCkLhd EOSJUYvwXVwlGensLR5YK8e5hURcKWeauh9AQWghuHdl9uSXho7Tr7D8AwwKF3VGqVTw HHFqCB5TsoJdrVXzGwps9mKHHWHy3mbZA0XJjGRUGh+gIVZrtQMVa+Wd5WvHLgksQLLx 05nw== X-Gm-Message-State: ALyK8tIKtPX+UeHyb81++VkWicsDqJ7+/MrKlxFzKuMKErypoWK5eYpHuP52x1OyKkXuuw== X-Received: by 10.55.215.13 with SMTP id m13mr17575324qki.59.1467662883673; Mon, 04 Jul 2016 13:08:03 -0700 (PDT) Received: from localhost ([179.105.243.72]) by smtp.gmail.com with ESMTPSA id f137sm1411454qka.43.2016.07.04.13.08.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jul 2016 13:08:02 -0700 (PDT) Received: by localhost (sSMTP sendmail emulation); Mon, 04 Jul 2016 17:07:57 -0300 From: Otavio Salvador To: meta-freescale Mailing List Date: Mon, 4 Jul 2016 17:07:07 -0300 Message-Id: <20160704200719.2861-6-otavio@ossystems.com.br> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160704200719.2861-1-otavio@ossystems.com.br> References: <20160704200719.2861-1-otavio@ossystems.com.br> Organization: O.S. Systems Software LTDA. Cc: Otavio Salvador Subject: [meta-fsl-arm krogoth PATCH 05/17] 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: Mon, 04 Jul 2016 20:08:21 -0000 From: Adrian Dudau 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 Signed-off-by: Otavio Salvador --- 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 -- 2.9.0