summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-05-23 09:01:18 +0300
committerAnup Patel <anup@brainfault.org>2020-06-05 06:32:27 +0300
commit30b60401e1a88164d91ed0c7cccaecb17f71afd8 (patch)
treeeb78bcb3a133a83c3ab25dad2ce52d0fe234689e /Makefile
parenta63f05f3dea6fde8b5d545c2c6a5762faa56539a (diff)
downloadopensbi-30b60401e1a88164d91ed0c7cccaecb17f71afd8.tar.xz
Makefile: Fix builtin DTB compilation for out-of-tree platforms
The make rule for builtin DTB compilation does not consider out-of-tree platforms so this patch fixes it. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index fe44ceb..79af171 100644
--- a/Makefile
+++ b/Makefile
@@ -348,6 +348,9 @@ $(platform_build_dir)/%.dep: $(platform_src_dir)/%.S
$(platform_build_dir)/%.o: $(platform_src_dir)/%.S
$(call compile_as,$@,$<)
+$(platform_build_dir)/%.dtb: $(platform_src_dir)/%.dts
+ $(call compile_dts,$@,$<)
+
$(platform_build_dir)/%.dep: $(src_dir)/%.c
$(call compile_cc_dep,$@,$<)
@@ -360,9 +363,6 @@ $(platform_build_dir)/%.dep: $(src_dir)/%.S
$(platform_build_dir)/%.o: $(src_dir)/%.S
$(call compile_as,$@,$<)
-$(build_dir)/%.dtb: $(src_dir)/%.dts
- $(call compile_dts,$@,$<)
-
# Rule for "make docs"
$(build_dir)/docs/latex/refman.pdf: $(build_dir)/docs/latex/refman.tex
$(CMD_PREFIX)mkdir -p $(build_dir)/docs