[PATCH 1/3] Makefile: Add rules for carray sources in lib/sbi
Anup Patel
anup at brainfault.org
Sat Oct 22 22:41:11 PDT 2022
On Mon, Oct 10, 2022 at 10:05 PM Vivian Wang <dramforever at live.com> wrote:
>
> 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 at live.com>
Looks good to me.
Reviewed-by: Anup Patel <anup at brainfault.org>
Applied this patch to the riscv/opensbi repo.
Thanks,
Anup
> ---
> Makefile | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/Makefile b/Makefile
> index 0ab9f22..2a3d080 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,$@,$<)
>
> --
> 2.37.1
>
>
> --
> opensbi mailing list
> opensbi at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi
More information about the opensbi
mailing list