Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 710fc04d authored by Dirk Brandewie's avatar Dirk Brandewie Committed by Grant Likely
Browse files

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: default avatarDirk Brandewie <dirk.brandewie@gmail.com>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 63849340
Loading
Loading
Loading
Loading
+3 −9
Original line number Original line Diff line number Diff line
@@ -10,9 +10,6 @@ targets := linux.bin linux.bin.gz simpleImage.%


OBJCOPYFLAGS := -O binary
OBJCOPYFLAGS := -O binary


# Where the DTS files live
dtstree         := $(srctree)/$(src)/dts

# Ensure system.dtb exists
# Ensure system.dtb exists
$(obj)/linked_dtb.o: $(obj)/system.dtb
$(obj)/linked_dtb.o: $(obj)/system.dtb


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


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


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


$(obj)/%.dtb: $(dtstree)/%.dts FORCE
$(obj)/%.dtb: $(src)/dts/%.dts FORCE
	$(call if_changed,dtc)
	$(call cmd,dtc)


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