summaryrefslogtreecommitdiffstats
path: root/arch/mips/Kbuild
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--arch/mips/Kbuild26
-rw-r--r--arch/mips/Kbuild.platforms39
2 files changed, 65 insertions, 0 deletions
diff --git a/arch/mips/Kbuild b/arch/mips/Kbuild
new file mode 100644
index 000000000..5cef58651
--- /dev/null
+++ b/arch/mips/Kbuild
@@ -0,0 +1,26 @@
+# Fail on warnings - also for files referenced in subdirs
+# -Werror can be disabled for specific files using:
+# CFLAGS_<file.o> := -Wno-error
+ifeq ($(W),)
+subdir-ccflags-y := -Werror
+endif
+
+# platform specific definitions
+include arch/mips/Kbuild.platforms
+obj-y := $(platform-y)
+
+# make clean traverses $(obj-) without having included .config, so
+# everything ends up here
+obj- := $(platform-)
+
+# mips object files
+# The object files are linked as core-y files would be linked
+
+obj-y += kernel/
+obj-y += mm/
+obj-y += net/
+obj-y += vdso/
+
+ifdef CONFIG_KVM
+obj-y += kvm/
+endif
diff --git a/arch/mips/Kbuild.platforms b/arch/mips/Kbuild.platforms
new file mode 100644
index 000000000..ac7ad54f9
--- /dev/null
+++ b/arch/mips/Kbuild.platforms
@@ -0,0 +1,39 @@
+# All platforms listed in alphabetic order
+
+platforms += alchemy
+platforms += ar7
+platforms += ath25
+platforms += ath79
+platforms += bcm47xx
+platforms += bcm63xx
+platforms += bmips
+platforms += cavium-octeon
+platforms += cobalt
+platforms += dec
+platforms += emma
+platforms += generic
+platforms += jazz
+platforms += jz4740
+platforms += lantiq
+platforms += lasat
+platforms += loongson32
+platforms += loongson64
+platforms += mti-malta
+platforms += netlogic
+platforms += paravirt
+platforms += pic32
+platforms += pistachio
+platforms += pmcs-msp71xx
+platforms += pnx833x
+platforms += ralink
+platforms += rb532
+platforms += sgi-ip22
+platforms += sgi-ip27
+platforms += sgi-ip32
+platforms += sibyte
+platforms += sni
+platforms += txx9
+platforms += vr41xx
+
+# include the platform specific files
+include $(patsubst %, $(srctree)/arch/mips/%/Platform, $(platforms))