From cefb0db3bb283099d6b29859bfed648a2a1eec81 Mon Sep 17 00:00:00 2001 From: Stephen Warren Date: Tue, 27 Nov 2012 16:29:15 -0700 Subject: [PATCH] --- yaml --- r: 336578 b: refs/heads/master c: 300db34a7256c94dbb7676f1e87101a3bb13cdd9 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/microblaze/Makefile | 2 +- trunk/arch/microblaze/boot/Makefile | 19 +----------------- trunk/arch/microblaze/boot/dts/Makefile | 22 +++++++++++++++++++++ trunk/arch/microblaze/boot/dts/linked_dtb.S | 2 ++ trunk/arch/microblaze/boot/linked_dtb.S | 3 --- 6 files changed, 27 insertions(+), 23 deletions(-) create mode 100644 trunk/arch/microblaze/boot/dts/Makefile create mode 100644 trunk/arch/microblaze/boot/dts/linked_dtb.S delete mode 100644 trunk/arch/microblaze/boot/linked_dtb.S diff --git a/[refs] b/[refs] index fe10e8f33442..2a95175ee0b8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1020e29cdab6bed8521a5a1a1b6f6513c393bc85 +refs/heads/master: 300db34a7256c94dbb7676f1e87101a3bb13cdd9 diff --git a/trunk/arch/microblaze/Makefile b/trunk/arch/microblaze/Makefile index b23c40eb7a52..d26fb905ee0a 100644 --- a/trunk/arch/microblaze/Makefile +++ b/trunk/arch/microblaze/Makefile @@ -57,7 +57,7 @@ boot := arch/microblaze/boot DTB:=$(subst simpleImage.,,$(filter simpleImage.%, $(MAKECMDGOALS))) ifneq ($(DTB),) - core-y += $(boot)/ + core-y += $(boot)/dts/ endif # defines filename extension depending memory management type diff --git a/trunk/arch/microblaze/boot/Makefile b/trunk/arch/microblaze/boot/Makefile index fa83ea497db7..80fe54fb7ca3 100644 --- a/trunk/arch/microblaze/boot/Makefile +++ b/trunk/arch/microblaze/boot/Makefile @@ -2,21 +2,10 @@ # arch/microblaze/boot/Makefile # -obj-y += linked_dtb.o - targets := linux.bin linux.bin.gz simpleImage.% OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary -# Ensure system.dtb exists -$(obj)/linked_dtb.o: $(obj)/system.dtb - -# Generate system.dtb from $(DTB).dtb -ifneq ($(DTB),system) -$(obj)/system.dtb: $(obj)/$(DTB).dtb - $(call if_changed,cp) -endif - $(obj)/linux.bin: vmlinux FORCE $(call if_changed,objcopy) $(call if_changed,uimage) @@ -45,10 +34,4 @@ $(obj)/simpleImage.%: vmlinux FORCE @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' -# Rule to build device tree blobs -DTC_FLAGS := -p 1024 - -$(obj)/%.dtb: $(src)/dts/%.dts FORCE - $(call if_changed_dep,dtc) - -clean-files += *.dtb simpleImage.*.unstrip linux.bin.ub +clean-files += simpleImage.*.unstrip linux.bin.ub diff --git a/trunk/arch/microblaze/boot/dts/Makefile b/trunk/arch/microblaze/boot/dts/Makefile new file mode 100644 index 000000000000..c3b3a5d67b89 --- /dev/null +++ b/trunk/arch/microblaze/boot/dts/Makefile @@ -0,0 +1,22 @@ +# +# arch/microblaze/boot/Makefile +# + +obj-y += linked_dtb.o + +# Ensure system.dtb exists +$(obj)/linked_dtb.o: $(obj)/system.dtb + +# Generate system.dtb from $(DTB).dtb +ifneq ($(DTB),system) +$(obj)/system.dtb: $(obj)/$(DTB).dtb + $(call if_changed,cp) +endif + +quiet_cmd_cp = CP $< $@$2 + cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) + +# Rule to build device tree blobs +DTC_FLAGS := -p 1024 + +clean-files += *.dtb diff --git a/trunk/arch/microblaze/boot/dts/linked_dtb.S b/trunk/arch/microblaze/boot/dts/linked_dtb.S new file mode 100644 index 000000000000..23345af3721f --- /dev/null +++ b/trunk/arch/microblaze/boot/dts/linked_dtb.S @@ -0,0 +1,2 @@ +.section __fdt_blob,"a" +.incbin "arch/microblaze/boot/dts/system.dtb" diff --git a/trunk/arch/microblaze/boot/linked_dtb.S b/trunk/arch/microblaze/boot/linked_dtb.S deleted file mode 100644 index cb2b537aebee..000000000000 --- a/trunk/arch/microblaze/boot/linked_dtb.S +++ /dev/null @@ -1,3 +0,0 @@ -.section __fdt_blob,"a" -.incbin "arch/microblaze/boot/system.dtb" -