]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
csky: use common dtb build rules
authorGuo Ren <ren_guo@c-sky.com>
Tue, 30 Oct 2018 10:46:47 +0000 (18:46 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Thu, 1 Nov 2018 02:52:27 +0000 (10:52 +0800)
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>
arch/csky/Makefile
arch/csky/boot/dts/Makefile

index 91f72224f4b998e57e270ff71301dffe56f44431..c639fc167895d7a2f00909bf079e5ea2e6b0558c 100644 (file)
@@ -69,20 +69,11 @@ core-y += $(boot)/dts/
 
 all: zImage
 
-
-dtbs: scripts
-       $(Q)$(MAKE) $(build)=$(boot)/dts
-
-%.dtb %.dtb.S %.dtb.o: scripts
-       $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@
-
-zImage Image uImage: vmlinux dtbs
+zImage Image uImage: vmlinux
        $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
 
 archclean:
        $(Q)$(MAKE) $(clean)=$(boot)
-       $(Q)$(MAKE) $(clean)=$(boot)/dts
-       rm -rf arch/csky/include/generated
 
 define archhelp
   echo  '* zImage       - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
index 19a7f028ee20a1812093c5541a065d7345b44bb6..c57ad3c880bfb933c227fa32141b57b938be3706 100644 (file)
@@ -1,6 +1,3 @@
 dtstree        := $(srctree)/$(src)
 
 dtb-y := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
-
-always += $(dtb-y)
-clean-files += *.dtb *.dtb.S