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
8db0fa9819
Correct rename mistake in make arm compiler exporters
2017-09-14 09:14:47 -05:00
Jimmy Brisson
06b00683c3
Genericify arm compiler exporter to versions 5 + 6
2017-09-11 13:20:32 -05:00
JojoS
0c254448e0
verify libname before stripping
2017-07-31 23:34:48 +02:00
JojoS
c8bb167f1f
fix unresolved linker msg: __wrap_
...
adding libraries to gcc linker group command
2017-07-31 23:34:48 +02:00
Jimmy Brisson
81446f69be
Generate exporter suppored lists when needed
2017-07-07 14:45:32 -05:00
Jimmy Brisson
a5cc8ef446
Remove incompatible post binary hook
2017-06-09 00:03:22 -05:00
Yuguo Zou
88d4d1d0f8
exporter coding style fix
...
should use space instead of tab
2017-06-03 20:15:04 +01:00
Yuguo Zou
92ca664fda
Add support for mbed exporter
...
(uvision, gcc_arm, iar)
2017-06-03 20:15:04 +01:00
Vincent Coubard
897667deaa
makefile exporter: Escape double quote in toolchain flags.
...
Without this fix macro defined as -DFOO="BAR" won't be correctly
interpreted by the compiler.
2017-05-23 14:08:24 +01:00
Daniel Zimmermann
8e02855101
LPC4088: add LPC4088Code.binary_hook to the white list of the embitz, gnuarmeclipse and makefile exporter.
2017-05-09 11:59:03 -05:00
Willie Walker
13247426f9
Fix mbed-cli issue #468 . Add LPCTargetCode.lpc_patch to POST_BINARY_WHITELIST.
2017-03-30 15:22:57 -04:00
Jimmy Brisson
fcef9a7c50
Add post-build hook white-list to exporters
...
We have scripts (written in python) that are run after a binary image is
created in the tools. These scripts are not really exportable, as they
are part of the tools and may include and use any bits of python code
they please. So we don't export them. This patch disables export
combinations that would not work because the post-binary hook is not
exported. A white-list is used for forward compatibility.
2017-03-02 15:01:14 -06:00
Jimmy Brisson
7d75e277e7
Pass linker flags to the linker only once
...
Before, `make_gcc_arm` would export a makefile with both linker flags in
the `$(LD)` make variable and the `$(LD_FLAGS)` make variable. This only
affected GCC based makefiles, as the `$(LD)` make variable would only
contain the linker for both ARMC5 and IAR. This patch enforces the
`$(LD)` behavior of ARMC5 and IAR on all of the compilers by truncating
`$(LD)` to just the command
2017-02-10 11:28:02 -06: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
Jimmy Brisson
63c650903c
Improve error message when exporting for make without a linker script
2016-12-20 14:11:58 -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
Sam Grove
0d3e9f0968
[exporters] make sure to clean .build and BUILD
2016-11-18 00:21:55 -06:00
Jimmy Brisson
def0a38c4b
Add message that informs the user which hex to flash
2016-11-07 15:54:44 -06:00
Sam Grove
03b8ae1811
Merge pull request #3200 from bridadan/exporter_build_subprocess_change
...
Using Popen for uVision and unifying the structure of the build function
2016-11-04 14:45:54 -05:00
Sam Grove
13676f064b
Merge pull request #3189 from theotherjimmy/make-use-path
...
[Exporters - Make-based] Force make exporter to search PATH for compilers
2016-11-04 14:45:02 -05:00
Sam Grove
4a45761c08
Merge pull request #3195 from theotherjimmy/quote-shell-make
...
[Exporters - Make-based] Quote the shell call in mkdir and rmdir
2016-11-04 14:43:22 -05:00
Brian Daniels
9d91566927
Using Popen for uvision and unifying the structure of the build function
...
across exporters
2016-11-04 11:14:32 -05:00
Jimmy Brisson
688d55bd93
Quote make invocation too
2016-11-04 10:08:24 -05:00
Sam Grove
f044786f22
Merge pull request #3187 from theotherjimmy/fix-eclipse-export
...
[Export-Make] Use internal class variable for resolving templates in makefiles
2016-11-03 18:48:13 -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
Jimmy Brisson
79bccc14a2
Force make exporter to search PATH for compilers
2016-11-02 17:16:35 -05:00
Jimmy Brisson
c2470e9710
Use internal class variable for resolving templates in makefiles
...
This allows other exporters to inherit from make and change the name of
the exporter without breaking.
2016-11-02 15:42:30 -05:00
Sarah Marsh
cc154a48cd
[Exporters] Build method documentation. Removal of unused Exception classes.
2016-11-01 15:03:31 -05:00
Sarah Marsh
b9bac0516b
[Exporter tests] changing variable names and respecting requirement kwargs
2016-11-01 15:03:31 -05:00
Sarah Marsh
986af0dd5e
New export-build tests.
...
Allows command line workflow of:
mbed import
mbed export
Also revises exporter supported target checks
2016-11-01 15:03:31 -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
7a8917fcf8
Use correct names for library files
2016-10-18 10:30:46 -05:00
Sarah Marsh
b39fbd3273
Use single quotes to escape make commands
2016-09-21 11:30:58 -05:00
Jimmy Brisson
e507b9e1c6
export make - Surround all command line stuff with quotes.
...
Should eliminate any space-in-path issues
2016-09-15 11:42:52 -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
6838aa9372
Clean code style of python code for generic make
2016-09-15 11:42:52 -05:00
Jimmy Brisson
920bb47ffd
Change make exporter support to match target.json
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
Jimmy Brisson
17e096b369
Move make stuff to it's own folder; add a make_gcc_arm exporter
2016-09-15 11:42:52 -05:00