From patchwork Sat Sep 14 13:35:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 1162335 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bootlin.com Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46Vtmk69zjz9s7T for ; Sat, 14 Sep 2019 23:35:32 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D34FE854DF; Sat, 14 Sep 2019 13:35:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T5LEmQVL3Bjc; Sat, 14 Sep 2019 13:35:29 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 51A5785572; Sat, 14 Sep 2019 13:35:29 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id E11FF1BF2E4 for ; Sat, 14 Sep 2019 13:35:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id DDCCD85572 for ; Sat, 14 Sep 2019 13:35:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rh5QEvde3qgn for ; Sat, 14 Sep 2019 13:35:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 0F86C854DF for ; Sat, 14 Sep 2019 13:35:26 +0000 (UTC) X-Originating-IP: 90.76.216.45 Received: from localhost (lfbn-1-2159-45.w90-76.abo.wanadoo.fr [90.76.216.45]) (Authenticated sender: thomas.petazzoni@bootlin.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id B9C0EFF808; Sat, 14 Sep 2019 13:35:23 +0000 (UTC) From: Thomas Petazzoni To: Buildroot List , Atharva Lele , "Arnout Vandecappelle (Essensium/Mind)" Date: Sat, 14 Sep 2019 15:35:18 +0200 Message-Id: <20190914133518.19604-1-thomas.petazzoni@bootlin.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH buildroot-test] scripts/autobuild-run: calculate dldir as an absolute path X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Right now, self.dldir is a relative path, equal to "instance-X/dl". Then, the Buildroot build is executed with BR2_DL_DIR=self.dldir, which means that self.dldir is interpreted relatively to the Buildroot source directory. Due to this, we get the following directory organization: instance-0 + buildroot + instance-0 + dl + instance.log + output Instead of the excepted organization: instance-0 + buildroot + dl + instance.log + output We fix this issue (which was introduced when the Builder class was created) by making self.dldir an absolute path. Signed-off-by: Thomas Petazzoni Reviewed-by: Arnout Vandecappelle (Essensium/Mind) Reviewed-by: Atharva Lele --- scripts/autobuild-run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/autobuild-run b/scripts/autobuild-run index ead81a0..7e3c7a0 100755 --- a/scripts/autobuild-run +++ b/scripts/autobuild-run @@ -270,7 +270,7 @@ class Builder: # frequently needed directories self.idir = "instance-%d" % self.instance self.srcdir = os.path.join(self.idir, "buildroot") - self.dldir = os.path.join(self.idir, "dl") + self.dldir = os.path.abspath(os.path.join(self.idir, "dl")) # We need the absolute path to use with O=, because the relative # path to the output directory here is not relative to the # Buildroot sources, but to the location of the autobuilder