From patchwork Tue Aug 6 18:12:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Atharva Lele X-Patchwork-Id: 1143011 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.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ie01P3Kz"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4632n64yfBz9sMr for ; Wed, 7 Aug 2019 04:13:14 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7CB9686912; Tue, 6 Aug 2019 18:13:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CAQfqBm5elXr; Tue, 6 Aug 2019 18:13:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 00A3D8602E; Tue, 6 Aug 2019 18:13:10 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 457B81BF2F4 for ; Tue, 6 Aug 2019 18:13:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 42E478602E for ; Tue, 6 Aug 2019 18:13:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4pJXwayImauk for ; Tue, 6 Aug 2019 18:13:08 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by whitealder.osuosl.org (Postfix) with ESMTPS id A80CD8601E for ; Tue, 6 Aug 2019 18:13:08 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id r26so6052648pgl.10 for ; Tue, 06 Aug 2019 11:13:08 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=LYqkCxqF41XumlDL+1DWI+nw1Klgm4l2EXDEXiAYgZ0=; b=ie01P3KzAy9pLmk7R6GLdRoTP2hAejKh3051cjKRyC7/nVSHzxVfjP24QZ/2+6Qg0T UIqbBW4WtorjXrTX8F3SGUFAERiga6bSfYZGi9feKbGP8KXZMoS1Rl9uM3c8+DwipiYL i76QQyU8vf4KDwYjkNLH6PMigOlg/w9SoBT9kmwSMwzh/lCy5+UTE3gEfxZcpGuBnVe+ x8wbLlIdTT0EOqTndjEfbI4OxRCfs+vRrymats9BSJldgQB82W+l3nwUSdWmSxIDlu/t NoD1myjJsXK92Vr7u8et+iykQNpFmVMCdI6+2gNxeJe6iR2eYoN2VV8BYD+5Fz5Y1uQq vILw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=LYqkCxqF41XumlDL+1DWI+nw1Klgm4l2EXDEXiAYgZ0=; b=VJljA7RMtGBu1/cYw6iayPOLgVFh7PRL5yJKPVphDVeqHy9e97X7oYY0zhGg+MAFgq DeUr3POo9Fc3nGv88aAdORYJzvq5uHmPLtHVO6xezfK/GCKB4lCTVtWldAHYIgx7rjta 1HmvS9cb8bSukQiDON9O01vTwH9KfZEUklM02SzURE2ejEO+9+cq5zlDhHvTzC9poA3U 2PxcvYgaadhBkNwbfjkZD+ccHNsA9hAUrS9AjnqK1PXq5u8bx6tNIfEiNkW78PCK8rTG KSzWzYEEgY5dR3L+CHJIkqR7abooCYCHBiMkTktEmrTAsOCf7MHVA+8SGtB1T+2RTd/a q6mA== X-Gm-Message-State: APjAAAUi3zeAZ4pVgVoqKK6CcJ5R+c/ZcN5ms5uh8r5GiXA9VQcPlp+x Lk/k4F1JGRVouGEPk8QnghbKPyb9jVg= X-Google-Smtp-Source: APXvYqyD7Kh5gTuvTh0SfuLWdUI3zSDy4BXVeU2U6tn754xfP4tIpXLXqMfDEFTIvyxcltH0EHLTMw== X-Received: by 2002:a63:2c8:: with SMTP id 191mr4095241pgc.139.1565115187778; Tue, 06 Aug 2019 11:13:07 -0700 (PDT) Received: from localhost.localdomain ([123.201.52.51]) by smtp.gmail.com with ESMTPSA id f3sm144563777pfg.165.2019.08.06.11.13.05 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 06 Aug 2019 11:13:07 -0700 (PDT) From: Atharva Lele To: buildroot@buildroot.org Date: Tue, 6 Aug 2019 23:42:48 +0530 Message-Id: <20190806181251.21885-3-itsatharva@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190806181251.21885-1-itsatharva@gmail.com> References: <20190806181251.21885-1-itsatharva@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 3/6] autobuild-run: fix cross tools prefix for diffoscope 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: Atharva Lele , yann.morin.1998@free.fr, thomas.petazzoni@bootlin.com Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Make outputs "make: entering directory" when called from a different directory which is unnecessary and yields a wrong prefix. Adding this argument supresses unnecessary output and yields the right prefix. Before and after: https://gitlab.com/snippets/1877119 Signed-off-by: Atharva Lele --- scripts/autobuild-run | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/autobuild-run b/scripts/autobuild-run index ab49dcb..69766b2 100755 --- a/scripts/autobuild-run +++ b/scripts/autobuild-run @@ -447,7 +447,8 @@ class Builder: with open(reproducible_results, 'w') as diff: if self.sysinfo.has("diffoscope"): # Prefix to point diffoscope towards cross-tools - prefix = subprocess.check_output(["make", "O=%s" % self.outputdir, "-C", self.srcdir, "printvars", "VARS=TARGET_CROSS"]) + prefix = subprocess.check_output(["make", "--no-print-directory", "O=%s" % self.outputdir, + "-C", self.srcdir, "printvars", "VARS=TARGET_CROSS"]) # Remove TARGET_CROSS= and \n from the string prefix = prefix[13:-1] log_write(self.log, "INFO: running diffoscope on images")