Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4608429pxt; Wed, 11 Aug 2021 09:42:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVW/XOOIBF+EYkWhsR+YaqCqCZgwM+vJoffKCZjjQEzZ+HsOsvgtkTAtjopTYZLpXcmhtI X-Received: by 2002:a17:906:6dc1:: with SMTP id j1mr4638165ejt.324.1628700135515; Wed, 11 Aug 2021 09:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628700135; cv=none; d=google.com; s=arc-20160816; b=KHhLSkA2Cp1swPIYpkwjZ29yL+341u9Cjhx5EK8xgghz8FJ8ODYx1kXI+tbJjU73Tj OqQO3JdWrOF+Uor21sV6DoU/wwOrs+zmeXxaRCcne/YOfSIBNV2GKMFjH7x8icCARtLI 64T4Z+zUqQcV3cFKU/iKG7oygn5dTKJaNIEPN3aE9caQ24Ee/zEMXQZUvvJHdqz8xhRp myj0hlCcf8bLwUbYy9VZoYFXu0EpTHKX4XZePaswwjoRvCM4QVk2I8h5i6L8mO1+n7bF guSzfYnbnxW96bIJ3LP9Uy/m31Ylm51XLZ+i4M3l8CVPmHHraeHvx/UH4/t94IwcdwMC Lzhg== 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=et8Mka1E5ArHHTvBvnzBqyfNfwl3w1PM0NF96xE8gUw=; b=xkTtgjFZRHG5z+9u2jyyTYGgqxglmcyEAY07vEaCHqmyS3TFGsig4mQ3+e5CK70dP3 MUADeq8PBWQNvhKnWzlASy4+0Y78AjXu0tOHfbiNUqtpDX53DodyLYyeCQIWiBufLXvf VQuzzUjAbKSW7T+4EaA67D/GRxp76atP/UiQMAogsztOqCRGxiP9xotQZe7Qi95tIcfT bz47dc/2Y4X1004If2t5GAkxv1hBQlKSfFBYx1Hw1anWLDkadzB4GXPEGuQIOioDwZgt zwQQ4GBrbCLYsqAGO1PlXZDyuJuwEDhCJNqONkVa9cfIWCYQRYTW7ad8+bNqEdILry19 d55g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=UWk03G+7; 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 ee39si6335454edb.579.2021.08.11.09.41.45; Wed, 11 Aug 2021 09:42:15 -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=UWk03G+7; 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 S230342AbhHKQiu (ORCPT + 99 others); Wed, 11 Aug 2021 12:38:50 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:24492 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbhHKQip (ORCPT ); Wed, 11 Aug 2021 12:38:45 -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 17BGbXJ3027140; Thu, 12 Aug 2021 01:37:35 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com 17BGbXJ3027140 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1628699856; bh=et8Mka1E5ArHHTvBvnzBqyfNfwl3w1PM0NF96xE8gUw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UWk03G+7WtsJm8vNtT8WmvprVk1lLxy9biOk4Ytm6Ogfg6sK4+TOXHKAmoslEtHOS aJT6d+lhbCxjaCqiH9QJoEiE+gWX6vm/WgIkG5gwLyOa0FwEhUz+UN2WF3QxcZWok4 NXoEG3DY84jTl6Q7e1dIE/jhmqjJKascZfds/w7+qnRjTg+EJccg0MBC5sLPoZdwh2 36862yFATu0F0UHZZXV112RbbijcDV4+rThzzlKDBmThid7W4fWjzTWQ1kNB/77nzo pDgfkqat9p1imM05ICI3ykfPwhkox0XEMxt9+nKW08ip1Qj+TQdYd+NXHuKnsI3JyL FbcnGsEi5uDuw== 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 4/4] xtensa: move core-y in arch/xtensa/Makefile to arch/xtensa/Kbuild Date: Thu, 12 Aug 2021 01:37:31 +0900 Message-Id: <20210811163731.186125-4-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 Use obj-y to clean up Makefile. Signed-off-by: Masahiro Yamada --- arch/xtensa/Kbuild | 1 + arch/xtensa/Makefile | 3 --- arch/xtensa/platforms/Makefile | 4 ++++ 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 arch/xtensa/platforms/Makefile diff --git a/arch/xtensa/Kbuild b/arch/xtensa/Kbuild index a4e40e534e6a..fd12f61745ba 100644 --- a/arch/xtensa/Kbuild +++ b/arch/xtensa/Kbuild @@ -1 +1,2 @@ # SPDX-License-Identifier: GPL-2.0-only +obj-y += kernel/ mm/ platforms/ boot/dts/ diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile index 093e87b889be..96714ef7c89e 100644 --- a/arch/xtensa/Makefile +++ b/arch/xtensa/Makefile @@ -58,9 +58,6 @@ KBUILD_DEFCONFIG := iss_defconfig 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 += arch/xtensa/platforms/$(platform-y)/ -core-y += arch/xtensa/boot/dts/ libs-y += arch/xtensa/lib/ $(LIBGCC) diff --git a/arch/xtensa/platforms/Makefile b/arch/xtensa/platforms/Makefile new file mode 100644 index 000000000000..e2e7e0726979 --- /dev/null +++ b/arch/xtensa/platforms/Makefile @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0-only +obj-$(CONFIG_XTENSA_PLATFORM_XT2000) += xt2000/ +obj-$(CONFIG_XTENSA_PLATFORM_ISS) += iss/ +obj-$(CONFIG_XTENSA_PLATFORM_XTFPGA) += xtfpga/ -- 2.30.2