forked from Minki/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 37c8a5fafa
("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>
This commit is contained in:
parent
c4c14c3bd1
commit
e8d0c9a726
|
@ -69,20 +69,11 @@ core-y += $(boot)/dts/
|
||||||
|
|
||||||
all: zImage
|
all: zImage
|
||||||
|
|
||||||
|
zImage Image uImage: vmlinux
|
||||||
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
|
|
||||||
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
|
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
|
||||||
|
|
||||||
archclean:
|
archclean:
|
||||||
$(Q)$(MAKE) $(clean)=$(boot)
|
$(Q)$(MAKE) $(clean)=$(boot)
|
||||||
$(Q)$(MAKE) $(clean)=$(boot)/dts
|
|
||||||
rm -rf arch/csky/include/generated
|
|
||||||
|
|
||||||
define archhelp
|
define archhelp
|
||||||
echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
|
echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
dtstree := $(srctree)/$(src)
|
dtstree := $(srctree)/$(src)
|
||||||
|
|
||||||
dtb-y := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
|
dtb-y := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
|
||||||
|
|
||||||
always += $(dtb-y)
|
|
||||||
clean-files += *.dtb *.dtb.S
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user