From mboxrd@z Thu Jan 1 00:00:00 1970 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 5D533C433F5 for ; Sun, 27 Mar 2022 20:27:59 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9635E839B2; Sun, 27 Mar 2022 22:27:37 +0200 (CEST) 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="HlGPVmBI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B4CAB8399E; Sun, 27 Mar 2022 22:27:11 +0200 (CEST) Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) (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 DDF2683997 for ; Sun, 27 Mar 2022 22:27:04 +0200 (CEST) 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-pl1-x636.google.com with SMTP id e5so13129963pls.4 for ; Sun, 27 Mar 2022 13:27:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oCEV7mLNmwcF5xoq1YeC3KKtsm9SxQPkseT+WFOnLE4=; b=HlGPVmBIOwr9lpi+0W8hoyAkCk4/6onvgEiyAzWIPKi3EKC5caxZXLdmuIxDaYevDT aWc6FxASEAOsqKQdN5Sg6obc8voTJPzQJMgBpumXAvUOGjZnvEPExyEOcZEOpUpHyND9 jNUQ9vh4SF4iZ6Vz6voeneKd2PaLQ/VDStpNE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oCEV7mLNmwcF5xoq1YeC3KKtsm9SxQPkseT+WFOnLE4=; b=16hWkJX48+dx0SvwFi/RBORW2PFzJRrPnlWb/xDLxJIbFdvmMNqjPTW/+ki9Ronvg+ +kEK+aavPM3xOM1KBzLLf2Xwb9Vxkt5koNgSocrNA6MIdAQm5n+Hhzsir8/zWBKLneHd /HeTiOaQFRAAgtZZQGqHw6/lHIWDHFrzzCkvlFwVSEN//aIGLi46G2MYmn+Z+VTykCVd r0x7EwWspW5T8OJPgCuK3+jTgiCdrPwS8YZr8UqN3fsKR60mO4UHH+uAQIy38ODPmMDd cBViAOiyqEy4g0rDJRfQQ4WzCi+5ZgXLk4hjcXLwRyE9Wh5biDDZnOEQ3DEiHYk64x3x v+ng== X-Gm-Message-State: AOAM530Kcs6XWzzUSziLmaK05HTZF8aKJiRiEY/ncCCA+02+ljEiFe9O ANOvwv5LlC3F9ZKtW4g+ttOwOIgTyKgJuA== X-Google-Smtp-Source: ABdhPJxB+Qh8bKi+s4vqsFsX9Ry3Jxep1iV3GTyt/gQSGjg9gvP3Fnw5OqDdH9Aqus4q757RygDwmw== X-Received: by 2002:a17:90a:f48a:b0:1c9:95c9:3092 with SMTP id bx10-20020a17090af48a00b001c995c93092mr4865447pjb.238.1648412823264; Sun, 27 Mar 2022 13:27:03 -0700 (PDT) Received: from localhost.localdomain (118-93-105-181.dsl.dyn.ihug.co.nz. [118.93.105.181]) by smtp.gmail.com with ESMTPSA id k3-20020a056a00168300b004f7e60da26csm13915466pfc.182.2022.03.27.13.26.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Mar 2022 13:27:03 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Sean Anderson , =?UTF-8?q?Marek=20Beh=C3=BAn?= , U-Boot Custodians , Tom Rini , Simon Glass Subject: [PATCH 05/10] sandbox: Allow link flags to be given Date: Sun, 27 Mar 2022 14:26:17 -0600 Message-Id: <20220327202622.3438333-5-sjg@chromium.org> X-Mailer: git-send-email 2.35.1.1021.g381101b075-goog In-Reply-To: <20220327202622.3438333-1-sjg@chromium.org> References: <20220327202622.3438333-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.5 at phobos.denx.de X-Virus-Status: Clean At present the link flags are not used for sandbox. Update the command line to use them. Signed-off-by: Simon Glass --- arch/sandbox/config.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sandbox/config.mk b/arch/sandbox/config.mk index 2b1b657831c..02a3ba0c0e9 100644 --- a/arch/sandbox/config.mk +++ b/arch/sandbox/config.mk @@ -16,7 +16,7 @@ PLATFORM_CPPFLAGS += $(shell $(SDL_CONFIG) --cflags) endif cmd_u-boot__ = $(CC) -o $@ -Wl,-T u-boot.lds $(u-boot-init) \ - $(LTO_FINAL_LDFLAGS) \ + $(KBUILD_LDFLAGS:%=-Wl,%)$(LTO_FINAL_LDFLAGS) \ -Wl,--whole-archive \ $(u-boot-main) \ $(u-boot-keep-syms-lto) \ @@ -24,7 +24,7 @@ cmd_u-boot__ = $(CC) -o $@ -Wl,-T u-boot.lds $(u-boot-init) \ $(PLATFORM_LIBS) -Wl,-Map -Wl,u-boot.map cmd_u-boot-spl = (cd $(obj) && $(CC) -o $(SPL_BIN) -Wl,-T u-boot-spl.lds \ - $(LTO_FINAL_LDFLAGS) \ + $(KBUILD_LDFLAGS:%=-Wl,%) $(LTO_FINAL_LDFLAGS) \ $(patsubst $(obj)/%,%,$(u-boot-spl-init)) \ -Wl,--whole-archive \ $(patsubst $(obj)/%,%,$(u-boot-spl-main)) \ -- 2.35.1.1021.g381101b075-goog