From: Sam Ravnborg <sam@ravnborg.org>
Date: Tue, 15 May 2012 19:27:15 +0000 (+0200)
Subject: sparc: introduce arch/sparc/Kbuild
X-Git-Tag: firefly_0821_release~3680^2~2868^2~18
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e1d7de8377e6ab3dbd2359507b217ea6b0944302;p=firefly-linux-kernel-4.4.55.git

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 <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
---

diff --git a/arch/sparc/Kbuild b/arch/sparc/Kbuild
new file mode 100644
index 000000000000..27b540d2d55e
--- /dev/null
+++ b/arch/sparc/Kbuild
@@ -0,0 +1,7 @@
+#
+# 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 a4928150c631..b9a72e2b8acc 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/