Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1203301pxb; Sun, 17 Jan 2021 00:10:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPIeG5j9EQm1zuCpIYfs2jxAAgdGST3SXjrzlwiLLr3zR2ML+zgCpHONZ/+4QMJZraB8Az X-Received: by 2002:a17:907:961c:: with SMTP id gb28mr13433658ejc.393.1610871047715; Sun, 17 Jan 2021 00:10:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610871047; cv=none; d=google.com; s=arc-20160816; b=UKeEHf6jYeXATpFZyeAnr3ueVK90r8VUvyOJ9+6mmESmdbzsG73xomm0V91SIqfWI0 MG+DJXPISrWtIpGS3KUYkcS2b2EAmy1qcMgk6w5Vr2N0OM8DR7UptrJs6620iJ8v5mmC 7PA8aaymVqec6Df7rPXZ7xyWYkSx8oyYifUct+FZBqauuhLTw5E7NuZ6iWl5mdQ7LSqU Iude8SM2e/L7D4c/drTBLhzRgo3q6x9edcjGEQCRifuRjPG4gjTB3a5z8M7/0Zwwmsd9 xFm7mefBSKKBgp8C3LTp3gWHnucsO/hy6E60Cnc9WUfS3HbGcWLx02R5jFFym1FuRsGg +H/g== 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 :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=KxxLfsj//Y08AAlVQEh12t7SON+ohmx3H8rw17177Yk=; b=HB7bJ1DWIp9+KPjtyOHmbdieBpy6PzzlnPx807Mk6CmQRfTwZnPIMJaN172UV/QtLP JdY0NIbguPKY6IwZ/7drPfvHe1uzPMIp8miueR726hz7FIUWrS6LE2JefxIat0/9grDS jaI1d6YDQlBjchzQ5X76D/b7GyyEjxgYX5zMji9s+H854kR436dpIhQYfp2lXrLp/SwX 3w8JRQmmtpltWPxUzrELMzEoV1PhlsTKlhCbgGVcEbSv3vOKgyhkmzKR7hQ9XsTtBW0X f6VGAXAHG07VEcwAxZ/eeC/jI42iRra+aY6Knpwt2sDZ2NxULq8/BgLy8ZuqC8EoroAi +xbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=iLRoaChd; 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 dk25si118418edb.583.2021.01.17.00.10.24; Sun, 17 Jan 2021 00:10:47 -0800 (PST) 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=iLRoaChd; 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 S1727197AbhAQIIy (ORCPT + 99 others); Sun, 17 Jan 2021 03:08:54 -0500 Received: from conuserg-11.nifty.com ([210.131.2.78]:17244 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727159AbhAQIFo (ORCPT ); Sun, 17 Jan 2021 03:05:44 -0500 Received: from oscar.flets-west.jp (softbank126026094251.bbtec.net [126.26.94.251]) (authenticated) by conuserg-11.nifty.com with ESMTP id 10H83ZJT006716; Sun, 17 Jan 2021 17:03:36 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com 10H83ZJT006716 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1610870616; bh=KxxLfsj//Y08AAlVQEh12t7SON+ohmx3H8rw17177Yk=; h=From:To:Cc:Subject:Date:From; b=iLRoaChdyO3pV3Rz7HT7gR0qLZga5XhwwO8VgHC4O2dx7x+3OEcUmCcFI1y1DVYIF HCe9vRsx9ZwVZtUSiQAlxKJhgdlwh+MmJNd5VOVfSkk8xHiJY1C1yBNgc08D68b20+ eRN46c2Qfq3wwitlfTiDVuXSJCZSqw39sM5batPLCrKEmuvITQR/r4TppiGIkhX3FJ OBynvbbw14kb/K5LFhdPLc8ReNVkuxLa2vxn7kAwTDBa1QfAj4UHAz/SFLTq9XOXdr cWB3PXjdVUSWnyC12pdUqGWQUrz48DQ2rXaZ0ZeADa9VAzTZnKNaeJZtuKr3pfgGAK Zp56ON7DcfHgw== X-Nifty-SrcIP: [126.26.94.251] From: Masahiro Yamada To: Jonas Bonn , Stefan Kristiansson , Stafford Horne , openrisc@lists.librecores.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] openrisc: add arch/openrisc/Kbuild Date: Sun, 17 Jan 2021 17:03:32 +0900 Message-Id: <20210117080332.2289077-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Describe the subdirectories under arch/openrisc/ in arch/openrisc/Kbuild so you can use the standard obj-y syntax. I removed the CONFIG_OPENRISC_BUILTIN_DTB conditional because it is already controlled by arch/openrisc/boot/dts/Makefile. Signed-off-by: Masahiro Yamada --- arch/openrisc/Kbuild | 3 +++ arch/openrisc/Makefile | 11 +---------- 2 files changed, 4 insertions(+), 10 deletions(-) create mode 100644 arch/openrisc/Kbuild diff --git a/arch/openrisc/Kbuild b/arch/openrisc/Kbuild new file mode 100644 index 000000000000..4234b4c03e72 --- /dev/null +++ b/arch/openrisc/Kbuild @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0 +obj-y += lib/ kernel/ mm/ +obj-y += boot/dts/ diff --git a/arch/openrisc/Makefile b/arch/openrisc/Makefile index bf10141c7426..44e63fa35e04 100644 --- a/arch/openrisc/Makefile +++ b/arch/openrisc/Makefile @@ -38,14 +38,5 @@ endif head-y := arch/openrisc/kernel/head.o -core-y += arch/openrisc/lib/ \ - arch/openrisc/kernel/ \ - arch/openrisc/mm/ +core-y += arch/openrisc/ libs-y += $(LIBGCC) - -ifneq '$(CONFIG_OPENRISC_BUILTIN_DTB)' '""' -BUILTIN_DTB := y -else -BUILTIN_DTB := n -endif -core-$(BUILTIN_DTB) += arch/openrisc/boot/dts/ -- 2.27.0