Skip to content

Commit

Permalink
csky: use common dtb build rules
Browse files Browse the repository at this point in the history
Remove the Kbuild rules in arch/csky and use common dtb build rules.

This modification is based on:

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

Signed-off-by: Guo Ren <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
  • Loading branch information
guoren83 committed Nov 1, 2018
1 parent c4c14c3 commit e8d0c9a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
11 changes: 1 addition & 10 deletions arch/csky/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)'
Expand Down
3 changes: 0 additions & 3 deletions arch/csky/boot/dts/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
dtstree := $(srctree)/$(src)

dtb-y := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))

always += $(dtb-y)
clean-files += *.dtb *.dtb.S

0 comments on commit e8d0c9a

Please sign in to comment.