Skip to content

Commit 1bca544

Browse files
committed
powerpc/boot: add DTB to 'targets'
PowerPC always re-builds DTB even if nothing has been changed. As for other architectures, arch/*/boot/dts/Makefile builds DTB by using the dtb-y syntax. In contrast, arch/powerpc/boot/dts/(fsl/)Makefile does nothing unless CONFIG_OF_ALL_DTBS is defined. Instead, arch/powerpc/boot/Makefile builds DTB on demand. You need to add DTB to 'targets' explicitly so .*.cmd files are included. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Acked-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 55a87cd commit 1bca544

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎arch/powerpc/boot/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,8 @@ initrd-y := $(patsubst zImage%, zImage.initrd%, \
366366
$(patsubst treeImage%, treeImage.initrd%, $(image-y)))))
367367
initrd-y := $(filter-out $(image-y), $(initrd-y))
368368
targets += $(image-y) $(initrd-y)
369+
targets += $(foreach x, dtbImage uImage cuImage simpleImage treeImage, \
370+
$(patsubst $(x).%, dts/%.dtb, $(filter $(x).%, $(image-y))))
369371

370372
$(addprefix $(obj)/, $(initrd-y)): $(obj)/ramdisk.image.gz
371373

0 commit comments

Comments
 (0)