Commit Graph

340 Commits (d62312b54644cf20aae23d9b27d913a28930c3ed)

Author SHA1 Message Date
Jimmy Brisson 3af9438baf Revome duplicate optimization flags in IAR export 2017-05-21 14:38:03 +01:00
Jimmy Brisson feeadd6eba Remove unsupported Coide exports
They simply would error with "template not found". Instead, lets just
disable them.
2017-05-21 14:38:03 +01:00
Daniel Zimmermann 5dc7fc9cb8 LPC4088: add LPC4088Code.binary_hook to the white list of the embitz, gnuarmeclipse and makefile exporter. 2017-05-21 14:37:56 +01:00
Alexis ROCHE 3b393f84bd DISCO_L072CZ_LRWAN1: add IAR export 2017-05-21 14:37:50 +01:00
Alexis ROCHE 37069888c6 DISCO_L072CZ_LRWAN1: add LRWAN1 to the name 2017-05-21 14:37:50 +01:00
Alexis ROCHE 04645f09bb DISCO_L072CZ: Modifications and verifications to build 2017-05-21 14:37:49 +01:00
Jimmy Brisson f97184af84 Add `mbed new .` output to export 2017-05-05 16:48:48 +01:00
Jan Jongboom 83d186a355 Visual Studio Code exporter 2017-05-05 16:48:44 +01:00
Matteo Italia 9934b91c1e Updated year in license header 2017-05-05 16:48:44 +01:00
Matteo Italia 614d1f3b98 Qt Creator exporter: added derivation from GccArm Makefile
this allows Qt Creator to build the generated project "out of the box",
enabling integration with the "Issues" list
2017-05-05 16:48:43 +01:00
Matteo Italia c2f5aa19a7 QtCreator exporter: switch to jinja-based templates
this also makes so that the export directory setting is honored
2017-05-05 16:48:43 +01:00
Matteo Italia e496a637c3 Added minimal support for Qt Creator projects 2017-05-05 16:48:42 +01:00
Jimmy Brisson 54e1e55844 Fail IAR exports without linker scirpts with NotSupportedException 2017-04-21 15:42:23 +01:00
Jimmy Brisson ad8faab60a Fix typo in LPCExpresso exporter template 2017-04-21 15:42:23 +01:00
Jimmy Brisson 1d68057a7a Fix Traceback in CMSIS export.
The traceback was caused when a file without a parent directory (which
is implicitly ".") is added to the resources object. The code assumed
that all files within the resources object would have a parent
directory.

This commit changes the check to account for files that are in the root
directory of a project and have no preceding `./`
2017-04-21 15:42:20 +01:00
Jimmy Brisson d732f31a12 Generate GNU ARM Eclipse's .mbedignore with Jinja2 2017-04-21 15:42:20 +01:00
Jimmy Brisson e6c44d633c Update gnuarmeclipse to preprocess linker scripts 2017-04-21 15:42:17 +01:00
Głąbek, Andrzej 2658bdb113 IAR exporter: extended debugger settings template with modifiable options needed for Nordic targets. 2017-04-07 14:02:27 +01:00
Willie Walker a1391f563d Fix mbed-cli issue #468. Add LPCTargetCode.lpc_patch to POST_BINARY_WHITELIST. 2017-04-07 14:02:08 +01:00
Phyo Kyaw 7b2b4dcacc This change is for RZ_A1H and VK_RZ_A1H target. 2017-03-24 20:44:15 +00:00
Jimmy Brisson 006503df2c Don't set the build_dir to anything on export
When constructing a toolchain for export, we currently set the
`build_dir` to the `export_dir`. When exporting offline, the
`export_dir` is always set to the root of the project. The toolchains
ignore their `build_dir` when scanning for sorces, so when the exporters
use the toolchains to scan for their resources, they get nothing.

In this patch we set the `build_dir` of the toolchain that the exports
use to nothing. A path of nothing should not match anything, and will
therefore not ignore everything when scanning for resources.
2017-03-24 20:44:03 +00:00
Jimmy Brisson feb7569da7 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-13 11:13:18 +00:00
Martin Kojtal ee3e503c77 Export: fix issue #3865 - cmsis-dap swd
From JTAG to SWD by default. This was causing flashing error.
2017-03-03 17:52:29 +00:00
Jimmy Brisson 41aff2422c Add the FPU field to the <Cpu> tag it Keil
Recently the Keil IDE has released version 5.23. This version requires
the FPU to be set as part of the <Cpu> tag in the .uvprojx (XML project
file). This patch adds the appropriate FPU settings based on the
trailing F (FPU enabled) or FD (Double precesion FPU enabled) string of
the core.
2017-03-03 17:52:21 +00:00
Sam Grove 067f5a0fef Merge pull request #3791 from theotherjimmy/remove-cr
Remove GCC_CR and refurbish LPCXpresso exporter
2017-02-22 13:33:14 -06:00
Sam Grove 988a1891b2 Merge pull request #3797 from theotherjimmy/remove-export-readme
Remove export subdir readme
2017-02-21 10:57:35 -06:00
Jimmy Brisson 1f64e2bc43 Remove export subdir readme
It was really out of date, and is the same as `mbed export -S`. This
makes me think that it's useless
2017-02-17 11:07:22 -06:00
Sam Grove 75560f3121 Merge pull request #3745 from theotherjimmy/ld-flags-once-make
Pass linker flags to the linker only once
2017-02-17 09:12:40 -06:00
Jimmy Brisson 1d95604275 Remove GCC_CR
It has not worked since the introduction of build profiles
2017-02-16 15:03:24 -06:00
Jimmy Brisson bcbfe6abe1 Rename codered to lpcexpresso in code 2017-02-16 12:09:43 -06:00
Liviu Ionescu 14ffc2511e Merge remote-tracking branch 'ARMmbed/master' 2017-02-14 14:05:37 +02:00
Sam Grove d8151d7991 Merge pull request #3590 from OpenNuvoton/nuvoton
[NUC472/M453] Export IAR project and other bugfixes
2017-02-13 10:12:02 -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
Liviu Ionescu 47b164b00b Merge remote-tracking branch 'ARMmbed/master' 2017-02-09 19:11:44 +02:00
Liviu Ionescu 9101ea4da5 add --launcher.suppressErrors for headless Eclipse 2017-02-09 19:11:28 +02:00
Sam Grove 49494cfb29 Merge pull request #3717 from sarahmarshy/iar-new-targets
Add IAR export support for NUCLEO_F207ZG
2017-02-09 09:47:45 -06:00
Sam Grove 2de453c8fa Merge pull request #3706 from c1728p9/pre_process
Use the C Pre-Processor on GCC Linker scripts
2017-02-09 09:40:36 -06:00
Liviu Ionescu b2638646b8 Merge remote-tracking branch 'ARMmbed/master' 2017-02-09 05:17:22 +02: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
Russ Butler acdf1e3728 Fix or remove invalid device names
The field device_name is intended to match that of a target in a
device family pack. Remove this field for devices which do not have
a pack. Fix the name for devices that have the name incorrect. Update
IAR definitions for device which no longer have a device_name but
still need to have support for the IAR exporter.
2017-02-08 14:54:25 -06:00
Russ Butler 8c91b417e6 exporters: allow target name to be used for IAR
Allow the IAR exporter to fall back to a target's name if the
device_name entry is missing.
2017-02-08 14:54:20 -06:00
Sarah Marsh 0677e5add6 Add IAR export support for NUCLEO_F207ZG 2017-02-07 14:25:43 -06:00
Brian Daniels b0739d7520 Fixing Cortex-A and SARA_NBIOT_EVK build failures (#3)
* Adding Cortex-A support for gnuarmeclipse
* Preventing '-mthumb' from being added to Cortex-A builds.
Previously, both '-mthumb' and '-marm' were being supplied to the
compiler (in that order). Because '-marm' came last, the compiler
respected this option. This change makes it so '-mthumb' is added for
all 'Cortex-M' targets only.
* Renaming to capital .S for Eclipse compatibility
2017-02-07 21:18:18 +02:00
Brian Daniels 57e93a5bab Fixing build step
* Cleaning up makefile
2017-02-07 04:55:51 +02:00
Sam Grove 7083dc5339 Merge pull request #3661 from theotherjimmy/uvision-add-cpu
[Exporters] Add core to uvision exporter template
2017-02-02 10:58:53 -06:00
Liviu Ionescu 7e7b25265c enable the default profile 2017-02-02 18:42:53 +02:00
Liviu Ionescu 269f2b115e generate distinct configurations for profiles
- ignore the 'default' profile, it is a duplicate
- remove repetitions from .cproject.tmpl
2017-02-02 16:34:17 +02:00
Jimmy Brisson eadbe71d58 Add core to uvision exporter template
Strip trailing F's and D's off of the Cputype in uvision
2017-01-31 12:18:52 -06:00
mbedNoobNinja d627bf2d1f Export IDE support added 2017-01-31 10:23:21 +02:00
Liviu Ionescu a5f01293a7 makefile.target.tmpl: remove multiline foreach 2017-01-27 09:58:05 +02:00