]> git.karo-electronics.de Git - linux-beck.git/commitdiff
metag: use common make variables for dtb builds
authorRob Herring <robh@kernel.org>
Tue, 6 Oct 2015 22:52:24 +0000 (17:52 -0500)
committerRob Herring <robh@kernel.org>
Tue, 27 Oct 2015 21:12:15 +0000 (16:12 -0500)
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 <robh@kernel.org>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: linux-metag@vger.kernel.org
arch/metag/Makefile
arch/metag/boot/dts/Makefile

index 9739857bdedcb89fe6847d26fdef70041a70228d..033a58214119535488836cd805ff17ce6567cc3d 100644 (file)
@@ -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)
index 72c12187942606316950775222df89e332b885b0..2533c38a691cb6cc238dee2d320032a6e1c63222 100644 (file)
@@ -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