Commit Graph

617 Commits (f55f9d36fbab96628f6b8ad7141b20ceb25483d3)

Author SHA1 Message Date
JojoS c8bb167f1f fix unresolved linker msg: __wrap_
adding  libraries to gcc linker group command
2017-07-31 23:34:48 +02:00
Jimmy Brisson 2305a8c7e4 Merge pull request #4783 from theotherjimmy/refactor-exporter-ignores
Collect ignored directories in scan and use in exporters
2017-07-31 15:25:07 +00:00
Jimmy Brisson 78a1eddf61 Merge pull request #4804 from johanstokking/fix/4802-copy-static-files
Copy static files only
2017-07-27 09:47:32 -05:00
Jimmy Brisson d2ad8867e7 Merge pull request #4742 from theotherjimmy/deprecate-exporters
Deprecate unsupported exporters
2017-07-27 09:40:12 -05:00
Jimmy Brisson c8e6cf5bdd Collect ignores from scan resources and use in exporetrs 2017-07-26 14:31:22 -05:00
Johan Stokking 382e030bdc Use immutable tuple instead of mutable list
Signed-off-by: Johan Stokking <johan@stokking.nl>
2017-07-25 13:48:53 +02:00
Johan Stokking 9bcd1da2fa ZIP export static files
Signed-off-by: Johan Stokking <johan@stokking.nl>
2017-07-25 13:46:55 +02:00
Johan Stokking f8abcf4050 Copy static files also when zipping 2017-07-24 21:11:09 +02:00
Johan Stokking b0f5b3d768 Copy static files only
Signed-off-by: Johan Stokking <johan@stokking.nl>
2017-07-24 20:39:28 +02:00
Jimmy Brisson 54cb6ef871 Deprecate Simplicity Version 3 2017-07-19 11:23:53 -05:00
Martin Kojtal 692d9055b1 Merge pull request #4725 from theotherjimmy/extra_targets_exporters
Parse and use custom targets in exporters
2017-07-13 17:00:38 +02:00
Jimmy Brisson 756d062e73 Deprecate LPCXpresso 2017-07-11 11:16:17 -05:00
Jimmy Brisson cc37669af2 Deprecate KDS 2017-07-11 11:16:05 -05:00
Jimmy Brisson 1c4d615912 Deprecate e2studio 2017-07-11 11:15:43 -05:00
Jimmy Brisson 8856f1ab0a Deprecate Coide 2017-07-11 11:15:31 -05:00
Jimmy Brisson fea553c6d5 Deprecate Atmel Studio 2017-07-11 11:15:13 -05:00
Jimmy Brisson 39f8a7d261 Create deprecated exporter class decorator 2017-07-11 11:14:52 -05:00
Jimmy Brisson 1d9fe5e337 Remove unusable exporters 2017-07-11 11:14:28 -05:00
Jimmy Brisson 81446f69be Generate exporter suppored lists when needed 2017-07-07 14:45:32 -05:00
Anna Bridge 292b4082ef Merge pull request #4636 from theotherjimmy/quote-cflags
Double escape defines in gnuarmeclipse export
2017-07-07 12:40:40 +01:00
Martin Kojtal 3c08c96494 IAR: remove stm32f413 from definitions
This definition requires IAR 7.80.2 and higher.
It will be readded once we all update to the latest IAR 7.80 patch release. For
future, please any new target should state what are the requirements on tools to
avoid this suprises.
2017-07-04 09:48:44 +01:00
Jimmy Brisson a5a5fa3a7b Double escape defines
Fixes a bug where quoting gets stripped by the shell used in the makefile
and another bug where the lack of escaping would cause parser errors in
eclipse.
2017-06-29 14:15:23 -05:00
Jimmy Brisson e57296d5b9 Merge pull request #4598 from theotherjimmy/iar-styling
Fix style issues in IAR exporter
2017-06-26 10:30:22 -05:00
Jimmy Brisson 72bdeefca9 Merge pull request #4552 from bcostm/add_IAR_nucleo_f767zi
NUCLEO_F767ZI: Add missing IAR definitions
2017-06-26 10:27:46 -05:00
Anna Bridge f1d0314783 Merge pull request #4410 from arostm/dev_disco_f413ZH
DISCO_F413ZH: Add new platform
2017-06-23 11:41:50 +01:00
Jimmy Brisson 75935b466d Merge pull request #4616 from amq/master
Fix unresolved include of mbed_config.h in Eclipse
2017-06-22 10:11:35 -05:00
Jimmy Brisson 14a0fb7ca5 Fix style issues in IAR exporter 2017-06-22 09:41:22 -05:00
Martin Kojtal ea4220dda0 Merge pull request #4578 from sarahmarshy/patch-10
Turn off "browse information" in Uvision template
2017-06-22 13:53:16 +02:00
amq 2b70e8f061 Fix unresolved include of mbed_config.h in Eclipse 2017-06-22 13:51:26 +02:00
arostm ac3d5a0b25 DISCO_F413ZH: add IAR exporter 2017-06-22 09:23:08 +02:00
arostm b862b653d3 DISCO_F413ZH: corrections
- leds definition
- add sw4stm32 exporter
- recomment mco debug
2017-06-22 09:16:32 +02:00
Anna Bridge c5e1fa70d9 Merge pull request #4242 from bcostm/dev_disco-l475-iot
DISCO_L475VG_IOT01A : Add new target
2017-06-20 11:41:42 +01:00
Jimmy Brisson b56d9f3df3 Merge pull request #4540 from theotherjimmy/export-app-config
Support app config option for export
2017-06-19 11:59:38 -05:00
sarahmarshy 2abe6be5ba Turn off "browse information" in Uvision template
"Browse information," or the indexer for MDK, causes extremely long
build times when enabled.
2017-06-19 10:44:23 -05:00
Sam Grove d7c5be26ef Merge pull request #4544 from theotherjimmy/export-static-files
Export static files from mbed export
2017-06-15 11:18:28 -05:00
bcostm a5240d25e2 NUCLEO_F767ZI: Add missing IAR definitions 2017-06-14 15:16:11 +02:00
Jimmy Brisson 60fea42fdb Filter supported devices with a post-bin whitelist in uvision 2017-06-13 15:55:36 -05:00
Jimmy Brisson f81444d4f8 Export static files from mbed export 2017-06-13 13:40:30 -05:00
Jimmy Brisson c4a6163ce5 Accept app config option for export 2017-06-13 10:30:05 -05:00
bcostm b26eae581d Add DISCO_L475VG_IOT in build, export and tests python files 2017-06-12 17:03:12 +02:00
Jimmy Brisson 603ef3d75e Correct FPU setting for Cortex-M7FD
They had floating point turned off before
2017-06-09 00:03:23 -05:00
Jimmy Brisson 64baee8ac7 Correct profile handling in GNUARMEclipse exporter 2017-06-09 00:03:23 -05:00
Jimmy Brisson 578064e3fc Remove unsupported part from IAR 2017-06-09 00:03:22 -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
Jimmy Brisson 07a6c07408 Revert "Disable Cortex-A in tooling to provide better error messages"
This reverts commit f5859b308b.
2017-05-31 13:06:30 -05:00
Martin Kojtal 88c398b52a Merge pull request #4377 from theotherjimmy/disable-cortex-A
Disable Cortex-A in tooling for better error messages
2017-05-31 07:50:21 +01:00
Jimmy Brisson f5859b308b Disable Cortex-A in tooling to provide better error messages
Disable Cortex-A in compile supported matrix
Disable Cortex-A in export supported matrix
2017-05-30 14:32:06 -05:00
Anna Bridge ddc015fb6e Merge pull request #4303 from nvlsianpu/nrf52840_iar
enable iar exporter for nRF52840
2017-05-30 16:45:25 +01:00
Sam Grove 2e5ba49b59 Merge pull request #4395 from theotherjimmy/fix-uvision-support
Allow generic core exports to UVision
2017-05-26 10:20:33 -05:00
Jimmy Brisson 598cbdf023 Merge pull request #4381 from janjongboom/vscode-intellisense-engine
Fix vscode intellisense engine to 'Tag Parser'
2017-05-25 15:06:54 -05:00
Jimmy Brisson 4d1a4a41fa Fix Uvision supported check
Should now allow for generic targets
2017-05-25 15:01:20 -05:00
Jan Jongboom 1b0d7ee120 Fix vscode intellisense engine to 'Tag Parser' 2017-05-24 10:56:45 +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
Vincent Coubard deaabf3123 uvision exporter: Escape double quote in flags.
Without this fix macro defined as -DFOO="BAR" won't be correctly handled
by uvision.
2017-05-23 14:04:05 +01:00
Andrzej Puzdrowski 83c4b585c1 nRF52840_xxAA: enable iar exporter. nRF5x-MDK-IAR 8.11.1 or newer is required. 2017-05-17 11:45:57 +02:00
Martin Kojtal 12e6f8a1a8 Merge pull request #4293 from theotherjimmy/dedupe-iar-flags
Revome duplicate optimization flags in IAR export
2017-05-15 16:20:12 +01:00
Martin Kojtal 7a656302b2 Merge pull request #4286 from theotherjimmy/fix-coide-missing-template
Remove unsupported Coide exports
2017-05-15 16:16:10 +01:00
Jimmy Brisson 6b8dd7b880 Revome duplicate optimization flags in IAR export 2017-05-09 14:20:48 -05: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
Jimmy Brisson c782054eb5 Remove unsupported Coide exports
They simply would error with "template not found". Instead, lets just
disable them.
2017-05-08 14:03:27 -05:00
Jimmy Brisson c1cbd26f1d Merge pull request #4256 from arostm/dev_disco_lora
DISCO_L072CZ_LRWAN1: add a new platform
2017-05-08 11:15:00 -05:00
Jimmy Brisson 03806a8045 Merge pull request #4224 from theotherjimmy/mbed-new-export
Add `mbed new .` output to export
2017-05-02 11:28:09 -05:00
Alexis ROCHE 71492e5473 DISCO_L072CZ_LRWAN1: add IAR export 2017-05-02 12:53:25 +02:00
Alexis ROCHE a59c4ff8a7 DISCO_L072CZ_LRWAN1: add LRWAN1 to the name 2017-05-02 12:53:25 +02:00
Alexis ROCHE 19109d9404 DISCO_L072CZ: Modifications and verifications to build 2017-05-02 11:50:24 +02:00
Jimmy Brisson 43bd303db3 Add `mbed new .` output to export 2017-04-26 09:52:07 -05:00
Jimmy Brisson cf87e7d182 Merge pull request #3915 from janjongboom/feature-vscode
Feature vscode
2017-04-20 12:39:44 -05:00
Anna Bridge 8344adf48a Merge pull request #4172 from theotherjimmy/iar-no-linker-scirpt
Fail IAR exports without linker scirpts with NotSupportedException
2017-04-20 16:27:58 +01:00
Anna Bridge da4fb75256 Merge pull request #4171 from theotherjimmy/lpc-template-execption
Fix typo in LPCExpresso exporter template
2017-04-20 16:26:28 +01:00
Sam Grove a67eca5e72 Merge pull request #4173 from theotherjimmy/fix-cmsis-traceback
Fix Traceback in CMSIS export.
2017-04-19 02:20:21 -05:00
Sam Grove de6cce77be Merge pull request #4168 from theotherjimmy/gnuarmeclipse-more-templates
Generate GNU ARM Eclipse .mbedignore file with jinja2
2017-04-19 02:18:17 -05:00
Jimmy Brisson 6a325673de 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-12 11:00:09 -05:00
Jimmy Brisson 1e21985ff7 Fail IAR exports without linker scirpts with NotSupportedException 2017-04-12 10:39:24 -05:00
Jimmy Brisson 65adf446c5 Merge pull request #3993 from mbartling/supported-lists
Added list options for --supported command
2017-04-12 09:33:27 -05:00
Jimmy Brisson e307b907d6 Fix typo in LPCExpresso exporter template 2017-04-11 15:18:19 -05:00
Jimmy Brisson 6fa1de2161 Generate GNU ARM Eclipse's .mbedignore with Jinja2 2017-04-11 14:11:44 -05:00
Jimmy Brisson 55884de07e Merge pull request #4115 from cvtsi2sd/master
Support for Qt Creator Generic project export and associated Makefile
2017-04-10 16:17:14 -05:00
Sam Grove 0b1117793f Merge pull request #4069 from theotherjimmy/preproc-linker-gnuarmeclipse
Update gnuarmeclipse to preprocess linker scripts
2017-04-10 11:10:58 -05:00
Sam Grove 09de12161a Merge pull request #4013 from theotherjimmy/fix-subtract-basepath
Fix a small bug in subtract_basepath
2017-04-10 10:22:57 -05:00
Jan Jongboom 336e036e74 Visual Studio Code exporter 2017-04-10 09:26:25 +02:00
Matteo Italia 2baa215487 Updated year in license header 2017-04-06 23:19:52 +02:00
Sam Grove 9c141b6547 Merge pull request #3911 from anangl/fix_iar_exporter
IAR exporter: extended debugger settings template with modifiable options needed for Nordic targets
2017-04-06 10:58:38 -05:00
Matteo Italia 92eae30c40 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-04-06 11:22:21 +02:00
Matteo Italia 70412ec5a6 QtCreator exporter: switch to jinja-based templates
this also makes so that the export directory setting is honored
2017-04-06 11:22:01 +02:00
Matteo Italia f3ccfbe267 Added minimal support for Qt Creator projects 2017-04-05 11:43:50 +02:00
Jimmy Brisson 20edbe3525 Fix a small bug in subtract_basepath
It was causing tracebacks on the website
2017-04-03 11:44:25 -05:00
Michael Bartling 111a65b53d Added ability to list ides 2017-03-31 09:55:08 -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 6a3c71c002 Update gnuarmeclipse to preprocess linker scripts 2017-03-29 14:52:11 -05:00
Jimmy Brisson 70ac60710c Move contents of project_api to export/__init__.py
The file `project_api.py` was poorly named and caused much confusion.
Given that it was actually a front end to the exporters, I put it into
the export sub-dir.
2017-03-22 15:56:35 -05:00
Sam Grove ead3170d0f Merge pull request #3933 from phyokyaw/master
#3593 Added template entry to fix exported project build error.
2017-03-22 12:05:12 +00:00
Jimmy Brisson 4219d9cfc6 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-14 11:27:19 -05:00
Phyo Kyaw a301527c71 This change is for RZ_A1H and VK_RZ_A1H target. 2017-03-14 14:08:01 +00:00
Głąbek, Andrzej 377f759304 IAR exporter: extended debugger settings template with modifiable options needed for Nordic targets. 2017-03-08 11:06:35 +01:00
Martin Kojtal bc8e2ec887 Merge pull request #3875 from theotherjimmy/export-postbuild-whitelist
Add post-build hook white-list to exporters
2017-03-06 16:57:36 +00:00
Martin Kojtal 2b60e0334a Merge pull request #3870 from 0xc0170/fix_issue#3865
Export: fix issue #3865 - cmsis-dap swd
2017-03-03 14:52:10 +00: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
Martin Kojtal e116b38c8d Export: fix issue #3865 - cmsis-dap swd
From JTAG to SWD by default. This was causing flashing error.
2017-03-02 12:52:35 +00:00
Jimmy Brisson d2f2603892 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-01 14:16:12 -06: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
Liviu Ionescu 5b7a54e21c add jinja options at caller 2017-01-27 09:56:59 +02:00
Liviu Ionescu 2322f1532e Merge remote-tracking branch 'origin/master' 2017-01-26 22:43:38 +02:00
Liviu Ionescu 207dd311cc Merge remote-tracking branch 'ARMmbed/master' 2017-01-26 17:20:15 +02:00
Martin Kojtal 23647442fb Merge pull request #3601 from theotherjimmy/clean-export-dir
Clean export dir
2017-01-26 10:36:38 +02:00
Martin Kojtal 57ec7493f2 Merge pull request #3608 from ilg-ul/jinja
Exporters: make jinja engine strict
2017-01-26 10:32:55 +02: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
Martin Kojtal 17e9131a52 Merge pull request #3574 from c1728p9/fix_invalid_assert
Fix invalid assert in exporters
2017-01-26 10:24:09 +02:00
Brian Daniels 35137bbe42 Fixing printing for build step 2017-01-20 14:32:55 -06:00
Brian Daniels 8edc61d244 Breaking up clean command to avoid command limit 2017-01-20 13:21:06 -06:00
Brian Daniels a23b507c32 Fixing build function for gnuarmeclipse exporter 2017-01-19 18:30:07 -06:00
Brian Daniels 04bacc7d11 Enabling parallel builds by default 2017-01-19 18:29:44 -06:00
Liviu Ionescu dc6f9342ae gnuarmeclipse: fix windows paths 2017-01-20 00:46:00 +02:00
Jimmy Brisson 87ee33d56b Allow keyword arguments to jinja env from exporters gen_file 2017-01-19 08:00:03 -06:00
Jimmy Brisson 6230d78738 Fix undefined keys in CMSIS exporter 2017-01-19 04:02:29 -06:00
Jimmy Brisson 526e592de5 Fix all undefined key errors in iar exporter 2017-01-19 03:54:10 -06:00
Liviu Ionescu 36de50d28a Exporters: make jinja engine strict
- configure the jinja Environment to raise exception when substitution
variables are not defined
- trim spaces and lines, to avoid empty lines in generated files
2017-01-18 19:31:59 +02:00
Liviu Ionescu f82fa9310e Merge remote-tracking branch 'ARMmbed/master' 2017-01-18 19:13:25 +02:00
Liviu Ionescu 0c6381ff25 rename short named variables 2017-01-18 19:09:16 +02:00
Liviu Ionescu 4f17c95925 tentative build() implementation 2017-01-18 14:39:50 +02:00
Liviu Ionescu cc3fe4c73e all options parsed, build functional 2017-01-18 01:54:04 +02:00
Jimmy Brisson 4a08fd5112 Move sw4stm32 into its own dir 2017-01-17 14:47:36 -06:00
Jimmy Brisson beb9c6f4ec Move simplicity to its own dir 2017-01-17 14:47:19 -06:00
Jimmy Brisson 3489b14643 Use sys_libs from mbedToolchain in Makefiles 2017-01-17 13:57:37 -06:00
Jimmy Brisson 70aaaa9367 Move zip into its own dir 2017-01-17 12:39:39 -06:00
Jimmy Brisson 084c93b3b9 Move KDS to its own directory 2017-01-17 12:39:11 -06:00
Jimmy Brisson ad58ec47e0 Move e2studio into its own folder 2017-01-17 12:38:40 -06:00
Jimmy Brisson eda115dad9 Move atmelstudio to its own directory 2017-01-17 12:37:54 -06:00
Jimmy Brisson fdfbde8051 Move DS_5 into its own directory 2017-01-17 12:37:20 -06:00
Jimmy Brisson 13b2a95d3a Move coide into its own directory 2017-01-17 12:36:40 -06:00
Jimmy Brisson 17f691c54f Move codered to its own directory 2017-01-17 12:35:54 -06:00
Martin Kojtal 04a31f3b39 Merge pull request #3534 from sarahmarshy/export-debug
Turn on debugging by default when exporting. Remove optimizations for IAR and Uvision
2017-01-16 16:49:39 +00:00
ccli8 867decb4ee [NUC472/M453] Support exporting IAR project 2017-01-16 10:35:34 +08:00
Liviu Ionescu 8266a76c22 convert windows paths to unix 2017-01-13 11:09:28 +02:00
Liviu Ionescu 725fe49a18 .cpproject: make include files discoverable by indexer
- make defined symbols discoverable by indexer (just to be sure)
2017-01-13 11:08:29 +02:00
Russ Butler 06ca004bfa Fix invalid assert in exporters
Assert that the length is greater than one rather than the value
itself. This bug was introduced in the commit:
329be06ad0 -
"exporters - group by directories in prj root"
2017-01-12 11:25:09 -06:00
Liviu Ionescu 9e84338178 Compute source folders exclusions. 2017-01-12 18:10:56 +02:00
Anna Bridge ccab2c5dae Merge pull request #3562 from theotherjimmy/alpha-groups
Alphabetize UVision groups
2017-01-12 16:06:52 +00:00
Anna Bridge 6ed97abdd2 Merge pull request #3532 from janjongboom/eclipse-debug
Eclipse debug fixes (build w/ DEBUG=1 and load symbols)
2017-01-12 16:01:28 +00:00
Liviu Ionescu ed513caae2 Make uids unique for each call
The initial {{uid}} was evaluated once. To force an evaluation for
each call, use an object property {{u.id}}.
2017-01-11 20:47:24 +02:00
Sarah 54fd40f1da Turn off optimizations for uvision and IAR 2017-01-10 15:30:31 -06:00
Jimmy Brisson 27e4e7d8a8 Change sorting to ignore case 2017-01-10 15:30:03 -06:00
Jimmy Brisson 36e5fbf136 Asciiabetize the files within a group 2017-01-10 15:18:42 -06:00
Jimmy Brisson 4d6918bd27 Alphabetize UVision groups 2017-01-10 14:50:57 -06:00
Liviu Ionescu 81015928d9 Use NotSupportedException 2017-01-10 22:40:03 +02:00
Liviu Ionescu 8860007a3c Add GNU ARM Eclipse exporter 2017-01-10 21:36:20 +02:00
Russ Butler 329be06ad0 exporters - group by directories in prj root
Update exporter grouping code to group by directories in the root
of the project rather than by the parent directory of each file. This
reduces the number of groups and allows all mbed-os code to reside
in its own folder.
2017-01-10 11:42:36 -06:00
Sam Grove 3a326c0b94 Merge pull request #3521 from theotherjimmy/refurbish-embitz
Repair the Emblocks exporer and rename to EmBitz
2017-01-09 11:28:59 -06:00
Jan Jongboom 1a21696924 Eclipse: Symbols should also be loaded when starting a debug session 2017-01-08 11:15:32 +01:00
Franz Schnyder 75a61dfe78 Fix review requests
- Shorten variable name
- Use comprehension to format include paths
2017-01-05 18:17:46 +01:00
Franz Schnyder b668185339 Correctly format include paths for eclipse export
Eclipse CDT expects the include paths to include the project name like '/<project>/<include-path>' for workspace include directories.
See issue #3529.
2017-01-05 14:20:54 +01:00
Jimmy Brisson b8b4131a4a Repair the Emblocks exporer and rename to EmBitz
* Rename because the tool has been renamed
 * Removed duplicate symbol definitions
 * Removed common flags from ld flags (common are c/c++ only)
 * Moved EmBlitz to it's own folder
2017-01-03 15:17:23 -06:00
Jimmy Brisson 63c650903c Improve error message when exporting for make without a linker script 2016-12-20 14:11:58 -06:00
Sam Grove 8966d1584b Merge pull request #3415 from bridadan/fix_make_echo
[make exporters] Adding quotes to echo statements
2016-12-15 10:31:34 -06:00
Sam Grove 6849fd9c06 Merge pull request #3413 from theotherjimmy/iar-def-typo
Deduplicate IAR exporter templates and enable a few more targets
2016-12-15 10:30:22 -06:00
Jimmy Brisson e29135ed1c Remove special case for RZ-A1H 2016-12-12 18:46:47 -06:00
Jimmy Brisson 80d47e21ff Remove special case template for F746ZG 2016-12-12 18:20:03 -06:00
Jimmy Brisson 2481c468ce Update IAR template and STM M7 part options 2016-12-12 15:00:05 -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
Jimmy Brisson c638d2cdcb Fix typo in IAR definitions 2016-12-09 11:41:11 -06:00
Martin Kojtal 8f138fc27b Merge pull request #3355 from sarahmarshy/iar-no-cmsis
IAR export will not fail in the absence of a CMSIS pack
2016-12-09 15:33:33 +01:00
Sarah Marsh ab23c00b08 Catch specific exception for TargetNotSupported 2016-12-07 18:05:29 -06:00
Sarah Marsh dc864132ab IAR export will not fail in the absence of a CMSIS pack 2016-12-02 10:46:38 +08:00
sarahmarshy abd948fa6d [Exporters] Fix generic ARM CPU target in uvision
Generic CPU target not found correctly, because it was not accessing the Cache's index.

@theotherjimmy
2016-12-01 10:55:28 +08:00
Martin Kojtal 9da1ff5290 Merge pull request #3114 from sarahmarshy/uvision-filetype-fix
Fix issue with unrecognized uvision file types
2016-11-29 18:09:09 +01: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 a6f5233f45 [exporters] update uvision teamplates so build artifacts end up in BUILD directory, not .build 2016-11-18 00:23:18 -06:00
Sam Grove 7297fdf3f6 [exporters] update iar teamplates so build artifacts end up in BUILD directory, not .build 2016-11-18 00:23:09 -06:00
Sam Grove 6bee31eaad [exporters] make sure to clean .build and BUILD when testing uvision 2016-11-18 00:22:43 -06:00
Sam Grove 116d8dffdd [exporters] make sure to clean .build and BUILD when testing iar 2016-11-18 00:22:35 -06:00
Sam Grove 72cdf9d16f [exporters] iar build artifacts in BUILD directory, not .build 2016-11-18 00:22:21 -06:00
Sam Grove 0d3e9f0968 [exporters] make sure to clean .build and BUILD 2016-11-18 00:21:55 -06:00
Anna Bridge 96b3590248 Merge pull request #3222 from theotherjimmy/make-print-executable
[Export - Make] Add message that informs the user which hex to flash
2016-11-10 17:01:20 +00:00
Sam Grove e175f619b2 Merge pull request #3010 from nuket/fix-uvision-hpp
Add .hpp to list of Uvision Exporter extensions
2016-11-09 15: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
Sarah Marsh b1bdf71749 Fix issue with unrecognized uvision file types 2016-11-04 10:59:09 -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
Sarah Marsh 406ddf0674 Exporter documentation 2016-11-03 11:53:23 -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 d8fc362c11 Make ArmPackManager cache a static variable (to avoid reading index.json for each target). 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
Brian Daniels 5762f7c17e Updating IAR definition for the NCS36510 for IAR EW v7.8 2016-10-31 18:28:34 -05:00
Martin Kojtal a0ca7eba07 Merge pull request #3092 from bridadan/parallelize-iar-build-system
[tools + tests] Adding parallelized build option for iar and uvision exporters
2016-10-24 18:26:07 +02:00
Brian Daniels d192491191 Making IAR exporter build test parallelized 2016-10-20 16:11:03 -05:00
Jimmy Brisson 7b15984483 Update pack-derived files, and add safely test 2016-10-20 09:37:02 -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
Sam Grove ff2a7db3f2 Merge pull request #3067 from theotherjimmy/checkin-pack-index
Arm-Pack-Manager - Checkin pack index
2016-10-19 16:49:59 -05:00
Jimmy Brisson 1a4dabd65d Account for different linker flags across the compilers 2016-10-19 14:21:11 -05:00
Martin Kojtal 03fc9f4c92 Merge pull request #3070 from theotherjimmy/iar-debugging
Exporters - Update the IAR debug template to version 7.70.1
2016-10-19 13:21:28 +01:00
Martin Kojtal 1339f0dede Merge pull request #3060 from theotherjimmy/sw4stm32-fix
[exporters] Fix traceback in SW4STM32 from incorrect use of core
2016-10-19 13:10:54 +01:00
Sam Grove d6831b3386 Merge pull request #3063 from theotherjimmy/make-srec-print
[Exporters] Add quick print to the makefile when srec_cat is required
2016-10-19 05:51:04 -05:00
Sam Grove 9138f62742 Merge pull request #3052 from theotherjimmy/name-eclipse-exporters
Exporters - Name the eclipse exporters and remove relpath computations
2016-10-19 05:49:46 -05:00
Sam Grove 44eca95c3d Merge pull request #3028 from maclobdell/ncs36510_exporter_definitions
add ncs36510 exporter support for IAR
2016-10-19 05:47:13 -05:00
Jimmy Brisson a9d63b2365 Update the IAR debug template" 2016-10-18 16:00:58 -05:00
Jimmy Brisson 167ed2bc12 check in a copy of the arm-pack-manager index and use it 2016-10-18 13:56:17 -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
Jimmy Brisson 25ca0e3cfb Fix traceback from incorrect use of core 2016-10-18 10:29:37 -05:00
Martin Kojtal 9976738882 Merge pull request #3047 from sarahmarshy/iar-defines
Remove k64f defines from IAR templates
2016-10-18 10:45:14 +01:00
Jimmy Brisson c64446dc39 Remove unneeded relpath calculations 2016-10-17 14:51:28 -05:00
Jimmy Brisson 2912522930 Exporters - Name the eclipse exporters 2016-10-17 14:35:26 -05:00
Sarah Marsh e001dd1080 Removed k64f defines from templates 2016-10-17 10:52:58 -05:00
maclobdell 014df32625 add ncs36510 exporter support 2016-10-14 11:45:24 -05:00
Max Vilimpoc 7faee9099e Add .hpp to list of Uvision Exporter extensions 2016-10-13 13:12:18 +02:00
Sarah Marsh 246335af92 NRF52_DK support for IAR exporter 2016-10-11 18:25:07 +01:00
Sarah Marsh e8b34282cb Minor formatting changes 2016-10-04 19:34:52 -05:00
Sarah Marsh 51b13c3ca7 -Oh flag removed from IAR. Optimization set in GUI. 2016-10-04 15:07:41 -05:00
Sarah Marsh fd86fef205 [uvision] Flash DLL string/debug
Versioning for arm-pack-manager
2016-10-04 14:26:45 -05:00
Sarah Marsh 2a907d296d Fix Uvision CPU type error for DP and FPU targets. 2016-10-04 14:13:36 -05:00
Sarah Marsh b861c36e41 Removed IAR export support for invalid IAR targets.
Fixed naming of one target selection.
2016-10-04 14:13:36 -05:00
Sarah Marsh 9bec4181d9 Uvision FPU setting added to template 2016-10-04 14:13:36 -05:00
Sarah Marsh 4bc70c0c5f Remove static destruction flag 2016-10-04 14:13:36 -05:00
Sarah Marsh fa148578d2 Uvision5 => Uvision or Uvision5 2016-10-04 14:13:36 -05:00
Sarah Marsh ab050a2319 Cpu type set in uvision template 2016-10-04 14:13:36 -05:00