Skip to content

Commit

Permalink
metag: use common make variables for dtb builds
Browse files Browse the repository at this point in the history
Use dtb-y and always make variables to build dtbs instead of explicit
dtbs rule. This is in preparation to support building all dtbs.

Signed-off-by: Rob Herring <[email protected]>
Cc: James Hogan <[email protected]>
Cc: [email protected]
  • Loading branch information
robherring committed Oct 27, 2015
1 parent 0395c1a commit 1aa4c51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion arch/metag/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ $(boot_targets): vmlinux
$(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@

dtbs: scripts
$(Q)$(MAKE) $(build)=$(boot)/dts dtbs
$(Q)$(MAKE) $(build)=$(boot)/dts

archclean:
$(Q)$(MAKE) $(clean)=$(boot)
Expand Down
6 changes: 1 addition & 5 deletions arch/metag/boot/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ endif
dtb-$(CONFIG_METAG_BUILTIN_DTB) += $(builtindtb-y).dtb
obj-$(CONFIG_METAG_BUILTIN_DTB) += $(builtindtb-y).dtb.o

targets += dtbs
targets += $(dtb-y)

.SECONDARY: $(obj)/$(builtindtb-y).dtb.S

dtbs: $(addprefix $(obj)/, $(dtb-y))

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

0 comments on commit 1aa4c51

Please sign in to comment.