[PATCH 01/11] Makefile: Allow generated C source to be anywhere in build directory
Atish Patra
atishp at atishpatra.org
Mon May 9 10:24:37 PDT 2022
On Mon, May 2, 2022 at 8:38 PM Anup Patel <apatel at ventanamicro.com> wrote:
>
> The generated C source could be anywhere within build directory so
> let us update the make rule to comple generated C source accordingly.
>
> Signed-off-by: Anup Patel <apatel at ventanamicro.com>
> ---
> Makefile | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index fc1ea13..30f7c46 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -437,6 +437,9 @@ $(build_dir)/%.dep: $(src_dir)/%.c
> $(build_dir)/%.o: $(src_dir)/%.c
> $(call compile_cc,$@,$<)
>
> +$(build_dir)/%.o: $(build_dir)/%.c
> + $(call compile_cc,$@,$<)
> +
> ifeq ($(BUILD_INFO),y)
> $(build_dir)/lib/sbi/sbi_init.o: $(libsbi_dir)/sbi_init.c FORCE
> $(call compile_cc,$@,$<)
> @@ -463,9 +466,6 @@ $(platform_build_dir)/%.dep: $(platform_src_dir)/%.c
> $(platform_build_dir)/%.o: $(platform_src_dir)/%.c
> $(call compile_cc,$@,$<)
>
> -$(platform_build_dir)/%.o: $(platform_build_dir)/%.c
> - $(call compile_cc,$@,$<)
> -
> $(platform_build_dir)/%.dep: $(platform_src_dir)/%.S
> $(call compile_as_dep,$@,$<)
>
> --
> 2.34.1
>
Reviewed-by: Atish Patra <atishp at rivosinc.com>
--
Regards,
Atish
More information about the opensbi
mailing list