Skip to content

Commit f4f0429

Browse files
committed
options: allow to use .lcf file as customized linker script template
previously LINKER_SCRIPT_FILE only allow .ld file, this commit allow user to use .lcf file as well. Signed-off-by: Yuguo Zou <yuguo.zou@synopsys.com>
1 parent 87e8c1d commit f4f0429

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

doc/documents/getting_started/makefile_manual.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ In the following part of this manual, we will only use ``make`` in example, you
7878
" DIG_NAME=xxx - Specify Digilent JTAG which to be used, most useful when more than one Digilent USB-JTAG plugged in"
7979
" HEAPSZ=xxx - Specify heap size for program, xxx stands for size in bytes"
8080
" STACKSZ=xxx - Specify stack size for program, xxx stands for size in bytes"
81-
" LINKER_SCRIPT_FILE=xxx - Specify customized linker script, xxx stands for the relative path of linker script file to current directory"
81+
" LINKER_SCRIPT_FILE=xxx - Specify customized linker script (.ld .lcf), xxx stands for the relative path of linker script file to current directory"
8282
"Example Usage:"
8383
" make all - build example in current directory using default configuration"
8484
" make BOARD=emsk BD_VER=22 CUR_CORE=arcem7d OLEVEL=O2 TOOLCHAIN=gnu all - build example using configuration (emsk, 22, arcem7d, O2, gnu)"

options/rules.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ help :
135135
@$(ECHO) ' DIG_NUM=xxx - Specify device serial number which to be used for OpenOCD, most useful when more than one device plugged in'
136136
@$(ECHO) ' HEAPSZ=xxx - Specify heap size for program, xxx stands for size in bytes'
137137
@$(ECHO) ' STACKSZ=xxx - Specify stack size for program, xxx stands for size in bytes'
138-
@$(ECHO) ' LINKER_SCRIPT_FILE=xxx - Specify customized linker script, xxx stands for the relative path of linker script file to current directory'
138+
@$(ECHO) ' LINKER_SCRIPT_FILE=xxx - Specify customized linker script (.ld .lcf), xxx stands for the relative path of linker script file to current directory'
139139
@$(ECHO) 'Example Usage:'
140140
@$(ECHO) ' make all - build example in current directory using default configuration'
141141
@$(ECHO) ' make BOARD=emsk BD_VER=22 CUR_CORE=arcem7d OLEVEL=O2 TOOLCHAIN=gnu all - build example using configuration (emsk, 22, arcem7d, O2, gnu)'

options/toolchain/toolchain_mw.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ endif
155155
-Hnocopyr -Hnosdata -Hnocrt $(LMAP_OPTION) $(APPL_LINK_FILE)
156156

157157
## Link File Generation Options
158-
LINK_FILE_OPT += -Hnocopyr -Hasmcpp -Hasext=ld,met -Hnoarcexlib -Hnoarcsimd -E -nostdsysteminc -undef -D__MW__ $(ALL_INCLUDES)
158+
LINK_FILE_OPT += -Hnocopyr -Hasmcpp -Hasext=ld,lcf,met -Hnoarcexlib -Hnoarcsimd -E -nostdsysteminc -undef -D__MW__ $(ALL_INCLUDES)
159159
LINK_FILE_DEPOPT = $(LINK_FILE_OPT) -DENABLE_GENERATE_DEPENDCY_FILE $(MKDEP_OPT)
160160

161161
## Other Options

0 commit comments

Comments
 (0)