diff options
author | Dirk Brandewie <dirk.brandewie@gmail.com> | 2010-12-22 14:57:29 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-12-23 16:59:52 -0500 |
commit | 710fc04da1abe48a33d54afb1ba33dbeceafb6e1 (patch) | |
tree | 27e6829ebbd7ee28ffb5d6bdae57019283141cb0 /arch/microblaze/boot | |
parent | 63849340621f7f5f963e4a9b9ba76add3ad54612 (diff) |
microblaze/of: 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/microblaze/boot')
-rw-r--r-- | arch/microblaze/boot/Makefile | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile index be01d78750d9..4c4e58ef0cb6 100644 --- a/arch/microblaze/boot/Makefile +++ b/arch/microblaze/boot/Makefile | |||
@@ -10,9 +10,6 @@ targets := linux.bin linux.bin.gz simpleImage.% | |||
10 | 10 | ||
11 | OBJCOPYFLAGS := -O binary | 11 | OBJCOPYFLAGS := -O binary |
12 | 12 | ||
13 | # Where the DTS files live | ||
14 | dtstree := $(srctree)/$(src)/dts | ||
15 | |||
16 | # Ensure system.dtb exists | 13 | # Ensure system.dtb exists |
17 | $(obj)/linked_dtb.o: $(obj)/system.dtb | 14 | $(obj)/linked_dtb.o: $(obj)/system.dtb |
18 | 15 | ||
@@ -51,14 +48,11 @@ $(obj)/simpleImage.%: vmlinux FORCE | |||
51 | $(call if_changed,strip) | 48 | $(call if_changed,strip) |
52 | @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' | 49 | @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' |
53 | 50 | ||
54 | # Rule to build device tree blobs | ||
55 | DTC = $(objtree)/scripts/dtc/dtc | ||
56 | 51 | ||
57 | # Rule to build device tree blobs | 52 | # Rule to build device tree blobs |
58 | quiet_cmd_dtc = DTC $@ | 53 | DTC_FLAGS := -p 1024 |
59 | cmd_dtc = $(DTC) -O dtb -o $(obj)/$*.dtb -b 0 -p 1024 $(dtstree)/$*.dts | ||
60 | 54 | ||
61 | $(obj)/%.dtb: $(dtstree)/%.dts FORCE | 55 | $(obj)/%.dtb: $(src)/dts/%.dts FORCE |
62 | $(call if_changed,dtc) | 56 | $(call cmd,dtc) |
63 | 57 | ||
64 | clean-files += *.dtb simpleImage.*.unstrip linux.bin.ub | 58 | clean-files += *.dtb simpleImage.*.unstrip linux.bin.ub |