Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4607046pxt; Wed, 11 Aug 2021 09:40:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdkykFMeJI4Hd1IaOrChZwkokonxKY8lxdv5i+xJbhg4a56FliYdxmmn14A9LOUOLgbUgC X-Received: by 2002:a05:6402:2317:: with SMTP id l23mr12361810eda.265.1628700007265; Wed, 11 Aug 2021 09:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628700007; cv=none; d=google.com; s=arc-20160816; b=eIo6e6MauEGUsNfwh7iieNqRqbXE+7fChwlfzuBM6b0huKY6piKM0UszMTJE3lYhOB eoWOOFBT3M3G6kSL27GQC9UKrVpZ472zsNDELgqTXb6aqjxD5YtZ4gyTfufrW7OWjIsd dZQTU/19PGuZbaJ+Tnoc0/mvP+4ZNpoNDMyQlZRG4+uTuAwEVsjuC+ckdgHg2GKhv1Hl AQx4gCrgl3bMjgkZElc29uj9X1xzLLrE9sac34tYrP1XHyT/+iOxDgCBWOmGXU4FoU67 XjSo1yB8O5lrCpU0YpjVJtwgsbAxankjhJQ3jTZtpaQICjnQNAdy/pKh+TV4AVsvOhhL 23FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=gGasa+zCJtwMQ/MN8gPIKkIM9bvv+AeK9qmF6dzqjlI=; b=GlkrDw8RKi9BbEWHcawOEGlq38FuUg6YqoSRqQXFhu1WeF5sU/NOAiVU7a52JTFS4e NSUo9DGrzpiyC2eYiqSUXjC1QHToqi27ACgk6z57W2SpnngTcLJJ5zSQagJdtVQvX8D2 t0zNO9k4zqVUuct0kgtI401l9keyiThS498y/XpqU7IqnZKtJQP/a5q6liH6jQSaKQwl L+c3Zmjldw0MXBp+KC9MOtyrqibIkQpGxeD17cwdunljo7+T2n86yfSYiSpr7tX5IRBV k1UavZRSTGBW4ZXbtNWG+ycligniuX9b74Tlz6bU336zW82janCmNrALmGImi6RdIubC aAeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="qYNyul/j"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f15si24153129eds.511.2021.08.11.09.39.43; Wed, 11 Aug 2021 09:40:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="qYNyul/j"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230030AbhHKQir (ORCPT + 99 others); Wed, 11 Aug 2021 12:38:47 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:24474 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbhHKQio (ORCPT ); Wed, 11 Aug 2021 12:38:44 -0400 Received: from localhost.localdomain (133-32-232-101.west.xps.vectant.ne.jp [133.32.232.101]) (authenticated) by conuserg-08.nifty.com with ESMTP id 17BGbXJ2027140; Thu, 12 Aug 2021 01:37:35 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com 17BGbXJ2027140 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1628699855; bh=gGasa+zCJtwMQ/MN8gPIKkIM9bvv+AeK9qmF6dzqjlI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qYNyul/jXyoDwojGW+SctVA7+3v4Uk1BIhY67c+ErhMQSX+ZiGBRpMCvd1xkiRiJN 4NoviOGFm8KmblDkGppZhgHosX47HzIQ0ATpa+nhyYXHT32QVmeV2GGFYyGeLMcwkI 2M9PuLp1NYaFsSQHpwrDRRMH+0ZPYSP4eKiUJ3rJMpRq+kzVARysJlNDyv5SleW7NP F55+A/2+61Jd9mk6EIfuXBHnD0g7aUrR2/b0dwk2qLAs5L3Y8zRoMD7G78UzSHkyPO fftVM6D5FktezCT3GhpgOWYxey+WtefFzMntDNYG6mr59LT+1DBis+o4ClcnJZ8wyK jx0PUz+6bGcmQ== X-Nifty-SrcIP: [133.32.232.101] From: Masahiro Yamada To: Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 3/4] xtensa: build platform directories unconditionally Date: Thu, 12 Aug 2021 01:37:30 +0900 Message-Id: <20210811163731.186125-3-masahiroy@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210811163731.186125-1-masahiroy@kernel.org> References: <20210811163731.186125-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All of arch/xtensa/platforms/*/ have Makefile. You do not need to check the presence of Makefile. Signed-off-by: Masahiro Yamada --- arch/xtensa/Makefile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile index 3c0573fe6761..093e87b889be 100644 --- a/arch/xtensa/Makefile +++ b/arch/xtensa/Makefile @@ -32,8 +32,6 @@ platform-$(CONFIG_XTENSA_PLATFORM_XT2000) := xt2000 platform-$(CONFIG_XTENSA_PLATFORM_ISS) := iss platform-$(CONFIG_XTENSA_PLATFORM_XTFPGA) := xtfpga -PLATFORM = $(platform-y) - # temporarily until string.h is fixed KBUILD_CFLAGS += -ffreestanding -D__linux__ KBUILD_CFLAGS += -pipe -mlongcalls -mtext-section-literals @@ -55,16 +53,13 @@ KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(vardirs) $(plfdirs)) KBUILD_DEFCONFIG := iss_defconfig -# Only build platform if it includes a Makefile -buildplf := $(shell test -e $(srctree)/arch/xtensa/platforms/$(PLATFORM)/Makefile && echo arch/xtensa/platforms/$(PLATFORM)/) - # Find libgcc.a LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) head-y := arch/xtensa/kernel/head.o core-y += arch/xtensa/kernel/ arch/xtensa/mm/ -core-y += $(buildplf) +core-y += arch/xtensa/platforms/$(platform-y)/ core-y += arch/xtensa/boot/dts/ libs-y += arch/xtensa/lib/ $(LIBGCC) -- 2.30.2