From patchwork Tue May 15 19:36:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 159423 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 108B1B6FBB for ; Wed, 16 May 2012 05:36:54 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966576Ab2EOTgx (ORCPT ); Tue, 15 May 2012 15:36:53 -0400 Received: from smtp.snhosting.dk ([87.238.248.203]:29203 "EHLO smtp.domainteam.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966575Ab2EOTgw (ORCPT ); Tue, 15 May 2012 15:36:52 -0400 Received: from merkur.ravnborg.org (unknown [188.228.89.252]) by smtp.domainteam.dk (Postfix) with ESMTPA id B09F6F1929; Tue, 15 May 2012 21:36:51 +0200 (CEST) Date: Tue, 15 May 2012 21:36:51 +0200 From: Sam Ravnborg To: "David S. Miller" , sparclinux Subject: [RFC PATCH 3/3] sparc: introduce arch/sparc/Kbuild Message-ID: <20120515193651.GC17309@merkur.ravnborg.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: sparclinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: sparclinux@vger.kernel.org From 850652644b60709d7eae7d421fa6e18630f2bac8 Mon Sep 17 00:00:00 2001 From: Sam Ravnborg Date: Tue, 15 May 2012 21:27:15 +0200 Subject: [PATCH 3/3] sparc: introduce arch/sparc/Kbuild This allows us to do: make arch/sparc/ to build the core part of the sparc kernel. Signed-off-by: Sam Ravnborg --- This will conflict with the BFP work you have in netdev, but the resolution is trivial. The assignment to core-y shall be moved to Kbuild and the "arch/sparc/" part dropped. RFC due to this known conflict. Sam arch/sparc/Kbuild | 8 ++++++++ arch/sparc/Makefile | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 arch/sparc/Kbuild diff --git a/arch/sparc/Kbuild b/arch/sparc/Kbuild new file mode 100644 index 0000000..ff1585e --- /dev/null +++ b/arch/sparc/Kbuild @@ -0,0 +1,8 @@ +# +# core part of the sparc kernel +# + +obj-y += kernel/ +obj-y += mm/ +obj-y += math-emu/ + diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile index a492815..b9a72e2 100644 --- a/arch/sparc/Makefile +++ b/arch/sparc/Makefile @@ -52,8 +52,8 @@ endif head-y := arch/sparc/kernel/head_$(BITS).o head-y += arch/sparc/kernel/init_task.o -core-y += arch/sparc/kernel/ -core-y += arch/sparc/mm/ arch/sparc/math-emu/ +# See arch/sparc/Kbuild for the core part of the kernel +core-y += arch/sparc/ libs-y += arch/sparc/prom/ libs-y += arch/sparc/lib/