Commit Graph

55 Commits (c27e644b967a8aecb44fa0cebfc74780c1f4acde)

Author SHA1 Message Date
Olli-Pekka Puolitaival aa1d16e871 Python3 fixes 2019-08-15 10:06:41 +03:00
Evelyne Donnaes 7954ad3dd9 Revert commit 3010aaa253 (diff-1a477b054b847ec75ac3bf22194a3335) that modified template for partial profile 2019-08-13 12:57:55 +01:00
Evelyne Donnaes 050a338771 Addressed review comments, in particular:
* Fixed wrapper functions for IAR
* Fixed and renamed profile to minimal-printf.json
* Moved minimal-printf under platform
* Removed minimal-printf/mbed_lib.json
* Modified exporter template to work with partial profile
* Prevented optimization of printf to avoid compiler function substitution
2019-08-01 12:42:24 +01:00
Leszek Rusinowicz 9b1db83eaa Added required changes outside of TARGET_Cypress tree:
1. In drivers/Timer.cpp make sure that hardware timer is initialized outside of critical section.
   This is because on PSoC 6 hardware resources are shared between both cores
   and we have to make sure that the other core is not already using a particular resource.
   This mechanism is based on interprocessor communication taht cannot be handled iside of
   critical section.
2. Added support for post-binary hook function for PSoC 6 targets, so the hex image for M0+ CPU core
   can be merged with M4 core image for the final image.
3. Added possibility to use hook function from exportes, so the M0+ hex image could be included
   in the generated project.
4. Included hex images in the build dependency list, so the update of image is catched by the
   build process.
2018-11-01 20:19:21 +01:00
Jimmy Brisson 98e0faa551 Remove unused local 2018-10-02 09:56:10 -05:00
Jenny Plunkett 5cb1ecd143 Remove reference to "mBed"
Removed another reference to "mBed"

Another "mBed"
2018-08-28 13:05:07 -05:00
Phyo Kyaw 87304f8812 Updated to include user defined static lib files in the Linker object files path.
### Description

This is to fix linker not finding symbols declared in object files inside static library files.

For this case throwing:-

> rm-none-eabi-g++: error: unrecognized command line option '--wrap=main'; did you mean '--warn-main'?

For this case to include libmbed.a which contains

mbed_alloc_wrappers.o:
         U __real__calloc_r
         U __real__free_r
         U __real__malloc_r
         U __real__memalign_r
         U __real__realloc_r
00000000 T __wrap__calloc_r
00000000 T __wrap__free_r
00000000 T __wrap__malloc_r
00000000 T __wrap__memalign_r
00000000 T __wrap__realloc_r
00000000 T free_wrapper
00000000 T malloc_wrapper
00000000 T mbed_stats_heap_get
         U memset

This patch also changed the library order to system and then user.

-lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -lmbed

Resolves: #7155

### Pull request type

    [ x ] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Feature
    [ ] Breaking change
2018-08-13 09:19:47 +01:00
Jimmy Brisson 3b7a5bb35e Filter libraries by extension in exporters 2018-07-16 14:11:09 -05:00
Jimmy Brisson 6a87510192 Correct several exporter uses of file_basepath with a dedupe 2018-07-16 14:11:08 -05:00
Jimmy Brisson b60729d147 Move filter dot into exporter base class 2018-03-27 14:30:36 -05:00
Jimmy Brisson 14255ca113 Correct syntax for mbed export in Py3 2018-03-16 13:08:20 -05:00
Jimmy Brisson bd5b34f59c Correct exporter clean behavior 2018-02-21 09:28:24 -06:00
Cruz Monrreal 863b40d19c
Merge pull request #6121 from theotherjimmy/mbedignore-append
Avoid blowing away .mbedignore files in exporters
2018-02-20 10:48:21 -06:00
Jimmy Brisson 8d7311d38d Avoid blowing away .mbedignore files in exporters 2018-02-16 14:45:55 -06:00
Jan Jongboom ecc07c3217
gnuarmeclipse exporter uses mBed instead of proper casing 2018-02-15 12:24:01 +08:00
Jimmy Brisson cca4425af6 Python2+3: iteritems -> items 2018-02-05 11:04:36 -06:00
Jimmy Brisson 6eebc71d99 Force config resolution in gnuarmeclipse exporter 2018-01-31 10:04:34 -06:00
Mathias Giacomuzzi ca5bcf7592 remove the first join 2017-09-27 12:31:45 +02:00
Mathias Giacomuzzi 0947db6400 add quotation marks for compiler path 2017-09-26 11:01:01 +02:00
Phyo Kyaw 2cbca704d8 e2 studio exporter update 2017-08-23 17:00:55 +01: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 c8e6cf5bdd Collect ignores from scan resources and use in exporetrs 2017-07-26 14:31:22 -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 81446f69be Generate exporter suppored lists when needed 2017-07-07 14:45:32 -05: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
amq 2b70e8f061 Fix unresolved include of mbed_config.h in Eclipse 2017-06-22 13:51:26 +02:00
Jimmy Brisson 64baee8ac7 Correct profile handling in GNUARMEclipse exporter 2017-06-09 00:03:23 -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 6fa1de2161 Generate GNU ARM Eclipse's .mbedignore with Jinja2 2017-04-11 14:11:44 -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
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 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
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
Liviu Ionescu 9101ea4da5 add --launcher.suppressErrors for headless Eclipse 2017-02-09 19:11:28 +02: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
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
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
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
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
Liviu Ionescu 8266a76c22 convert windows paths to unix 2017-01-13 11:09:28 +02:00