diff options
| author | Anup Patel <[email protected]> | 2022-05-13 09:25:50 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2022-05-13 09:25:50 +0530 |
| commit | f726f2dc0186964feb17296471233086bcc3d1b2 (patch) | |
| tree | c30b84cf3bcdbd71a22e634c7b8aa2bb7cca801c | |
| parent | 023f0ad2d9c1039c0538620aa26c4680e3bfd9c9 (diff) | |
Makefile: Allow generated C source to be anywhere in build directory
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 <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
| -rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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,$@,$<) |
