Browse Source

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>
Sam Ravnborg 13 years ago
parent
commit
e1d7de8377
2 changed files with 9 additions and 2 deletions
  1. 7 0
      arch/sparc/Kbuild
  2. 2 2
      arch/sparc/Makefile

+ 7 - 0
arch/sparc/Kbuild

@@ -0,0 +1,7 @@
+#
+# core part of the sparc kernel
+#
+
+obj-y += kernel/
+obj-y += mm/
+obj-y += math-emu/

+ 2 - 2
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/