Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

csky: use common dtb build rules

Remove the Kbuild rules in arch/csky and use common dtb build rules.

This modification is based on:

commit 37c8a5fafa3b ("kbuild: consolidate Devicetree dtb build rules")

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>

Guo Ren e8d0c9a7 c4c14c3b

+1 -13
+1 -10
arch/csky/Makefile
··· 69 69 70 70 all: zImage 71 71 72 - 73 - dtbs: scripts 74 - $(Q)$(MAKE) $(build)=$(boot)/dts 75 - 76 - %.dtb %.dtb.S %.dtb.o: scripts 77 - $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@ 78 - 79 - zImage Image uImage: vmlinux dtbs 72 + zImage Image uImage: vmlinux 80 73 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ 81 74 82 75 archclean: 83 76 $(Q)$(MAKE) $(clean)=$(boot) 84 - $(Q)$(MAKE) $(clean)=$(boot)/dts 85 - rm -rf arch/csky/include/generated 86 77 87 78 define archhelp 88 79 echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
-3
arch/csky/boot/dts/Makefile
··· 1 1 dtstree := $(srctree)/$(src) 2 2 3 3 dtb-y := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts)) 4 - 5 - always += $(dtb-y) 6 - clean-files += *.dtb *.dtb.S