Skip to content

Commit 710fc04

Browse files
dirk-brandewieglikely
authored andcommitted
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>
1 parent 6384934 commit 710fc04

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

‎arch/microblaze/boot/Makefile‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ targets := linux.bin linux.bin.gz simpleImage.%
1010

1111
OBJCOPYFLAGS := -O binary
1212

13-
# Where the DTS files live
14-
dtstree := $(srctree)/$(src)/dts
15-
1613
# Ensure system.dtb exists
1714
$(obj)/linked_dtb.o: $(obj)/system.dtb
1815

@@ -51,14 +48,11 @@ $(obj)/simpleImage.%: vmlinux FORCE
5148
$(call if_changed,strip)
5249
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
5350

54-
# Rule to build device tree blobs
55-
DTC = $(objtree)/scripts/dtc/dtc
5651

5752
# Rule to build device tree blobs
58-
quiet_cmd_dtc = DTC $@
59-
cmd_dtc = $(DTC) -O dtb -o $(obj)/$*.dtb -b 0 -p 1024 $(dtstree)/$*.dts
53+
DTC_FLAGS := -p 1024
6054

61-
$(obj)/%.dtb: $(dtstree)/%.dts FORCE
62-
$(call if_changed,dtc)
55+
$(obj)/%.dtb: $(src)/dts/%.dts FORCE
56+
$(call cmd,dtc)
6357

6458
clean-files += *.dtb simpleImage.*.unstrip linux.bin.ub

0 commit comments

Comments
 (0)