[RFC PATCH 1/5] riscv: Generate linkcmds.base from the shared linkcmds.base.in

Hesham Almatary Hesham.Almatary at cl.cam.ac.uk
Wed Oct 23 13:44:09 UTC 2019


This commit moves the existing linkcmds.base to linkcmds.base.in
in order to make it configurable by autotools.
---
 bsps/riscv/shared/start/{linkcmds.base => linkcmds.base.in} | 0
 c/src/lib/libbsp/riscv/riscv/Makefile.am                    | 2 +-
 c/src/lib/libbsp/riscv/riscv/configure.ac                   | 1 +
 3 files changed, 2 insertions(+), 1 deletion(-)
 rename bsps/riscv/shared/start/{linkcmds.base => linkcmds.base.in} (100%)

diff --git a/bsps/riscv/shared/start/linkcmds.base b/bsps/riscv/shared/start/linkcmds.base.in
similarity index 100%
rename from bsps/riscv/shared/start/linkcmds.base
rename to bsps/riscv/shared/start/linkcmds.base.in
diff --git a/c/src/lib/libbsp/riscv/riscv/Makefile.am b/c/src/lib/libbsp/riscv/riscv/Makefile.am
index 15b0865306..61de95d7fb 100644
--- a/c/src/lib/libbsp/riscv/riscv/Makefile.am
+++ b/c/src/lib/libbsp/riscv/riscv/Makefile.am
@@ -23,7 +23,7 @@ start.$(OBJEXT): ../../../../../../bsps/riscv/shared/start/start.S
 project_lib_DATA = start.$(OBJEXT)
 
 project_lib_DATA += linkcmds
-project_lib_DATA += ../../../../../../bsps/riscv/shared/start/linkcmds.base
+project_lib_DATA += linkcmds.base
 
 ###############################################################################
 #                  LibBSP                                                     #
diff --git a/c/src/lib/libbsp/riscv/riscv/configure.ac b/c/src/lib/libbsp/riscv/riscv/configure.ac
index 26a3e07e98..af501badf2 100644
--- a/c/src/lib/libbsp/riscv/riscv/configure.ac
+++ b/c/src/lib/libbsp/riscv/riscv/configure.ac
@@ -78,5 +78,6 @@ RISCV_LINKCMD([RISCV_RAM_REGION_SIZE],[size of the RAM region for linker command
 AC_CONFIG_FILES([
 Makefile
 linkcmds:../../../../../../bsps/riscv/riscv/start/linkcmds.in
+linkcmds.base:../../../../../../bsps/riscv/shared/start/linkcmds.base.in
 ])
 AC_OUTPUT
-- 
2.17.1



More information about the devel mailing list