diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2013-05-12 23:54:04 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-05-13 21:17:10 +0200 |
commit | 6fe6d9fdc2ef89ee92cc40b2114b21cdff9e91ca (patch) | |
tree | f4888a9956d132bfe9e24935d4782ca65333c49b /arch/mips/Makefile | |
parent | 74c4acea0dbc8a270e584c01f13f61dcc87e4cbd (diff) | |
download | barebox-6fe6d9fdc2ef89ee92cc40b2114b21cdff9e91ca.tar.gz barebox-6fe6d9fdc2ef89ee92cc40b2114b21cdff9e91ca.tar.xz |
MIPS: add initial device tree support
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r-- | arch/mips/Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 3c565a48af..c038933cb7 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -113,6 +113,8 @@ common-y += $(BOARD) $(MACH) common-y += arch/mips/lib/ common-y += arch/mips/boot/ +common-$(CONFIG_BUILTIN_DTB) += arch/mips/dts/ + CPPFLAGS += $(cflags-y) CFLAGS += $(cflags-y) @@ -127,4 +129,14 @@ zbarebox.S zbarebox.bin zbarebox: barebox.bin archclean: $(MAKE) $(clean)=$(pbl) +dts := arch/mips/dts + +%.dtb: scripts + $(Q)$(MAKE) $(build)=$(dts) $(dts)/$@ + +dtbs: scripts + $(Q)$(MAKE) $(build)=$(dts) dtbs + +KBUILD_DTBS := dtbs + KBUILD_IMAGE ?= $(KBUILD_BINARY) |