From: Anup Patel Date: Sat, 23 May 2020 06:01:18 +0000 (+0530) Subject: Makefile: Fix builtin DTB compilation for out-of-tree platforms X-Git-Tag: v1.3~700 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=30b60401e1a88164d91ed0c7cccaecb17f71afd8;p=platform%2Fkernel%2Fopensbi-spacemit.git 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 Reviewed-by: Atish Patra --- 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