diff options
-rw-r--r-- | arch/mips/Kconfig | 3 | ||||
-rw-r--r-- | arch/mips/Makefile | 6 | ||||
-rw-r--r-- | arch/mips/boot/dts/Makefile | 3 |
3 files changed, 12 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 574c43000699..8a2663d806c9 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -2482,6 +2482,9 @@ config USE_OF | |||
2482 | select OF_EARLY_FLATTREE | 2482 | select OF_EARLY_FLATTREE |
2483 | select IRQ_DOMAIN | 2483 | select IRQ_DOMAIN |
2484 | 2484 | ||
2485 | config BUILTIN_DTB | ||
2486 | bool | ||
2487 | |||
2485 | endmenu | 2488 | endmenu |
2486 | 2489 | ||
2487 | config LOCKDEP_SUPPORT | 2490 | config LOCKDEP_SUPPORT |
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index bbac51e11179..bd642623f360 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -333,6 +333,12 @@ endif | |||
333 | 333 | ||
334 | CLEAN_FILES += vmlinux.32 vmlinux.64 | 334 | CLEAN_FILES += vmlinux.32 vmlinux.64 |
335 | 335 | ||
336 | # device-trees | ||
337 | core-$(CONFIG_BUILTIN_DTB) += arch/mips/boot/dts/ | ||
338 | |||
339 | %.dtb %.dtb.S %.dtb.o: | scripts | ||
340 | $(Q)$(MAKE) $(build)=arch/mips/boot/dts arch/mips/boot/dts/$@ | ||
341 | |||
336 | archprepare: | 342 | archprepare: |
337 | ifdef CONFIG_MIPS32_N32 | 343 | ifdef CONFIG_MIPS32_N32 |
338 | @echo ' Checking missing-syscalls for N32' | 344 | @echo ' Checking missing-syscalls for N32' |
diff --git a/arch/mips/boot/dts/Makefile b/arch/mips/boot/dts/Makefile new file mode 100644 index 000000000000..6bb41df59264 --- /dev/null +++ b/arch/mips/boot/dts/Makefile | |||
@@ -0,0 +1,3 @@ | |||
1 | obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y)) | ||
2 | |||
3 | clean-files += *.dtb.S | ||