Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dirk Brandewie and committed by
Grant Likely
710fc04d 63849340

+3 -9
+3 -9
arch/microblaze/boot/Makefile
··· 10 10 11 11 OBJCOPYFLAGS := -O binary 12 12 13 - # Where the DTS files live 14 - dtstree := $(srctree)/$(src)/dts 15 - 16 13 # Ensure system.dtb exists 17 14 $(obj)/linked_dtb.o: $(obj)/system.dtb 18 15 ··· 48 51 $(call if_changed,strip) 49 52 @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' 50 53 51 - # Rule to build device tree blobs 52 - DTC = $(objtree)/scripts/dtc/dtc 53 54 54 55 # Rule to build device tree blobs 55 - quiet_cmd_dtc = DTC $@ 56 - cmd_dtc = $(DTC) -O dtb -o $(obj)/$*.dtb -b 0 -p 1024 $(dtstree)/$*.dts 56 + DTC_FLAGS := -p 1024 57 57 58 - $(obj)/%.dtb: $(dtstree)/%.dts FORCE 59 - $(call if_changed,dtc) 58 + $(obj)/%.dtb: $(src)/dts/%.dts FORCE 59 + $(call cmd,dtc) 60 60 61 61 clean-files += *.dtb simpleImage.*.unstrip linux.bin.ub