summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVivian Wang <dramforever@live.com>2022-10-10 19:34:43 +0300
committerAnup Patel <anup@brainfault.org>2022-10-23 08:29:26 +0300
commit9d54f431e803342218561faa6b4649bbdcea1d24 (patch)
tree2d73135f73de46361cf281d15f54ce9b74ca6013 /Makefile
parent51acd4956aebe7c338eb456c1a380df164895749 (diff)
downloadopensbi-9d54f431e803342218561faa6b4649bbdcea1d24.tar.xz
Makefile: Add rules for carray sources in lib/sbi
Add back the missing rules needed to build carray files in lib/sbi. This allows future usage of carray in lib/sbi. Fixes: de80e9337d81 ("Makefile: Compile lib/utils sources separately for each platform") Signed-off-by: Vivian Wang <dramforever@live.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4b175a0..8db6eab 100644
--- a/Makefile
+++ b/Makefile
@@ -478,6 +478,13 @@ $(build_dir)/lib/libsbi.a: $(libsbi-objs-path-y)
$(platform_build_dir)/lib/libplatsbi.a: $(libsbi-objs-path-y) $(libsbiutils-objs-path-y) $(platform-objs-path-y)
$(call compile_ar,$@,$^)
+$(build_dir)/%.dep: $(src_dir)/%.carray $(KCONFIG_CONFIG)
+ $(call compile_gen_dep,$@,.c,$< $(KCONFIG_CONFIG))
+ $(call compile_gen_dep,$@,.o,$(@:.dep=.c))
+
+$(build_dir)/%.c: $(src_dir)/%.carray
+ $(call compile_carray,$@,$<)
+
$(build_dir)/%.dep: $(src_dir)/%.c $(KCONFIG_CONFIG)
$(call compile_cc_dep,$@,$<)