diff options
-rw-r--r-- | arch/metag/boot/dts/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/metag/boot/dts/Makefile b/arch/metag/boot/dts/Makefile index e0b5afd8bde8..dbd95217733a 100644 --- a/arch/metag/boot/dts/Makefile +++ b/arch/metag/boot/dts/Makefile | |||
@@ -4,13 +4,17 @@ dtb-y += skeleton.dtb | |||
4 | builtindtb-y := skeleton | 4 | builtindtb-y := skeleton |
5 | 5 | ||
6 | ifneq ($(CONFIG_METAG_BUILTIN_DTB_NAME),"") | 6 | ifneq ($(CONFIG_METAG_BUILTIN_DTB_NAME),"") |
7 | builtindtb-y := $(CONFIG_METAG_BUILTIN_DTB_NAME) | 7 | builtindtb-y := $(patsubst "%",%,$(CONFIG_METAG_BUILTIN_DTB_NAME)) |
8 | endif | 8 | endif |
9 | obj-$(CONFIG_METAG_BUILTIN_DTB) += $(patsubst "%",%,$(builtindtb-y)).dtb.o | 9 | |
10 | dtb-$(CONFIG_METAG_BUILTIN_DTB) += $(builtindtb-y).dtb | ||
11 | obj-$(CONFIG_METAG_BUILTIN_DTB) += $(builtindtb-y).dtb.o | ||
10 | 12 | ||
11 | targets += dtbs | 13 | targets += dtbs |
12 | targets += $(dtb-y) | 14 | targets += $(dtb-y) |
13 | 15 | ||
16 | .SECONDARY: $(obj)/$(builtindtb-y).dtb.S | ||
17 | |||
14 | dtbs: $(addprefix $(obj)/, $(dtb-y)) | 18 | dtbs: $(addprefix $(obj)/, $(dtb-y)) |
15 | 19 | ||
16 | clean-files += *.dtb | 20 | clean-files += *.dtb *.dtb.S |