From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id 2523B7293E for ; Fri, 19 Dec 2014 13:19:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id sBJDIUpx013667; Fri, 19 Dec 2014 13:18:30 GMT Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xjIesg4Lpz84; Fri, 19 Dec 2014 13:18:30 +0000 (GMT) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id sBJDIEtl013663 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 19 Dec 2014 13:18:25 GMT Message-ID: <1418995131.13316.18.camel@linuxfoundation.org> From: Richard Purdie To: openembedded-core Date: Fri, 19 Dec 2014 13:18:51 +0000 X-Mailer: Evolution 3.12.7-0ubuntu1 Mime-Version: 1.0 Subject: [PATCH] kernelsrc.bbclass: Ensure fetch/unpack/patch tasks don't run X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2014 13:19:08 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit In particular this removes a race condition where a ${S}/patches directory could be created by do_unpack. This confuses kern-tools. Signed-off-by: Richard Purdie diff --git a/meta/classes/kernelsrc.bbclass b/meta/classes/kernelsrc.bbclass index 11f04e9..4208eff 100644 --- a/meta/classes/kernelsrc.bbclass +++ b/meta/classes/kernelsrc.bbclass @@ -1,5 +1,8 @@ S = "${STAGING_KERNEL_DIR}" +do_fetch[noexec] = "1" do_unpack[depends] += "virtual/kernel:do_patch" +do_unpack[noexec] = "1" +do_patch[noexec] = "1" do_package[depends] += "virtual/kernel:do_populate_sysroot" KERNEL_VERSION = "${@get_kernelversion_file("${S}")}"