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 X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E1A7C4338F for ; Tue, 27 Jul 2021 09:07:21 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 398156124E for ; Tue, 27 Jul 2021 09:07:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 398156124E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 777D283332; Tue, 27 Jul 2021 11:07:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=sifive.com header.i=@sifive.com header.b="VSOuATkh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0778483343; Tue, 27 Jul 2021 11:07:15 +0200 (CEST) Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) (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 907728317A for ; Tue, 27 Jul 2021 11:07:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=zong.li@sifive.com Received: by mail-pl1-x62b.google.com with SMTP id i1so15024557plr.9 for ; Tue, 27 Jul 2021 02:07:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=k9HluXnXsF4OLd3vMJw+Xg9o5ReFZYbWjSqU5DP/INk=; b=VSOuATkhDYyILWmMarOxSZZ7fsVx7WclSTIxiM719czKzmsy0lFa/XgyDPPo+39V3b yU7YWkOSBiSYUx9iBBsuxPlE2LYsykbNE/dHsGys/KDH72HH9vEO8KNYlfiNX/WMmcbF cGEe2dMkOyNOFdswB9RDRWjlWpfvs6o9FvtZcIFfyLb3x4tYx9FUAOcS+YKoY0skGH8g +pw8PVA/4K+PnUGkHKNYzPPmfruR/c2CafHB9Sh+CE32gYOU9lZ2CZ4U6bd06ZAn5FkB 2qw7+aUwCvHEnC7PbFrFrcsVYRH8Y2sBnCn23SM1s3KecIpGGTeVzs0KipXlFSiCMdgK 6kMQ== 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:mime-version :content-transfer-encoding; bh=k9HluXnXsF4OLd3vMJw+Xg9o5ReFZYbWjSqU5DP/INk=; b=Edga9a4fIRE1d4CCpZqlLQ0XCYlXdLv20fSQmdgk0a0508NQ8NsR/NquzldX18jiN6 2jgcfeVTLZdsE54Nb6y4Y5U9tT3XJiFLENGlarvKjORFwrpA1P1hNPDfz3VejNAAvQl/ b8lLa093FFwY0jb7wKGHp3PcbVJc6XRLLX9bTT26DpvAVg9WLHoFBKiQodJ8F27Q2ni0 z+bnLzSxTdXYQcxppy76nXpDudhzrmbsOq+bofvcJoScYD9YtUxACoBLZ2Ey9E6K2dOq H9TibHtaFcOC8ObYWP0NghavBI+oaWdEnRnS8DWOG6ZYLtlpFua1SvpJzkEeVPQrQv2O W2ew== X-Gm-Message-State: AOAM530vL/Qh7euDIGIhCI2/uF4oYGPZ1/L803J9kMxfA7fD24ivbEP7 l1WvLjiM7IZNbwg3hlGuTjMXWg== X-Google-Smtp-Source: ABdhPJyiGofQYi8M4148XGQdnISg+sr5V61H8J8BuUPTU65wX2KtYg0e1LGT1oiQP+fwETbE2XEKHQ== X-Received: by 2002:a05:6a00:1515:b029:329:932b:9484 with SMTP id q21-20020a056a001515b0290329932b9484mr21879722pfu.13.1627376824885; Tue, 27 Jul 2021 02:07:04 -0700 (PDT) Received: from hsinchu15.internal.sifive.com (59-124-168-89.HINET-IP.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id p5sm2847870pfn.46.2021.07.27.02.07.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jul 2021 02:07:04 -0700 (PDT) From: Zong Li To: bmeng.cn@gmail.com, ycliang@andestech.com, paul.walmsley@sifive.com, rick@andestech.com, green.wan@sifive.com, sjg@chromium.org, u-boot@lists.denx.de Cc: Zong Li Subject: [PATCH 1/2] board: sifive: compile stuff only related to SPL in SPL build Date: Tue, 27 Jul 2021 17:06:58 +0800 Message-Id: <20210727090659.7525-1-zong.li@sifive.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean As (3581811dc26f "riscv: sifive/fu540: Move SPL related functions to spl.c"), we put the SPL stuff in spl.c, we don't need to compile unleashed.c and unmatched.c in SPL build. Signed-off-by: Zong Li --- board/sifive/unleashed/Makefile | 4 ++-- board/sifive/unmatched/Makefile | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/board/sifive/unleashed/Makefile b/board/sifive/unleashed/Makefile index 5821679dd9..98e9111cbc 100644 --- a/board/sifive/unleashed/Makefile +++ b/board/sifive/unleashed/Makefile @@ -2,8 +2,8 @@ # # Copyright (c) 2019 Western Digital Corporation or its affiliates. -obj-y += unleashed.o - ifdef CONFIG_SPL_BUILD obj-y += spl.o +else +obj-y += unleashed.o endif diff --git a/board/sifive/unmatched/Makefile b/board/sifive/unmatched/Makefile index e00b330e8c..1345330089 100644 --- a/board/sifive/unmatched/Makefile +++ b/board/sifive/unmatched/Makefile @@ -2,9 +2,10 @@ # # Copyright (c) 2020-2021 SiFive, Inc -obj-y += unmatched.o obj-$(CONFIG_ID_EEPROM) += hifive-platform-i2c-eeprom.o ifdef CONFIG_SPL_BUILD obj-y += spl.o +else +obj-y += unmatched.o endif -- 2.32.0