Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A452BC6FD19 for ; Fri, 10 Mar 2023 20:51:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1090C85FA1; Fri, 10 Mar 2023 21:49:31 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="cPYHIAgw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 95D1985F6D; Fri, 10 Mar 2023 21:49:08 +0100 (CET) Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2F2B885F61 for ; Fri, 10 Mar 2023 21:48:59 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x12b.google.com with SMTP id y9so3701796ill.3 for ; Fri, 10 Mar 2023 12:48:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1678481337; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YsF4PFy1gp7WZEmLZ5U4Rkem/7N3wBKfmVT3Fvf9whg=; b=cPYHIAgwnO/dKYsMLMzeK5+Q2b7/AUSMELB/jM32ebRNAWfKNd6E7f4y7C7ZCMO4rR HSKNvByB98xVN1km5LdHAlZ1wlvn2zbEg5kL31I3+Au8HCZvgMsdlJ+SRe9KcjNA6I0x K4v+8Ii+zo7EVxTCdrh4biZNr2X15c+BEc41U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678481337; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YsF4PFy1gp7WZEmLZ5U4Rkem/7N3wBKfmVT3Fvf9whg=; b=nMh7WlO2hFDaSTJd3hnn8SUcoN4loGDcyEGJDkxFrANL3kc2nCFzl3A4I03iyylZKO jwQ4wrnKrMxzFBktpzox6mcnyeN/GXZB5Qy93VERDVtbptZUvz32h79pQwAmfR/Z634x xOxI5rAORCZoGUgmKQYgQBTP2kmvIMKE3jzY5yJPD8V1HRo7bKZF4xj9x5qc5W1arb0p V+8ZaLDVQQMoE6K9Gy0z+eJnMOtSGKitD7UjZXJ+63YQ/L2WSMuR12azoqz/O04u+Ff8 95BniM2VkeyiLWVcCONMR36/ifnChDQbLN9hXVE+EGI6WaJT4rWOJeFwl+6Auiw4c4qt /zAQ== X-Gm-Message-State: AO0yUKX/sN7CTLMxTA3IrObqbXJ+peEwxzdYaG1kF7R3ykcVB/dQocsI p1o67W7RGZieDAPeUff/2DT9mxFoZNAPD0H+XTo= X-Google-Smtp-Source: AK7set/cUgBy+FrnqzdQjiIz6R5rhYDLIEMXcgKGTpP8LRX2Cc+Hx04efvm8lYWipthWgPU9LIO+hA== X-Received: by 2002:a05:6e02:f8e:b0:317:83ad:a2a2 with SMTP id v14-20020a056e020f8e00b0031783ada2a2mr1930674ilo.10.1678481337135; Fri, 10 Mar 2023 12:48:57 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id g19-20020a0566380c5300b003bada974a13sm257126jal.165.2023.03.10.12.48.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 12:48:56 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass Subject: [PATCH 2/2] buildman: Fix CROSS_COMPILE output for sandbox Date: Fri, 10 Mar 2023 12:48:51 -0800 Message-Id: <20230310204852.416817-2-sjg@chromium.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230310204852.416817-1-sjg@chromium.org> References: <20230310204852.416817-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The previous attempt at fixing this broke the normal usage of the -A flag. At present, 'buildman -A sandbox' adds the path containing the toolchain. We can assume that this is in the path and we don't want to set CROSS_COMPILE=/bin/ Change this to align with what MakeEnvironment() does, but only for sandbox boards. Signed-off-by: Simon Glass --- tools/buildman/toolchain.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/buildman/toolchain.py b/tools/buildman/toolchain.py index 688f2e26872..241e8e69307 100644 --- a/tools/buildman/toolchain.py +++ b/tools/buildman/toolchain.py @@ -156,9 +156,10 @@ class Toolchain: Returns: Value of that environment variable or arguments """ - wrapper = self.GetWrapper() if which == VAR_CROSS_COMPILE: - return wrapper + os.path.join(self.path, self.cross) + wrapper = self.GetWrapper() + base = '' if self.arch == 'sandbox' else self.path + return wrapper + os.path.join(base, self.cross) elif which == VAR_PATH: return self.path elif which == VAR_ARCH: -- 2.40.0.rc1.284.g88254d51c5-goog