Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id AFFB8E00939; Wed, 26 Apr 2017 15:23:19 -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=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (mats.dev.list[at]gmail.com) * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.215.65 listed in list.dnswl.org] * 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [209.85.215.65 listed in dnsbl.sorbs.net] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-lf0-f65.google.com (mail-lf0-f65.google.com [209.85.215.65]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 5425EE00777 for ; Wed, 26 Apr 2017 15:23:17 -0700 (PDT) Received: by mail-lf0-f65.google.com with SMTP id 75so1996498lfs.3 for ; Wed, 26 Apr 2017 15:23:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=gToqkH3jKTy3qWgXanmh52eFDEjKDXYsmrikmCz4Kxs=; b=foF7dua8gg34trp+DEW9ma/JLRfyIIgi2qaLCNJh8FpE2qO8PiQewOIkdJuTlhzFq0 K54rCpL35kmiS/eOnQGd8qImLNB6U3KCLnlKpOdnaDRNyHPJ9dAPVwaI++biISKkmBYX kxcsPo2JXFk4V4kpEH2SvUMS7FVWvYlShwtlGNT8cBrWKwaBKpaJ4Ea3Jo9EGz+pXwG0 0bIKPHidvLpW8RMxSScpiLNYum3+fRnmy9iM1lCDCwVW473R+XDnZytAVCDc4XENZmdQ ZpXSI7GypBj1IcuQIAZmfKipou9QQq0okgj4kBhsVTMMNe9Iu4UTfDyO4T6RMlxylHjQ BujA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=gToqkH3jKTy3qWgXanmh52eFDEjKDXYsmrikmCz4Kxs=; b=cNPD///rtHWBLlfufsL9u1OTQ6hHWPbcYqpD3XkEtjYbRYm3+YObz9UCGOUeli3vz8 2eaP9hpsum4BQznvt8FjEL3ny6CcqY3CXR1yhXxPKobERNbLN9fBv1GVnv0OUCs87xfX VxJR4Qpphc3874Oe2N7H4hQH9/Qf/AQzx6bcEFmClQ2HQ6l6xD/OnlfKtA4um6eQGKgN b7b0i37gbe+Aa7uhOi/mPv5+uw2DVurEidKwdNZKN1ePALQUVl/Ys39HtuYxH2zpPrZ1 Suulmn4Vdl4r/p3x6zbZat0JfXKfcH0PKf/CDUwFTP2AsS9r8okCAuQcgPwqy9DvkpTb 0mmA== X-Gm-Message-State: AN3rC/5VwKIsUbcSqRZUtbXfQBGZ0ZH3c7aFvUJZVUFKQ3mk1t6jdni+ 1fzeX/GL9UQVdltC X-Received: by 10.46.87.73 with SMTP id r9mr927453ljd.31.1493245396501; Wed, 26 Apr 2017 15:23:16 -0700 (PDT) Received: from localhost.localdomain ([195.84.96.49]) by smtp.gmail.com with ESMTPSA id 92sm93611lfv.53.2017.04.26.15.23.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Apr 2017 15:23:15 -0700 (PDT) From: Mats Karrman To: meta-freescale@yoctoproject.org Date: Thu, 27 Apr 2017 00:23:18 +0200 Message-Id: <1493245398-22297-1-git-send-email-mats.dev.list@gmail.com> X-Mailer: git-send-email 2.1.4 Cc: otavio.salvador@ossystems.com.br Subject: [PATCH v2] fsl-kernel-localversion: Add preconfigure dependency on do_unpack 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: Wed, 26 Apr 2017 22:23:19 -0000 Even if 'externalsrc' is used, SRC_URI may specify a 'defconfig'. However as the use of 'externalsrc' will do away with the do_patch task, do_preconfigure is in risk of being run before the defconfig is copied to the build directory. This patch adds a second dependency on 'do_unpack' that makes sure this does not happen. Signed-off-by: Mats Karrman --- classes/fsl-kernel-localversion.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Build Configuration: BB_VERSION = "1.34.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal-4.9" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "rabbit" DISTRO = "poky" DISTRO_VERSION = "2.3" TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard cortexa9" TARGET_FPU = "hard" meta meta-poky = "master:7a0e795373653886452a7a2992ced10080711c26" meta-oe meta-networking meta-python = "master:ba89d451fba299f00f3dff902cc6456106525fc9" meta-freescale = "master:f12671110e0d442fc1655957f6e10291f743e7d1" meta-freescale-3rdparty = "master:ebccc38c30f13f80f7bc5822bc094512a22b0670" meta-local = "master:23f801c2223dca2869133b04855e69e252c9ca23" Typical error message: ERROR: linux-rabbit-4.10-r0 do_preconfigure: Function failed: do_preconfigure (log file is located at /home/mats/projects/cubox/oe/build/tmp/work/rabbit-poky-linux-gnueabi/linux-rabbit/4.10-r0/temp/log.do_preconfigure.5546) ERROR: Logfile of failure stored in: /home/mats/projects/cubox/oe/build/tmp/work/rabbit-poky-linux-gnueabi/linux-rabbit/4.10-r0/temp/log.do_preconfigure.5546 Log data follows: | DEBUG: Executing shell function do_preconfigure | /home/mats/projects/cubox/oe/build/tmp/work/rabbit-poky-linux-gnueabi/linux-rabbit/4.10-r0/temp/run.do_preconfigure.5546: line 116: /home/mats/projects/cubox/oe/build/tmp/work/rabbit-poky-linux-gnueabi/linux-rabbit/4.10-r0/defconfig: No such file or directory | WARNING: /home/mats/projects/cubox/oe/build/tmp/work/rabbit-poky-linux-gnueabi/linux-rabbit/4.10-r0/temp/run.do_preconfigure.5546:1 exit 1 from 'sed -e "${CONF_SED_SCRIPT}" < '/home/mats/projects/cubox/oe/build/tmp/work/rabbit-poky-linux-gnueabi/linux-rabbit/4.10-r0/defconfig' >> '/home/mats/projects/cubox/oe/build/tmp/work/rabbit-poky-linux-gnueabi/linux-rabbit/4.10-r0/linux-rabbit-4.10//.config'' | ERROR: Function failed: do_preconfigure (log file is located at /home/mats/projects/cubox/oe/build/tmp/work/rabbit-poky-linux-gnueabi/linux-rabbit/4.10-r0/temp/log.do_preconfigure.5546) ERROR: Task (/home/mats/projects/cubox/oe/meta-local/recipes-kernel/linux/linux-rabbit_4.10.bb:do_preconfigure) failed with exit code '1' Reproducible 100% on my i7 machine. Starting build again without any changes makes build pass since defconfig has already been copied. Same issue found and same fix applies on kergoth. --- diff --git a/classes/fsl-kernel-localversion.bbclass b/classes/fsl-kernel-localversion.bbclass index 48e5403..c0306a0 100644 --- a/classes/fsl-kernel-localversion.bbclass +++ b/classes/fsl-kernel-localversion.bbclass @@ -38,4 +38,4 @@ do_preconfigure() { printf "%s%s" +g $head > ${S}/.scmversion fi } -addtask preconfigure before do_configure after do_patch +addtask preconfigure before do_configure after do_unpack do_patch -- 2.1.4