diff options
author | Dirk Brandewie <dirk.brandewie@gmail.com> | 2010-12-22 14:57:28 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-12-23 16:59:49 -0500 |
commit | 63849340621f7f5f963e4a9b9ba76add3ad54612 (patch) | |
tree | a3d28bc7bc0b1303e1263488f40628e9a540262e /arch/powerpc/boot | |
parent | aab94339cd85d726abeae78fc02351fc1910e6a4 (diff) |
of/powerpc: Use generic rule to build dtb's
Modify arch/powerpc/boot/Makefile to use dtc command in
scripts/Makefile.lib
Signed-off-by: Dirk Brandewie <dirk.brandewie@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/powerpc/boot')
-rw-r--r-- | arch/powerpc/boot/Makefile | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index fae8192c8fcc..96deec63bcf3 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile | |||
@@ -35,7 +35,7 @@ endif | |||
35 | 35 | ||
36 | BOOTCFLAGS += -I$(obj) -I$(srctree)/$(obj) | 36 | BOOTCFLAGS += -I$(obj) -I$(srctree)/$(obj) |
37 | 37 | ||
38 | DTS_FLAGS ?= -p 1024 | 38 | DTC_FLAGS ?= -p 1024 |
39 | 39 | ||
40 | $(obj)/4xx.o: BOOTCFLAGS += -mcpu=405 | 40 | $(obj)/4xx.o: BOOTCFLAGS += -mcpu=405 |
41 | $(obj)/ebony.o: BOOTCFLAGS += -mcpu=405 | 41 | $(obj)/ebony.o: BOOTCFLAGS += -mcpu=405 |
@@ -332,10 +332,8 @@ $(obj)/treeImage.%: vmlinux $(obj)/%.dtb $(wrapperbits) | |||
332 | $(call if_changed,wrap,treeboot-$*,,$(obj)/$*.dtb) | 332 | $(call if_changed,wrap,treeboot-$*,,$(obj)/$*.dtb) |
333 | 333 | ||
334 | # Rule to build device tree blobs | 334 | # Rule to build device tree blobs |
335 | DTC = $(objtree)/scripts/dtc/dtc | 335 | $(obj)/%.dtb: $(src)/dts/%.dts |
336 | 336 | $(call cmd,dtc) | |
337 | $(obj)/%.dtb: $(dtstree)/%.dts | ||
338 | $(DTC) -O dtb -o $(obj)/$*.dtb -b 0 $(DTS_FLAGS) $(dtstree)/$*.dts | ||
339 | 337 | ||
340 | # If there isn't a platform selected then just strip the vmlinux. | 338 | # If there isn't a platform selected then just strip the vmlinux. |
341 | ifeq (,$(image-y)) | 339 | ifeq (,$(image-y)) |