Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4607134pxt; Wed, 11 Aug 2021 09:40:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/rFqrN4+zOP7vKOLrB4TOuNvnPvaqIWB8nF9PI4TobrakWBUbYgYzXKLjsyphynT6pK5E X-Received: by 2002:aa7:da52:: with SMTP id w18mr12276404eds.48.1628700013634; Wed, 11 Aug 2021 09:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628700013; cv=none; d=google.com; s=arc-20160816; b=ePZHPqnq5EzULtTAAqaRJ7kIxuUsF3WoGlau2l2Rf96cX4dccEdz2vhAvSYJpuFt9P 7uNjLIbOjCHnRJ39JhH+vNKfu6w8ieTHyfCl0LaLuSQx3FlXHUA9ww0XajA/M0VytSGM 1VpuyMjrOCdcZ8Km2kRW7XGN1t8S1bVCSo/u9aMhZ3JXQDMiA+jFEtmq3ireFCZ/Sqig 8HbkJ/ljxrOL/slPvkp4uVwJpy5Sfl8MU0aRhyz2pxCA1/4Oy/hla6pBLGvY+mrFPPP8 SxapS2f2Fh36amSSB1D0nce+o31BSbhKYa9TIRGR/JYHp0OUBmIXp3deik8bOIBrrAmX gZEg== 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=cL21VypGpS+uiM+qAaCaWq4XrgxStOxB/CW1z83affg=; b=SGbdzCJuksNvpafsYZ0liQKAu5sWqvNO0ukezaE57LbXK4r1c2c8lOcNJ7EmV1fDh4 tAHm7v+r4yOEMVJiDJdYGtZGxTWd9XV50l0YWZ/5n43euOA4dD4yK/bFaPUIuoiDiVBO 9qhXNkRJX7WNUaxj4A1dBCcGVNrxzovYFV2sysphhefP+oNEseb/ta6JZcFjDeT3YwYg 7TPCJ5mQ3of+FuwcXpFlPH0j6RhCJY4ees4EhOjUwV4DVVGiheIwl8293NF3dl9ViZNO uGeznrQ6dgc8O53rJeN0mXffXuOedASHoRfBbmqNqjUAzaA9POvPsLzbkpogvYCke6lL TjcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=QnkfZYO+; 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 b7si2036095edr.45.2021.08.11.09.39.49; Wed, 11 Aug 2021 09:40:13 -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=QnkfZYO+; 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 S229914AbhHKQip (ORCPT + 99 others); Wed, 11 Aug 2021 12:38:45 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:24443 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229588AbhHKQio (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 17BGbXJ1027140; Thu, 12 Aug 2021 01:37:34 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com 17BGbXJ1027140 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1628699854; bh=cL21VypGpS+uiM+qAaCaWq4XrgxStOxB/CW1z83affg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QnkfZYO+bGTtLD25MgGMSqCvz1gFyM+If48sDWHraZ/5SVVukIfqvtz6cJDI6y/a0 v44Fs/jKsAwlHUYuaShvMbEQyR0SIlDymqqNcrX6Z8ECkfZKBxpLhXlq1PqkE6YVPD c+zzLqAjsuU48VPzbKG/gm/WAd8EMGkX1WE/qz4okLyWZ2ZtWWnqKgTBOoU0iuAx3b PoOpvHu7oPwMPCmA8cfR+t07AUiuLT4OYKQDs2n3kuBFUSs+y5wM6Vze7invy6Ax6H EdRl4yGi/kzMQyfoljQP9ruKGAMmnb0Oi2nguTPfsqndTkczMtD6PJoyv6tHT2riId Y8L4FV7b2S+gg== 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 2/4] xtensa: do not build variants directory Date: Thu, 12 Aug 2021 01:37:29 +0900 Message-Id: <20210811163731.186125-2-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 None of arch/xtensa/variants/*/ has Makefile, so 'buildvar' is always empty. Perhaps, downstream variant code might be dropped in, but given the fact that none of upstream variants builds anything in their variant directory, I doubt this is needed. Signed-off-by: Masahiro Yamada --- arch/xtensa/Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile index 6fab7fc87579..3c0573fe6761 100644 --- a/arch/xtensa/Makefile +++ b/arch/xtensa/Makefile @@ -55,9 +55,7 @@ KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(vardirs) $(plfdirs)) KBUILD_DEFCONFIG := iss_defconfig -# Only build variant and/or platform if it includes a Makefile - -buildvar := $(shell test -e $(srctree)/arch/xtensa/variants/$(VARIANT)/Makefile && echo arch/xtensa/variants/$(VARIANT)/) +# 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 @@ -66,7 +64,7 @@ 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 += $(buildvar) $(buildplf) +core-y += $(buildplf) core-y += arch/xtensa/boot/dts/ libs-y += arch/xtensa/lib/ $(LIBGCC) -- 2.30.2