Volodymyr Medvid
6918e6a76b
makefile export: create .link_options.txt with echo
...
$(file > $@.in, $(filter %.o, $^)) is not supported in GNU Make 3.81.
Create the linker response file with pipe redirect from echo command.
This is tested with Cygwin make and make 3.8.1 shipped with macOS.
Also, change the linker responce file name to .link_options.txt.
This is an internal file, not a build artifact.
2019-02-04 20:10:47 +02:00
Jimmy Brisson
a8a21d30a1
Implement Linker command/response files in make export
2019-01-31 17:38:25 +02:00
Jimmy Brisson
58180dbafe
Use shell escaping instead of quoting
...
OSs don't agree on what the quote chars mean
2018-08-02 09:09:07 -05:00
Jimmy Brisson
77d2a36d2a
Quote Makefile CLI parameters
2018-08-02 09:02:06 -05:00
Jimmy Brisson
cbc3d83f83
Remove include from assember in makefile exporter
...
The build system does not do this, so this is a consistency fix
2017-11-01 09:26:25 -05:00
Jimmy Brisson
69c38012eb
Force preprocessing of asm for make_armc5
...
It seem to preprocess asm with the `.S` extension on linux, but the
windows build of Arm Compiler 5 seems to omit the preprocessing step
unless you have a `.sx` extension. Odd.
2017-09-21 17:37:10 -05:00
Jimmy Brisson
06b00683c3
Genericify arm compiler exporter to versions 5 + 6
2017-09-11 13:20:32 -05:00
Jimmy Brisson
3155e71786
Add pre-processing of linker scripts to Make exporter
...
For toolchains that do not implicitly run the C pre-processor on their
linker scripts the toolchain is expected to define a `preproc`
attribute. The Makefiles then pick up on this attribute and add another
rule for pre-processing the linker script automatically.
2017-02-08 17:27:11 -06:00
Martin Kojtal
7316b89c1d
Merge pull request #3600 from theotherjimmy/refactor-sys-libs
...
[toolchains] Refactor sys libs
2017-01-26 10:30:27 +02:00
Max Vilimpoc
2ce1a8d953
Allow user overrides of LINKER_SCRIPT Make variable ( #3594 )
...
Makefile: Allow user overrides of LINKER_SCRIPT Make variable
2017-01-26 10:28:18 +02:00
Jimmy Brisson
3489b14643
Use sys_libs from mbedToolchain in Makefiles
2017-01-17 13:57:37 -06:00
Brian Daniels
3975ff332d
Adding quotes to echo statements
...
This fixes an issue when make is ran inside the Windows command prompt
2016-12-09 12:41:07 -06:00
Sam Grove
f0e3ff4909
[exporters] update makefile build output directory to match mbed-cli and use the special reserved folder BUILD
2016-11-18 00:25:01 -06:00
Jimmy Brisson
def0a38c4b
Add message that informs the user which hex to flash
2016-11-07 15:54:44 -06:00
Jimmy Brisson
688d55bd93
Quote make invocation too
2016-11-04 10:08:24 -05:00
Jimmy Brisson
83fbbe8964
Quote the shell call in mkdir and rmdir
...
Allows the use of bash in windows
2016-11-03 15:38:55 -05:00
Martin Kojtal
9fce16dddf
Merge pull request #3061 from theotherjimmy/makefile-lib-fix
...
Exporters: Use correct names for library files in makefile exporter
2016-10-20 11:02:24 +01:00
Jimmy Brisson
1a4dabd65d
Account for different linker flags across the compilers
2016-10-19 14:21:11 -05:00
Jimmy Brisson
18b34794be
Add quick print to the makefile when srec_cat is required
2016-10-18 10:58:51 -05:00
Jimmy Brisson
a3ee5edde5
Unifiy output style of makefile and tools
2016-09-15 11:42:52 -05:00
Jimmy Brisson
d9c8365828
Use cflags instead of symbols
2016-09-15 11:42:52 -05:00
Jimmy Brisson
00d2a45b91
Generalize make exporters for all toolchains
2016-09-15 11:42:52 -05:00