sparc: introduce arch/sparc/Kbuild
authorSam Ravnborg <sam@ravnborg.org>
Tue, 15 May 2012 19:27:15 +0000 (21:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 May 2012 20:18:08 +0000 (13:18 -0700)
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>
arch/sparc/Kbuild [new file with mode: 0644]
arch/sparc/Makefile

diff --git a/arch/sparc/Kbuild b/arch/sparc/Kbuild
new file mode 100644 (file)
index 0000000..27b540d
--- /dev/null
@@ -0,0 +1,7 @@
+#
+# core part of the sparc kernel
+#
+
+obj-y += kernel/
+obj-y += mm/
+obj-y += math-emu/
index a4928150c6314a84a364c73a71f16f5aa5c99f27..b9a72e2b8acc9941167734564d1109abdbd7f642 100644 (file)
@@ -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/