aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-10-04 15:16:15 -0400
committerRob Herring <robh@kernel.org>2018-10-04 15:16:15 -0400
commit4355151de47c2b4bc72c026ee743bd9ed7f71ba3 (patch)
tree159451d359e3154734e1fb3205556f1c421f878e /arch/powerpc/boot
parent5d5a0ab1a7918fce5ca5c0fb1871a3e2000f85de (diff)
parent92f687f40ee511e0ea6046bf63ceb48ff3ad1494 (diff)
Merge branch 'all-dtbs' into dt/next
Diffstat (limited to 'arch/powerpc/boot')
-rw-r--r--arch/powerpc/boot/Makefile55
-rw-r--r--arch/powerpc/boot/dts/Makefile6
-rw-r--r--arch/powerpc/boot/dts/fsl/Makefile4
3 files changed, 36 insertions, 29 deletions
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
index 0fb96c26136f..bca5c23767df 100644
--- a/arch/powerpc/boot/Makefile
+++ b/arch/powerpc/boot/Makefile
@@ -304,9 +304,9 @@ image-$(CONFIG_PPC_ADDER875) += cuImage.adder875-uboot \
304 dtbImage.adder875-redboot 304 dtbImage.adder875-redboot
305 305
306# Board ports in arch/powerpc/platform/52xx/Kconfig 306# Board ports in arch/powerpc/platform/52xx/Kconfig
307image-$(CONFIG_PPC_LITE5200) += cuImage.lite5200 lite5200.dtb 307image-$(CONFIG_PPC_LITE5200) += cuImage.lite5200
308image-$(CONFIG_PPC_LITE5200) += cuImage.lite5200b lite5200b.dtb 308image-$(CONFIG_PPC_LITE5200) += cuImage.lite5200b
309image-$(CONFIG_PPC_MEDIA5200) += cuImage.media5200 media5200.dtb 309image-$(CONFIG_PPC_MEDIA5200) += cuImage.media5200
310 310
311# Board ports in arch/powerpc/platform/82xx/Kconfig 311# Board ports in arch/powerpc/platform/82xx/Kconfig
312image-$(CONFIG_MPC8272_ADS) += cuImage.mpc8272ads 312image-$(CONFIG_MPC8272_ADS) += cuImage.mpc8272ads
@@ -381,11 +381,11 @@ $(addprefix $(obj)/, $(sort $(filter zImage.%, $(image-y)))): vmlinux $(wrapperb
381 $(call if_changed,wrap,$(subst $(obj)/zImage.,,$@)) 381 $(call if_changed,wrap,$(subst $(obj)/zImage.,,$@))
382 382
383# dtbImage% - a dtbImage is a zImage with an embedded device tree blob 383# dtbImage% - a dtbImage is a zImage with an embedded device tree blob
384$(obj)/dtbImage.initrd.%: vmlinux $(wrapperbits) $(obj)/%.dtb FORCE 384$(obj)/dtbImage.initrd.%: vmlinux $(wrapperbits) $(obj)/dts/%.dtb FORCE
385 $(call if_changed,wrap,$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz) 385 $(call if_changed,wrap,$*,,$(obj)/dts/$*.dtb,$(obj)/ramdisk.image.gz)
386 386
387$(obj)/dtbImage.%: vmlinux $(wrapperbits) $(obj)/%.dtb FORCE 387$(obj)/dtbImage.%: vmlinux $(wrapperbits) $(obj)/dts/%.dtb FORCE
388 $(call if_changed,wrap,$*,,$(obj)/$*.dtb) 388 $(call if_changed,wrap,$*,,$(obj)/dts/$*.dtb)
389 389
390# This cannot be in the root of $(src) as the zImage rule always adds a $(obj) 390# This cannot be in the root of $(src) as the zImage rule always adds a $(obj)
391# prefix 391# prefix
@@ -395,36 +395,33 @@ $(obj)/vmlinux.strip: vmlinux
395$(obj)/uImage: vmlinux $(wrapperbits) FORCE 395$(obj)/uImage: vmlinux $(wrapperbits) FORCE
396 $(call if_changed,wrap,uboot) 396 $(call if_changed,wrap,uboot)
397 397
398$(obj)/uImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits) FORCE 398$(obj)/uImage.initrd.%: vmlinux $(obj)/dts/%.dtb $(wrapperbits) FORCE
399 $(call if_changed,wrap,uboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz) 399 $(call if_changed,wrap,uboot-$*,,$(obj)/dts/$*.dtb,$(obj)/ramdisk.image.gz)
400 400
401$(obj)/uImage.%: vmlinux $(obj)/%.dtb $(wrapperbits) FORCE 401$(obj)/uImage.%: vmlinux $(obj)/dts/%.dtb $(wrapperbits) FORCE
402 $(call if_changed,wrap,uboot-$*,,$(obj)/$*.dtb) 402 $(call if_changed,wrap,uboot-$*,,$(obj)/dts/$*.dtb)
403 403
404$(obj)/cuImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits) FORCE 404$(obj)/cuImage.initrd.%: vmlinux $(obj)/dts/%.dtb $(wrapperbits) FORCE
405 $(call if_changed,wrap,cuboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz) 405 $(call if_changed,wrap,cuboot-$*,,$(obj)/dts/$*.dtb,$(obj)/ramdisk.image.gz)
406 406
407$(obj)/cuImage.%: vmlinux $(obj)/%.dtb $(wrapperbits) FORCE 407$(obj)/cuImage.%: vmlinux $(obj)/dts/%.dtb $(wrapperbits) FORCE
408 $(call if_changed,wrap,cuboot-$*,,$(obj)/$*.dtb) 408 $(call if_changed,wrap,cuboot-$*,,$(obj)/dts/$*.dtb)
409 409
410$(obj)/simpleImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits) FORCE 410$(obj)/simpleImage.initrd.%: vmlinux $(obj)/dts/%.dtb $(wrapperbits) FORCE
411 $(call if_changed,wrap,simpleboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz) 411 $(call if_changed,wrap,simpleboot-$*,,$(obj)/dts/$*.dtb,$(obj)/ramdisk.image.gz)
412 412
413$(obj)/simpleImage.%: vmlinux $(obj)/%.dtb $(wrapperbits) FORCE 413$(obj)/simpleImage.%: vmlinux $(obj)/dts/%.dtb $(wrapperbits) FORCE
414 $(call if_changed,wrap,simpleboot-$*,,$(obj)/$*.dtb) 414 $(call if_changed,wrap,simpleboot-$*,,$(obj)/dts/$*.dtb)
415 415
416$(obj)/treeImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits) FORCE 416$(obj)/treeImage.initrd.%: vmlinux $(obj)/dts/%.dtb $(wrapperbits) FORCE
417 $(call if_changed,wrap,treeboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz) 417 $(call if_changed,wrap,treeboot-$*,,$(obj)/dts/$*.dtb,$(obj)/ramdisk.image.gz)
418 418
419$(obj)/treeImage.%: vmlinux $(obj)/%.dtb $(wrapperbits) FORCE 419$(obj)/treeImage.%: vmlinux $(obj)/dts/%.dtb $(wrapperbits) FORCE
420 $(call if_changed,wrap,treeboot-$*,,$(obj)/$*.dtb) 420 $(call if_changed,wrap,treeboot-$*,,$(obj)/dts/$*.dtb)
421 421
422# Rule to build device tree blobs 422# Needed for the above targets to work with dts/fsl/ files
423$(obj)/%.dtb: $(src)/dts/%.dts FORCE 423$(obj)/dts/%.dtb: $(obj)/dts/fsl/%.dtb
424 $(call if_changed_dep,dtc) 424 @cp $< $@
425
426$(obj)/%.dtb: $(src)/dts/fsl/%.dts FORCE
427 $(call if_changed_dep,dtc)
428 425
429# If there isn't a platform selected then just strip the vmlinux. 426# If there isn't a platform selected then just strip the vmlinux.
430ifeq (,$(image-y)) 427ifeq (,$(image-y))
diff --git a/arch/powerpc/boot/dts/Makefile b/arch/powerpc/boot/dts/Makefile
new file mode 100644
index 000000000000..fb335d05aae8
--- /dev/null
+++ b/arch/powerpc/boot/dts/Makefile
@@ -0,0 +1,6 @@
1# SPDX-License-Identifier: GPL-2.0
2
3subdir-y += fsl
4
5dtstree := $(srctree)/$(src)
6dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
diff --git a/arch/powerpc/boot/dts/fsl/Makefile b/arch/powerpc/boot/dts/fsl/Makefile
new file mode 100644
index 000000000000..3bae982641e9
--- /dev/null
+++ b/arch/powerpc/boot/dts/fsl/Makefile
@@ -0,0 +1,4 @@
1# SPDX-License-Identifier: GPL-2.0
2
3dtstree := $(srctree)/$(src)
4dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))