diff options
| author | Grant Likely <grant.likely@secretlab.ca> | 2012-12-04 11:15:52 -0500 |
|---|---|---|
| committer | Grant Likely <grant.likely@secretlab.ca> | 2012-12-04 11:15:52 -0500 |
| commit | f2dcd0f8287967bb8b59f3feb775638f767f8e82 (patch) | |
| tree | 4fe387cc30d991ba82b785b25aba3104457ef418 | |
| parent | 465aac6d496aa3e99caaa6868865fb3830f73d80 (diff) | |
| parent | 300db34a7256c94dbb7676f1e87101a3bb13cdd9 (diff) | |
Merge remote-tracking branch 'robherring/for-next' into devicetree/next
| -rw-r--r-- | Documentation/kbuild/makefiles.txt | 15 | ||||
| -rw-r--r-- | arch/arm/Makefile | 4 | ||||
| -rw-r--r-- | arch/arm/boot/Makefile | 12 | ||||
| -rw-r--r-- | arch/arm/boot/dts/Makefile | 8 | ||||
| -rw-r--r-- | arch/arm64/Makefile | 17 | ||||
| -rw-r--r-- | arch/arm64/boot/Makefile | 5 | ||||
| -rw-r--r-- | arch/arm64/boot/dts/.gitignore | 1 | ||||
| -rw-r--r-- | arch/arm64/boot/dts/Makefile | 5 | ||||
| -rw-r--r-- | arch/c6x/Makefile | 2 | ||||
| -rw-r--r-- | arch/c6x/boot/Makefile | 20 | ||||
| -rw-r--r-- | arch/c6x/boot/dts/Makefile | 20 | ||||
| -rw-r--r-- | arch/c6x/boot/dts/linked_dtb.S | 2 | ||||
| -rw-r--r-- | arch/c6x/boot/linked_dtb.S | 2 | ||||
| -rw-r--r-- | arch/microblaze/Makefile | 2 | ||||
| -rw-r--r-- | arch/microblaze/boot/Makefile | 19 | ||||
| -rw-r--r-- | arch/microblaze/boot/dts/Makefile | 22 | ||||
| -rw-r--r-- | arch/microblaze/boot/dts/linked_dtb.S | 2 | ||||
| -rw-r--r-- | arch/microblaze/boot/linked_dtb.S | 3 | ||||
| -rw-r--r-- | arch/mips/cavium-octeon/Makefile | 3 | ||||
| -rw-r--r-- | arch/mips/lantiq/dts/Makefile | 3 | ||||
| -rw-r--r-- | arch/mips/netlogic/dts/Makefile | 3 | ||||
| -rw-r--r-- | arch/openrisc/Makefile | 2 | ||||
| -rw-r--r-- | arch/openrisc/boot/dts/Makefile (renamed from arch/openrisc/boot/Makefile) | 5 | ||||
| -rw-r--r-- | scripts/Makefile.lib | 3 |
24 files changed, 88 insertions, 92 deletions
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt index ec9ae6708691..14c3f4f1b617 100644 --- a/Documentation/kbuild/makefiles.txt +++ b/Documentation/kbuild/makefiles.txt | |||
| @@ -1175,15 +1175,16 @@ When kbuild executes, the following steps are followed (roughly): | |||
| 1175 | in an init section in the image. Platform code *must* copy the | 1175 | in an init section in the image. Platform code *must* copy the |
| 1176 | blob to non-init memory prior to calling unflatten_device_tree(). | 1176 | blob to non-init memory prior to calling unflatten_device_tree(). |
| 1177 | 1177 | ||
| 1178 | Example: | 1178 | To use this command, simply add *.dtb into obj-y or targets, or make |
| 1179 | #arch/x86/platform/ce4100/Makefile | 1179 | some other target depend on %.dtb |
| 1180 | clean-files := *dtb.S | ||
| 1181 | 1180 | ||
| 1182 | DTC_FLAGS := -p 1024 | 1181 | A central rule exists to create $(obj)/%.dtb from $(src)/%.dts; |
| 1183 | obj-y += foo.dtb.o | 1182 | architecture Makefiles do no need to explicitly write out that rule. |
| 1184 | 1183 | ||
| 1185 | $(obj)/%.dtb: $(src)/%.dts | 1184 | Example: |
| 1186 | $(call cmd,dtc) | 1185 | targets += $(dtb-y) |
| 1186 | clean-files += *.dtb | ||
| 1187 | DTC_FLAGS ?= -p 1024 | ||
| 1187 | 1188 | ||
| 1188 | --- 6.8 Custom kbuild commands | 1189 | --- 6.8 Custom kbuild commands |
| 1189 | 1190 | ||
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 5f914fca911b..c35baf102f6f 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
| @@ -292,10 +292,10 @@ zinstall uinstall install: vmlinux | |||
| 292 | $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ | 292 | $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ |
| 293 | 293 | ||
| 294 | %.dtb: scripts | 294 | %.dtb: scripts |
| 295 | $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ | 295 | $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@ |
| 296 | 296 | ||
| 297 | dtbs: scripts | 297 | dtbs: scripts |
| 298 | $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ | 298 | $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) dtbs |
| 299 | 299 | ||
| 300 | # We use MRPROPER_FILES and CLEAN_FILES now | 300 | # We use MRPROPER_FILES and CLEAN_FILES now |
| 301 | archclean: | 301 | archclean: |
diff --git a/arch/arm/boot/Makefile b/arch/arm/boot/Makefile index f2aa09eb658e..801b92ca0631 100644 --- a/arch/arm/boot/Makefile +++ b/arch/arm/boot/Makefile | |||
| @@ -15,8 +15,6 @@ ifneq ($(MACHINE),) | |||
| 15 | include $(srctree)/$(MACHINE)/Makefile.boot | 15 | include $(srctree)/$(MACHINE)/Makefile.boot |
| 16 | endif | 16 | endif |
| 17 | 17 | ||
| 18 | include $(srctree)/arch/arm/boot/dts/Makefile | ||
| 19 | |||
| 20 | # Note: the following conditions must always be true: | 18 | # Note: the following conditions must always be true: |
| 21 | # ZRELADDR == virt_to_phys(PAGE_OFFSET + TEXT_OFFSET) | 19 | # ZRELADDR == virt_to_phys(PAGE_OFFSET + TEXT_OFFSET) |
| 22 | # PARAMS_PHYS must be within 4MB of ZRELADDR | 20 | # PARAMS_PHYS must be within 4MB of ZRELADDR |
| @@ -59,16 +57,6 @@ $(obj)/zImage: $(obj)/compressed/vmlinux FORCE | |||
| 59 | 57 | ||
| 60 | endif | 58 | endif |
| 61 | 59 | ||
| 62 | targets += $(dtb-y) | ||
| 63 | |||
| 64 | # Rule to build device tree blobs | ||
| 65 | $(obj)/%.dtb: $(src)/dts/%.dts FORCE | ||
| 66 | $(call if_changed_dep,dtc) | ||
| 67 | |||
| 68 | $(obj)/dtbs: $(addprefix $(obj)/, $(dtb-y)) | ||
| 69 | |||
| 70 | clean-files := *.dtb | ||
| 71 | |||
| 72 | ifneq ($(LOADADDR),) | 60 | ifneq ($(LOADADDR),) |
| 73 | UIMAGE_LOADADDR=$(LOADADDR) | 61 | UIMAGE_LOADADDR=$(LOADADDR) |
| 74 | else | 62 | else |
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index f37cf9fa5fa0..22404959b397 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile | |||
| @@ -104,4 +104,12 @@ dtb-$(CONFIG_ARCH_VT8500) += vt8500-bv07.dtb \ | |||
| 104 | wm8505-ref.dtb \ | 104 | wm8505-ref.dtb \ |
| 105 | wm8650-mid.dtb | 105 | wm8650-mid.dtb |
| 106 | 106 | ||
| 107 | targets += dtbs | ||
| 107 | endif | 108 | endif |
| 109 | |||
| 110 | # *.dtb used to be generated in the directory above. Clean out the | ||
| 111 | # old build results so people don't accidentally use them. | ||
| 112 | dtbs: $(addprefix $(obj)/, $(dtb-y)) | ||
| 113 | $(Q)rm -f $(obj)/../*.dtb | ||
| 114 | |||
| 115 | clean-files := *.dtb | ||
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 364191f3be43..11c35995fd51 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile | |||
| @@ -41,20 +41,24 @@ libs-y := arch/arm64/lib/ $(libs-y) | |||
| 41 | libs-y += $(LIBGCC) | 41 | libs-y += $(LIBGCC) |
| 42 | 42 | ||
| 43 | # Default target when executing plain make | 43 | # Default target when executing plain make |
| 44 | KBUILD_IMAGE := Image.gz | 44 | KBUILD_IMAGE := Image.gz |
| 45 | KBUILD_DTBS := dtbs | ||
| 45 | 46 | ||
| 46 | all: $(KBUILD_IMAGE) | 47 | all: $(KBUILD_IMAGE) $(KBUILD_DTBS) |
| 47 | 48 | ||
| 48 | boot := arch/arm64/boot | 49 | boot := arch/arm64/boot |
| 49 | 50 | ||
| 50 | Image Image.gz: vmlinux | 51 | Image Image.gz: vmlinux |
| 51 | $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ | 52 | $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ |
| 52 | 53 | ||
| 53 | zinstall install: vmlinux | 54 | zinstall install: vmlinux |
| 54 | $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ | 55 | $(Q)$(MAKE) $(build)=$(boot) $@ |
| 55 | 56 | ||
| 56 | %.dtb: | 57 | %.dtb: scripts |
| 57 | $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ | 58 | $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@ |
| 59 | |||
| 60 | dtbs: scripts | ||
| 61 | $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@ | ||
| 58 | 62 | ||
| 59 | # We use MRPROPER_FILES and CLEAN_FILES now | 63 | # We use MRPROPER_FILES and CLEAN_FILES now |
| 60 | archclean: | 64 | archclean: |
| @@ -63,6 +67,7 @@ archclean: | |||
| 63 | define archhelp | 67 | define archhelp |
| 64 | echo '* Image.gz - Compressed kernel image (arch/$(ARCH)/boot/Image.gz)' | 68 | echo '* Image.gz - Compressed kernel image (arch/$(ARCH)/boot/Image.gz)' |
| 65 | echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)' | 69 | echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)' |
| 70 | echo '* dtbs - Build device tree blobs for enabled boards' | ||
| 66 | echo ' install - Install uncompressed kernel' | 71 | echo ' install - Install uncompressed kernel' |
| 67 | echo ' zinstall - Install compressed kernel' | 72 | echo ' zinstall - Install compressed kernel' |
| 68 | echo ' Install using (your) ~/bin/installkernel or' | 73 | echo ' Install using (your) ~/bin/installkernel or' |
diff --git a/arch/arm64/boot/Makefile b/arch/arm64/boot/Makefile index eca209b2b0bf..5a0e3ab854a5 100644 --- a/arch/arm64/boot/Makefile +++ b/arch/arm64/boot/Makefile | |||
| @@ -22,9 +22,6 @@ $(obj)/Image: vmlinux FORCE | |||
| 22 | $(obj)/Image.gz: $(obj)/Image FORCE | 22 | $(obj)/Image.gz: $(obj)/Image FORCE |
| 23 | $(call if_changed,gzip) | 23 | $(call if_changed,gzip) |
| 24 | 24 | ||
| 25 | $(obj)/%.dtb: $(src)/dts/%.dts | ||
| 26 | $(call cmd,dtc) | ||
| 27 | |||
| 28 | install: $(obj)/Image | 25 | install: $(obj)/Image |
| 29 | $(CONFIG_SHELL) $(srctree)/$(src)/install.sh $(KERNELRELEASE) \ | 26 | $(CONFIG_SHELL) $(srctree)/$(src)/install.sh $(KERNELRELEASE) \ |
| 30 | $(obj)/Image System.map "$(INSTALL_PATH)" | 27 | $(obj)/Image System.map "$(INSTALL_PATH)" |
| @@ -32,5 +29,3 @@ install: $(obj)/Image | |||
| 32 | zinstall: $(obj)/Image.gz | 29 | zinstall: $(obj)/Image.gz |
| 33 | $(CONFIG_SHELL) $(srctree)/$(src)/install.sh $(KERNELRELEASE) \ | 30 | $(CONFIG_SHELL) $(srctree)/$(src)/install.sh $(KERNELRELEASE) \ |
| 34 | $(obj)/Image.gz System.map "$(INSTALL_PATH)" | 31 | $(obj)/Image.gz System.map "$(INSTALL_PATH)" |
| 35 | |||
| 36 | clean-files += *.dtb | ||
diff --git a/arch/arm64/boot/dts/.gitignore b/arch/arm64/boot/dts/.gitignore new file mode 100644 index 000000000000..b60ed208c779 --- /dev/null +++ b/arch/arm64/boot/dts/.gitignore | |||
| @@ -0,0 +1 @@ | |||
| *.dtb | |||
diff --git a/arch/arm64/boot/dts/Makefile b/arch/arm64/boot/dts/Makefile new file mode 100644 index 000000000000..801e2d7fcbc6 --- /dev/null +++ b/arch/arm64/boot/dts/Makefile | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | targets += dtbs | ||
| 2 | |||
| 3 | dtbs: $(addprefix $(obj)/, $(dtb-y)) | ||
| 4 | |||
| 5 | clean-files := *.dtb | ||
diff --git a/arch/c6x/Makefile b/arch/c6x/Makefile index a9eb9597e03c..e72eb3417239 100644 --- a/arch/c6x/Makefile +++ b/arch/c6x/Makefile | |||
| @@ -41,7 +41,7 @@ DTB:=$(subst dtbImage.,,$(filter dtbImage.%, $(MAKECMDGOALS))) | |||
| 41 | export DTB | 41 | export DTB |
| 42 | 42 | ||
| 43 | ifneq ($(DTB),) | 43 | ifneq ($(DTB),) |
| 44 | core-y += $(boot)/ | 44 | core-y += $(boot)/dts/ |
| 45 | endif | 45 | endif |
| 46 | 46 | ||
| 47 | # With make 3.82 we cannot mix normal and wildcard targets | 47 | # With make 3.82 we cannot mix normal and wildcard targets |
diff --git a/arch/c6x/boot/Makefile b/arch/c6x/boot/Makefile index 6891257d514c..8734abee548e 100644 --- a/arch/c6x/boot/Makefile +++ b/arch/c6x/boot/Makefile | |||
| @@ -6,25 +6,5 @@ OBJCOPYFLAGS_vmlinux.bin := -O binary | |||
| 6 | $(obj)/vmlinux.bin: vmlinux FORCE | 6 | $(obj)/vmlinux.bin: vmlinux FORCE |
| 7 | $(call if_changed,objcopy) | 7 | $(call if_changed,objcopy) |
| 8 | 8 | ||
| 9 | DTC_FLAGS ?= -p 1024 | ||
| 10 | |||
| 11 | ifneq ($(DTB),) | ||
| 12 | obj-y += linked_dtb.o | ||
| 13 | endif | ||
| 14 | |||
| 15 | $(obj)/%.dtb: $(src)/dts/%.dts FORCE | ||
| 16 | $(call if_changed_dep,dtc) | ||
| 17 | |||
| 18 | quiet_cmd_cp = CP $< $@$2 | ||
| 19 | cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) | ||
| 20 | |||
| 21 | # Generate builtin.dtb from $(DTB).dtb | ||
| 22 | $(obj)/builtin.dtb: $(obj)/$(DTB).dtb | ||
| 23 | $(call if_changed,cp) | ||
| 24 | |||
| 25 | $(obj)/linked_dtb.o: $(obj)/builtin.dtb | ||
| 26 | |||
| 27 | $(obj)/dtbImage.%: vmlinux | 9 | $(obj)/dtbImage.%: vmlinux |
| 28 | $(call if_changed,objcopy) | 10 | $(call if_changed,objcopy) |
| 29 | |||
| 30 | clean-files := $(obj)/*.dtb | ||
diff --git a/arch/c6x/boot/dts/Makefile b/arch/c6x/boot/dts/Makefile new file mode 100644 index 000000000000..c7528b02d061 --- /dev/null +++ b/arch/c6x/boot/dts/Makefile | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | # | ||
| 2 | # Makefile for device trees | ||
| 3 | # | ||
| 4 | |||
| 5 | DTC_FLAGS ?= -p 1024 | ||
| 6 | |||
| 7 | ifneq ($(DTB),) | ||
| 8 | obj-y += linked_dtb.o | ||
| 9 | endif | ||
| 10 | |||
| 11 | quiet_cmd_cp = CP $< $@$2 | ||
| 12 | cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) | ||
| 13 | |||
| 14 | # Generate builtin.dtb from $(DTB).dtb | ||
| 15 | $(obj)/builtin.dtb: $(obj)/$(DTB).dtb | ||
| 16 | $(call if_changed,cp) | ||
| 17 | |||
| 18 | $(obj)/linked_dtb.o: $(obj)/builtin.dtb | ||
| 19 | |||
| 20 | clean-files := *.dtb | ||
diff --git a/arch/c6x/boot/dts/linked_dtb.S b/arch/c6x/boot/dts/linked_dtb.S new file mode 100644 index 000000000000..cf347f1d16ce --- /dev/null +++ b/arch/c6x/boot/dts/linked_dtb.S | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | .section __fdt_blob,"a" | ||
| 2 | .incbin "arch/c6x/boot/dts/builtin.dtb" | ||
diff --git a/arch/c6x/boot/linked_dtb.S b/arch/c6x/boot/linked_dtb.S deleted file mode 100644 index 57a4454eaec3..000000000000 --- a/arch/c6x/boot/linked_dtb.S +++ /dev/null | |||
| @@ -1,2 +0,0 @@ | |||
| 1 | .section __fdt_blob,"a" | ||
| 2 | .incbin "arch/c6x/boot/builtin.dtb" | ||
diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile index b23c40eb7a52..d26fb905ee0a 100644 --- a/arch/microblaze/Makefile +++ b/arch/microblaze/Makefile | |||
| @@ -57,7 +57,7 @@ boot := arch/microblaze/boot | |||
| 57 | DTB:=$(subst simpleImage.,,$(filter simpleImage.%, $(MAKECMDGOALS))) | 57 | DTB:=$(subst simpleImage.,,$(filter simpleImage.%, $(MAKECMDGOALS))) |
| 58 | 58 | ||
| 59 | ifneq ($(DTB),) | 59 | ifneq ($(DTB),) |
| 60 | core-y += $(boot)/ | 60 | core-y += $(boot)/dts/ |
| 61 | endif | 61 | endif |
| 62 | 62 | ||
| 63 | # defines filename extension depending memory management type | 63 | # defines filename extension depending memory management type |
diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile index fa83ea497db7..80fe54fb7ca3 100644 --- a/arch/microblaze/boot/Makefile +++ b/arch/microblaze/boot/Makefile | |||
| @@ -2,21 +2,10 @@ | |||
| 2 | # arch/microblaze/boot/Makefile | 2 | # arch/microblaze/boot/Makefile |
| 3 | # | 3 | # |
| 4 | 4 | ||
| 5 | obj-y += linked_dtb.o | ||
| 6 | |||
| 7 | targets := linux.bin linux.bin.gz simpleImage.% | 5 | targets := linux.bin linux.bin.gz simpleImage.% |
| 8 | 6 | ||
| 9 | OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary | 7 | OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary |
| 10 | 8 | ||
| 11 | # Ensure system.dtb exists | ||
| 12 | $(obj)/linked_dtb.o: $(obj)/system.dtb | ||
| 13 | |||
| 14 | # Generate system.dtb from $(DTB).dtb | ||
| 15 | ifneq ($(DTB),system) | ||
| 16 | $(obj)/system.dtb: $(obj)/$(DTB).dtb | ||
| 17 | $(call if_changed,cp) | ||
| 18 | endif | ||
| 19 | |||
| 20 | $(obj)/linux.bin: vmlinux FORCE | 9 | $(obj)/linux.bin: vmlinux FORCE |
| 21 | $(call if_changed,objcopy) | 10 | $(call if_changed,objcopy) |
| 22 | $(call if_changed,uimage) | 11 | $(call if_changed,uimage) |
| @@ -45,10 +34,4 @@ $(obj)/simpleImage.%: vmlinux FORCE | |||
| 45 | @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' | 34 | @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' |
| 46 | 35 | ||
| 47 | 36 | ||
| 48 | # Rule to build device tree blobs | 37 | clean-files += simpleImage.*.unstrip linux.bin.ub |
| 49 | DTC_FLAGS := -p 1024 | ||
| 50 | |||
| 51 | $(obj)/%.dtb: $(src)/dts/%.dts FORCE | ||
| 52 | $(call if_changed_dep,dtc) | ||
| 53 | |||
| 54 | clean-files += *.dtb simpleImage.*.unstrip linux.bin.ub | ||
diff --git a/arch/microblaze/boot/dts/Makefile b/arch/microblaze/boot/dts/Makefile new file mode 100644 index 000000000000..c3b3a5d67b89 --- /dev/null +++ b/arch/microblaze/boot/dts/Makefile | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # | ||
| 2 | # arch/microblaze/boot/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | obj-y += linked_dtb.o | ||
| 6 | |||
| 7 | # Ensure system.dtb exists | ||
| 8 | $(obj)/linked_dtb.o: $(obj)/system.dtb | ||
| 9 | |||
| 10 | # Generate system.dtb from $(DTB).dtb | ||
| 11 | ifneq ($(DTB),system) | ||
| 12 | $(obj)/system.dtb: $(obj)/$(DTB).dtb | ||
| 13 | $(call if_changed,cp) | ||
| 14 | endif | ||
| 15 | |||
| 16 | quiet_cmd_cp = CP $< $@$2 | ||
| 17 | cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) | ||
| 18 | |||
| 19 | # Rule to build device tree blobs | ||
| 20 | DTC_FLAGS := -p 1024 | ||
| 21 | |||
| 22 | clean-files += *.dtb | ||
diff --git a/arch/microblaze/boot/dts/linked_dtb.S b/arch/microblaze/boot/dts/linked_dtb.S new file mode 100644 index 000000000000..23345af3721f --- /dev/null +++ b/arch/microblaze/boot/dts/linked_dtb.S | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | .section __fdt_blob,"a" | ||
| 2 | .incbin "arch/microblaze/boot/dts/system.dtb" | ||
diff --git a/arch/microblaze/boot/linked_dtb.S b/arch/microblaze/boot/linked_dtb.S deleted file mode 100644 index cb2b537aebee..000000000000 --- a/arch/microblaze/boot/linked_dtb.S +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | .section __fdt_blob,"a" | ||
| 2 | .incbin "arch/microblaze/boot/system.dtb" | ||
| 3 | |||
diff --git a/arch/mips/cavium-octeon/Makefile b/arch/mips/cavium-octeon/Makefile index bc96e2908f14..6e927cf20df2 100644 --- a/arch/mips/cavium-octeon/Makefile +++ b/arch/mips/cavium-octeon/Makefile | |||
| @@ -24,9 +24,6 @@ DTB_FILES = $(patsubst %.dts, %.dtb, $(DTS_FILES)) | |||
| 24 | 24 | ||
| 25 | obj-y += $(patsubst %.dts, %.dtb.o, $(DTS_FILES)) | 25 | obj-y += $(patsubst %.dts, %.dtb.o, $(DTS_FILES)) |
| 26 | 26 | ||
| 27 | $(obj)/%.dtb: $(src)/%.dts FORCE | ||
| 28 | $(call if_changed_dep,dtc) | ||
| 29 | |||
| 30 | # Let's keep the .dtb files around in case we want to look at them. | 27 | # Let's keep the .dtb files around in case we want to look at them. |
| 31 | .SECONDARY: $(addprefix $(obj)/, $(DTB_FILES)) | 28 | .SECONDARY: $(addprefix $(obj)/, $(DTB_FILES)) |
| 32 | 29 | ||
diff --git a/arch/mips/lantiq/dts/Makefile b/arch/mips/lantiq/dts/Makefile index 674fca45f72d..6fa72dd641b2 100644 --- a/arch/mips/lantiq/dts/Makefile +++ b/arch/mips/lantiq/dts/Makefile | |||
| @@ -1,4 +1 @@ | |||
| 1 | obj-$(CONFIG_DT_EASY50712) := easy50712.dtb.o | obj-$(CONFIG_DT_EASY50712) := easy50712.dtb.o | |
| 2 | |||
| 3 | $(obj)/%.dtb: $(obj)/%.dts | ||
| 4 | $(call if_changed,dtc) | ||
diff --git a/arch/mips/netlogic/dts/Makefile b/arch/mips/netlogic/dts/Makefile index 67ae3fe296f0..d117d46413aa 100644 --- a/arch/mips/netlogic/dts/Makefile +++ b/arch/mips/netlogic/dts/Makefile | |||
| @@ -1,4 +1 @@ | |||
| 1 | obj-$(CONFIG_DT_XLP_EVP) := xlp_evp.dtb.o | obj-$(CONFIG_DT_XLP_EVP) := xlp_evp.dtb.o | |
| 2 | |||
| 3 | $(obj)/%.dtb: $(obj)/%.dts | ||
| 4 | $(call if_changed,dtc) | ||
diff --git a/arch/openrisc/Makefile b/arch/openrisc/Makefile index 966886c8daf5..4739b8302a58 100644 --- a/arch/openrisc/Makefile +++ b/arch/openrisc/Makefile | |||
| @@ -50,6 +50,6 @@ BUILTIN_DTB := y | |||
| 50 | else | 50 | else |
| 51 | BUILTIN_DTB := n | 51 | BUILTIN_DTB := n |
| 52 | endif | 52 | endif |
| 53 | core-$(BUILTIN_DTB) += arch/openrisc/boot/ | 53 | core-$(BUILTIN_DTB) += arch/openrisc/boot/dts/ |
| 54 | 54 | ||
| 55 | all: vmlinux | 55 | all: vmlinux |
diff --git a/arch/openrisc/boot/Makefile b/arch/openrisc/boot/dts/Makefile index 09958358601a..b092d30d6c23 100644 --- a/arch/openrisc/boot/Makefile +++ b/arch/openrisc/boot/dts/Makefile | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | |||
| 2 | |||
| 3 | ifneq '$(CONFIG_OPENRISC_BUILTIN_DTB)' '""' | 1 | ifneq '$(CONFIG_OPENRISC_BUILTIN_DTB)' '""' |
| 4 | BUILTIN_DTB := $(patsubst "%",%,$(CONFIG_OPENRISC_BUILTIN_DTB)).dtb.o | 2 | BUILTIN_DTB := $(patsubst "%",%,$(CONFIG_OPENRISC_BUILTIN_DTB)).dtb.o |
| 5 | else | 3 | else |
| @@ -10,6 +8,3 @@ obj-y += $(BUILTIN_DTB) | |||
| 10 | clean-files := *.dtb.S | 8 | clean-files := *.dtb.S |
| 11 | 9 | ||
| 12 | #DTC_FLAGS ?= -p 1024 | 10 | #DTC_FLAGS ?= -p 1024 |
| 13 | |||
| 14 | $(obj)/%.dtb: $(src)/dts/%.dts FORCE | ||
| 15 | $(call if_changed_dep,dtc) | ||
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 0be6f110cce7..bdf42fdf64c9 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib | |||
| @@ -266,6 +266,9 @@ $(obj)/%.dtb.S: $(obj)/%.dtb | |||
| 266 | quiet_cmd_dtc = DTC $@ | 266 | quiet_cmd_dtc = DTC $@ |
| 267 | cmd_dtc = $(objtree)/scripts/dtc/dtc -O dtb -o $@ -b 0 $(DTC_FLAGS) -d $(depfile) $< | 267 | cmd_dtc = $(objtree)/scripts/dtc/dtc -O dtb -o $@ -b 0 $(DTC_FLAGS) -d $(depfile) $< |
| 268 | 268 | ||
| 269 | $(obj)/%.dtb: $(src)/%.dts FORCE | ||
| 270 | $(call if_changed_dep,dtc) | ||
| 271 | |||
| 269 | # Bzip2 | 272 | # Bzip2 |
| 270 | # --------------------------------------------------------------------------- | 273 | # --------------------------------------------------------------------------- |
| 271 | 274 | ||
