Anna Bridge
29d59edd55
Merge pull request #4129 from bridadan/remove_old_fs_test
...
Removing old filesystem test
2017-04-20 15:57:12 +01:00
Anna Bridge
a1d1a6037c
Merge pull request #3888 from 0xc0170/fix_add_examples
...
tools: add new examples
2017-04-20 15:38:02 +01:00
Sam Grove
247238d993
Merge pull request #4167 from 0x6d61726b/patch-2
...
Replace deprecated import and correct typo in c_blob_mbed.tmpl
2017-04-19 02:28:34 -05: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
0cfa96cf55
Merge pull request #4170 from theotherjimmy/fix-include-paths
...
Fix include paths for Windows builds
2017-04-19 02:19:23 -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
fb8fda3cee
Merge pull request #4097 from bulislaw/build_debug_macro
...
Debug build flag + change to sleep behavior in debug mode
2017-04-18 15:05:02 -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
157023342f
Add license to configuration header
2017-04-12 10:50:43 -05:00
Jimmy Brisson
212a3dfd12
Move config to own dir
...
I also broke the config header template into it's own file. Further, I
fixed a bug in the config header generation where if no macros, builds
would crash.
2017-04-12 10:50:38 -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
7c40343e74
Fix include paths for Windows builds
2017-04-11 14:26:14 -05:00
Jimmy Brisson
6fa1de2161
Generate GNU ARM Eclipse's .mbedignore with Jinja2
2017-04-11 14:11:44 -05:00
0x6d61726b
5be47f1e2b
Update c_blob_mbed.tmpl
...
- critical.h is deprecated, replaced with "platform/mbed_critical.h"
- typo corrected
2017-04-11 20:30:34 +02:00
Sam Grove
e3edbabbcc
Merge pull request #4107 from theotherjimmy/config-name-app
...
Allow configuration of artifact name in app config
2017-04-10 16:37:34 -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
cef31a7fa6
Merge pull request #4106 from theotherjimmy/fix-typo-toolchain
...
Fix a scoping typo in toolchains
2017-04-10 10:51:07 -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
Bartek Szatkowski
cc71f3f5d4
Introduce MBED_DEBUG macro for debug build profile
2017-04-10 11:40:04 +01:00
Jan Jongboom
336e036e74
Visual Studio Code exporter
2017-04-10 09:26:25 +02:00
Anna Bridge
a514216c8b
Merge pull request #4098 from theotherjimmy/fail-on-bad-config
...
Raise error when mbed_app.json is bad
2017-04-07 12:35:49 +01:00
Matteo Italia
2baa215487
Updated year in license header
2017-04-06 23:19:52 +02:00
Brian Daniels
4d4e4a3ef9
Removing old filesystem test
2017-04-06 14:18:37 -05: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
Sam Grove
14eadf389e
Merge pull request #4085 from wdwalker/master
...
Fix mbed-cli issue #468 . Add LPCTargetCode.lpc_patch to POST_BINARY_WHITELIST
2017-04-06 10:47:12 -05:00
Sam Grove
caded3805e
Merge pull request #4072 from seppestas/patch-3
...
Removed superfluous space
2017-04-06 10:40:58 -05:00
Sam Grove
2ab3eda361
Merge pull request #4070 from theotherjimmy/optionally-add-regions
...
Elide adding regions to profile when empty
2017-04-06 10:35:05 -05:00
Sam Grove
fdf1ed623e
Merge pull request #3994 from theotherjimmy/fix-output-ext
...
Use OUTPUT_EXT to pick binary type
2017-04-06 08:37:52 -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
6a646eb4b2
Allow configuration of artifact name in app config
2017-04-04 14:36:01 -05:00
Jimmy Brisson
d5ecd7adf8
Fix a scoping typo in toolchains
2017-04-03 15:43:22 -05:00
Jimmy Brisson
74998d649a
Change target hooks to use correct input format
...
The input format is now determined by the OUTPUT_EXT key in
targets.json, and defaults to "bin" when not specified. This changes the
Teensy3_1 and the NRF51x targets' post bulid hooks.
Teensy3_1 just converted to intelhex, so we do nothing instead.
NRF51x assumed that it was taking in a bin format file. I made it detect
file type by extension.
2017-04-03 14:54:38 -05: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
Jimmy Brisson
1faf44e82b
Raise error when mbed_app.json is bad
2017-03-31 15:09:17 -05:00
Michael Bartling
91ed457ce0
resolved import conflict
2017-03-31 09:56:58 -05:00
Michael Bartling
aebd9810f9
make.py -S toolchains now just prints the toolchains, no more mbed OS x
2017-03-31 09:55:08 -05:00
Michael Bartling
111a65b53d
Added ability to list ides
2017-03-31 09:55:08 -05:00
Michael Bartling
f142939937
Added ability to list targets and toolchains in a non matrix form.
...
This is super helpful for the tab completion generation script as we no
longer have to parse the matrix output.
2017-03-31 09:54: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
Seppe Stas
886713d290
Removed superfluous space
...
The extra space between "--no_wrap_diagnostics" and "-e" is inconsistent with the development and release targets.
It bugs people (like me) that have little OCD tics 😉 .
2017-03-30 10:19:36 +02:00
Sam Grove
782395dfa7
Merge pull request #4049 from tung7970/fix-tools
...
tools - turn off page alignment of sections
2017-03-29 23:05:47 +01:00
Jimmy Brisson
09afe23762
Upgrade OUTPUT_EXT and use it to pick binary type
...
targets.json contained a key for some targets, `OUTPUT_EXT`, which I
moved to `Target`, the root of all targets. Following on that, the tools
now use this extension provided by `OUTPUT_EXT` to determine the file
type of the output executable.
2017-03-29 16:46:21 -05:00
Sam Grove
405ab0c005
Merge pull request #4000 from theotherjimmy/config-typechecking
...
Add some type checking of configs
2017-03-29 22:39:57 +01:00
Sam Grove
c958eb45bb
Merge pull request #3998 from theotherjimmy/remove-dead-code
...
Remove dead code in tools
2017-03-29 22:28:29 +01:00
Sam Grove
432162f9e3
Merge pull request #3997 from theotherjimmy/remove-project-api
...
Move contents of project_api to export/__init__.py
2017-03-29 22:26:59 +01:00
Sam Grove
8784913052
Merge pull request #3995 from theotherjimmy/targets-refactor
...
Move target related code into it's own directory
2017-03-29 22:25:46 +01:00
Jimmy Brisson
8b3f08ed49
Elide adding regions to profile when empty
2017-03-29 15:49:16 -05:00
Jimmy Brisson
6a3c71c002
Update gnuarmeclipse to preprocess linker scripts
2017-03-29 14:52:11 -05:00
0xc0170
137e47f5e8
tools: add new examples
...
Bootloader, bootloader blinky and fat filesystem examples added.
2017-03-29 17:27:11 +01:00
Tony Wu
72589dfef3
tools - turn off page alignment of sections
...
By default, ld sets page alignment of sections to 0x8000, which bloats
up elf file size. This behavior is unnecessary for MCU.
Example:
1. page alignment on
mbed.elf file size 144936
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
LOAD 0x008000 0x00000000 0x00000000 0x00400 0x00400 R 0x8000
LOAD 0x008400 0x00000400 0x00000400 0x00010 0x00010 R 0x8000
LOAD 0x008410 0x00000410 0x00000410 0x0ab3c 0x0ab3c RWE 0x8000
LOAD 0x018000 0x20000000 0x0000af4c 0x008d0 0x008d0 RW 0x8000
LOAD 0x01b81c 0x0000b81c 0x0000b81c 0x00000 0x00004 RW 0x8000
LOAD 0x020000 0x1fff0000 0x1fff0000 0x00000 0x00400 RW 0x8000
LOAD 0x0188d0 0x200008d0 0x200008d0 0x00000 0x08860 RW 0x8000
2. page alignment off
mbed.elf file size 91792
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
LOAD 0x000114 0x00000000 0x00000000 0x00400 0x00400 R 0x4
LOAD 0x000514 0x00000400 0x00000400 0x00010 0x00010 R 0x1
LOAD 0x000528 0x00000410 0x00000410 0x0ab3c 0x0ab3c RWE 0x8
LOAD 0x00b068 0x20000000 0x0000af4c 0x008d0 0x008d0 RW 0x8
LOAD 0x00b938 0x0000b81c 0x0000b81c 0x00000 0x00004 RW 0x1
LOAD 0x00b938 0x1fff0000 0x1fff0000 0x00000 0x00400 RW 0x1
LOAD 0x00b938 0x200008d0 0x200008d0 0x00000 0x08860 RW 0x8
Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-03-29 05:48:30 +08:00
Sam Grove
cd7abc019f
Merge pull request #3996 from c1728p9/algo_generation
...
Check in algo generation code
2017-03-27 10:32:14 +01:00
0xc0170
424fd78161
flash: fix flash algo generated - protect with DEVICE_FLASH
2017-03-26 17:59:40 +01:00
Anna Bridge
a49144a0b2
Merge pull request #3922 from adbridge/master
...
Fixed/improved error parsing from API messages.
2017-03-24 14:16:30 +00:00
Russ Butler
70f32526b3
Check in algo generation code
...
Check in scripts which are able to generate flash algos for supported
targets.
To initially download all packs the following command should be run:
"python extract.py --rebuild_all"
After that all supported targets can be rebuilt by running:
"python extract.py"
Finally, to rebuild an individual target you can used its pack name:
"python extract.py --target STM32F302R8"
2017-03-23 13:57:12 -05:00
Jimmy Brisson
75ec7b744e
Remove dead code in tools
2017-03-23 11:39:40 -05:00
Jimmy Brisson
d5637bb785
Add some type checking of configs
...
Before, the types were not checked and just expected. The old behavior
would cause lots of tracebacks, or, much worse, convert things like:
```
{
"target_overrides": {
"*": {
"target.macros_add": "CONFIG_GPIO_AS_PINRESET"
}
}
}
```
into a definition of each of the letters as macros that expand to
nothing, causing massive compilation problems.
I resolved this by adding some type checking to the config data. Now
there is a type check for most of the fields within a library and
application configurations.
2017-03-22 16:55:07 -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
Jimmy Brisson
f590dc11bd
Move target related code into it's own directory
...
This should make it easier to navigate the code base
2017-03-22 15:20:09 -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
Sam Grove
16304ae18d
Merge pull request #3924 from theotherjimmy/fix-export-build-dir
...
Don't set the build_dir to anything on export
2017-03-22 12:04:34 +00:00
Anna Bridge
6850ff06b9
Updated script to add an extra feature and general improvements.
...
Added the ability to specify a branch to update rather than a fork
Replaced print commands with the use of a logger
Updated the run_cmd functions in line with previous improvements
2017-03-16 16:59:11 +00:00
Anna Bridge
828b7ac7c6
Add an ignore list so that sets of test, target can be excluded from the
...
compilation set.
2017-03-16 15:46:20 +00:00
Anna Bridge
9649d36dbb
Added running total for target being compiled.
2017-03-14 17:46:53 +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
Anna Bridge
63fb7bd58d
Merge pull request #3931 from c1728p9/arm_pack_manager_improvements
...
Arm pack manager improvements
2017-03-14 14:47:35 +00:00
Anna Bridge
ae10ca8787
Merge pull request #3895 from theotherjimmy/find-exec-in-path
...
Use PATH env variable when gcc found in PATH
2017-03-14 14:41:32 +00:00
Phyo Kyaw
a301527c71
This change is for RZ_A1H and VK_RZ_A1H target.
2017-03-14 14:08:01 +00:00
Anna Bridge
ca6bfe0cfa
Review comments: Add a child logger, close json file after reading, minor
...
formatting updates.
2017-03-14 12:45:56 +00:00
Russ Butler
cefdce2a37
tools: fix usage of aliases.json
...
Load aliases.json from mbed-os rather than from a temporary
directory.
2017-03-13 18:05:28 -05:00
Russ Butler
47ee9677e5
tools: Rebuild index.json and aliases.json
...
Rebuild the json files used by arm-pack-manager now that a bug in
version selection has been fixed.
2017-03-13 16:32:57 -05:00
Russ Butler
fa38fbb7b3
tools: fix package version in arm pack manager
...
Use python's LooseVersion to get the correct version.
2017-03-13 16:32:53 -05:00
Russ Butler
44bc754be5
tools: Allow all flash algos to be retrieved
...
Add an 'all' parameter to get_flash_algorthim_binary. When set
an enumerator of all flash algorithms is returned. rather than just
the first flash algorithm.
2017-03-13 16:32:49 -05:00
Jimmy Brisson
a937ee00f2
Fix toolchain path names in Mbed 2 builds
...
I accidentally broke only uARM mbed 2 builds. Here is the story: When
scanning for resources, toolchains look for any `TOOLCHAIN_<classname>`
folders to include. These `<classname>`s mostly match the name passed in
on the command line with one exception: `uARM` on the command line maps
to `ARM_MICRO` the class. This would not be a problem except for the bug
that I introduced in a prior commit. The bug is that the mbed2 library
builds will use the name passed in on the command line to construct
`TOOLCHAIN_<cli-name>`. This will not match when scanning.
I fixed it by translating the `<cli-name>` into the `<classname>`.
2017-03-10 11:08:56 -06:00
Anna Bridge
e3dbb82634
Fixed/improved error parsing from API messages.
...
Fixed results output summary.
General tidy up of long lines.
Added a new field to json file, target_list, to allow the user to
override the set of targets used for the compilation.
2017-03-10 12:21:32 +00:00
Martin Kojtal
e9158f4782
Merge pull request #3852 from theotherjimmy/ignore-build-dir
...
Ignore build directory from scan resources
2017-03-09 15:45:47 +00:00
Martin Kojtal
93b6a21db6
Merge pull request #3897 from theotherjimmy/supress-levenshtein
...
Ignore FuzzyWuzzy warnings
2017-03-09 15:33:25 +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
Jimmy Brisson
4408c01522
Add unit test for gcc path specifications
2017-03-07 11:41:56 -06:00
Jimmy Brisson
b2901098cd
Update test_api call to prepare_toolchain
...
An earlier patch in this series changed the API for
`build_api.prepare_toolchain`. This commit updates the `find_test`
function to call `prepare_toolchain` correctly.
2017-03-06 18:37:46 -06:00
Jimmy Brisson
d20bcba89b
Remove static analysis scan
...
An earlier patch in this series relies on the assumption that all
toolchain construction goes through `prepare_toolchain`. This is still
not the case. The only remaining user of the `mbedToolchain` object that
does not go through `prepare_toolchain` is the static analysis scanner.
It's basically dead-code at this point. I say we remove it. So this
patch removes it.
2017-03-06 18:29:46 -06:00
Jimmy Brisson
51aa3330dd
Re-factor mbed2 lib builds to use prepare_toolchain
...
The prior patch in this series makes the assumption that any building
will go through `build_api.prepare_toolchain`. This was not a valid
assumption for the mbed2 build process. So, instead of maintaining 2
ways of using the toolchain classes, I elected to unify on
`prepare_toolchain`.
2017-03-06 18:23:16 -06:00
Jimmy Brisson
fbb6f71be8
Ignore build directory from scan resources
...
This is a bug fix for the following bug (Github issue #437 ):
If two builds were run specifying a non-default build folder, the second
build would fail to link with duplicate symbols and may not fit on the
device. The root of this problem is that these non-default build folders
are not ignored by scan-resources, and therefore included in the build.
We fix this bug by ignoring the build directory passed into the tools.
2017-03-06 17:10:57 -06:00
Jimmy Brisson
f306ffa4ee
Ignore FuzzyWuzzy warnings
...
Nobody actually cares.
2017-03-06 17:07:14 -06:00
Jimmy Brisson
a5745cadd9
Use PATH env variable when gcc found in PATH
...
Resolves the github issue #3790 : Blinky fails to build (on Mac) after
addition of linker script preprocessing feature. Paraphrasing, this
issue is that Homebrew on mac does not install `arm-none-eabi-gcc` in
the same location as `arm-none-eabi-cpp`, the C Pre-Processor. The tools
prior to this commit, and after turning on the pre-processing of the
linker-script will fail on any Mac homebrew installed toolchains.
This commit resolves the above issue by allowing the toolchain's path to
the executable to remain empty after a call to `check_executable`. When
this path is empty, the tools will search the PATH environment variable
for the executable.
2017-03-06 15:24:58 -06: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
9844a390d9
Merge pull request #3762 from simonqhughes/ms_20170213_fs_integration
...
STORAGE: Merging feature-storage branch commits to master
2017-02-24 11:37:42 -06:00
Sam Grove
2e5f2e96fb
Merge pull request #3818 from adbridge/master
...
Add new script to automate compilation of all mbed-os 2 targets in online IDE
2017-02-23 15:44:41 -06:00
Anna Bridge
415486e780
Removed unecessary exception and replaced with a logging error.
2017-02-23 19:02:55 +00:00
Anna Bridge
e95092c91a
Address review comments
...
Replace use of print and write with logging (with different levels).
Add the ability to choose the logging level on the command line.
Fix the exclusion of uARM from compilation.
Remove print_on_fail from run_cmd() functions, now use logging.
2017-02-23 17:51:23 +00:00
Simon Hughes
7b7db588ff
STORAGE: remove RTOS_9 test from tests.py.
2017-02-23 16:39:53 +00:00
Simon Hughes
5a977eff30
STORAGE: PR 3762 fix to remove FAT_FS, SD_FS, FS_LIBRARY from tools scripts.
2017-02-23 16:39:46 +00:00
Simon Hughes
e43f667174
STORAGE: PR 3762 fix to remove FAT_FS, SD_FS, FS_LIBRARY from tools/libraries.py and tools/tests.py
2017-02-23 16:39:44 +00:00
Simon Hughes
840c77793b
STORAGE: Pull request 3762 review feedback changes.
...
- Fixing code formatting errors with astyle tool.
- Replaced use of TOOLCHAIN_xxx macros with compiler emitted macros.
- Added const to BlockDevice::get_xxx_size() member functions.
- Added documentation for FAT filesystem thread support.
- Added documentation for fat_filesystem_set_errno().
- Added documentation clarifying the reasons for errno/stat symbol definitions in retarget.h.
- Removed FAT filesystem from mbed 2 testing.
- Fixed FATMisc.h Copyright (c) 2016 year to 2017 as its a new file.
- Removed #ifndef NDEBUG from HeapBlockDevice.cpp.
- Removed unnecessary todo comment in retarget.cpp.
2017-02-23 16:39:42 +00:00
Simon Hughes
a79062f876
Remove build_travis.py NUCLEO_F412ZG usb tests which requires other commits.
2017-02-23 16:39:34 +00:00
Christopher Haster
90429f60c8
Fixed mbed 2 build_travis with block device
...
Conflicts:
tools/build_travis.py
2017-02-23 16:37:15 +00:00
Simon Hughes
5c7fdc13c7
FILESYSTEM: renamed features/TESTS/fs-fat features/TESTS/filesystem.
2017-02-23 16:30:23 +00:00
Simon Hughes
4acf33f436
FILESYSTEM: moved FAT filesystem implemenation to features/filesystem subdir, and fs-fat tests to features/TESTS.
2017-02-23 16:30:21 +00:00
Sam Grove
ba2176323c
Merge pull request #3733 from theotherjimmy/feature-bootloader
...
Enable boot-loader builds
2017-02-23 10:18:31 -06:00
Jimmy Brisson
d62f046e57
Fail bootloader builds on targets that don't support it
...
This patch will prevent building bootloader builds on targets that have
not yet had their linker scripts/scatter files changed to allow for the
ROM space shrinking expected by bootloader builds. At the point of this
patch, bootloader linker script modifications are only supported by the
NUCLEO_F429ZI, K64F, KL46Z, and Odin.
2017-02-22 18:27:23 -06:00
Jimmy Brisson
9a63bfb1fb
Enable boot-loader builds
...
To enable a boot-loader style application, override
"targets.bootloader_exec" or "targets.restrict_size" on a particular
target. These parameters are a bin or hex file, and an integer, in bytes,
respectively. If either override is present, then an application region
is created after the boot-loader region, when "targets.bootloader_exec"
is present, and before post-application, when "targets.restric_size" is
present. The size of the boot-loader region is read from the file
provided in the configuration.
2017-02-22 18:20:26 -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
Anna Bridge
251ef81719
Fix indentation level to be consistent.
2017-02-21 15:41:17 +00:00
Anna Bridge
42f98616e2
New script for automating the compilation of mbed-os 2 targets.
...
Usage: python tools/check_release.py
Run from the mbed-os directory.
For details on how the script works and how to set up the configuration
json file, please see the python file header.
2017-02-21 15:33:52 +00: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
9ea5702634
Merge pull request #3765 from theotherjimmy/remove-zip-dupes
...
Remove duplicate files in zipped exports
2017-02-17 09:19:12 -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
Sam Grove
69de788f94
Merge pull request #3712 from JojoS62/enable-GCC_CR-in-memmap
...
add GCC_CR as toolchain for memmap
2017-02-17 09:11:22 -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
Jimmy Brisson
467bac1997
Remove duplicate files in zipped exports
...
The zipping function of the exporters would unconditionally add all
files scanned by scan resources to a zip, including all of the files
associated with each feature. This would conflict with
`build_api.scan_resources` adding all of the files to the resources
object that correspond to the enabled features. To resolve this
difference in behavior, I made the zipping function oblivious to
features and had the upper level function, which has access to the
target configuration, do the proper merging.
2017-02-13 15:12:58 -06: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
9ae6f7aa49
Merge pull request #3730 from c1728p9/redirect_support
...
Add redirect support to toolchains
2017-02-09 09:51:32 -06:00
Sam Grove
cf19bb6ae8
Merge pull request #3727 from c1728p9/fix_error_handling
...
Fix access before variable defined bug in test_api
2017-02-09 09:50:07 -06: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
Sam Grove
942cf8cbf0
Merge pull request #3702 from bridadan/remove_old_directories
...
Remove old tool directories
2017-02-09 09:39:25 -06:00
Sam Grove
34de26dc3a
Merge pull request #3695 from c1728p9/fix_invalid_device_names
...
Enforce device_name is valid in targets.json
2017-02-09 09:39:05 -06:00
Sam Grove
59c2c4bd99
Merge pull request #3693 from bulislaw/rework_build_profiles
...
[Proposal] Simplify build profiles: debug and release only
2017-02-09 09:36:14 -06:00
Sam Grove
492db95be9
Merge pull request #3669 from bridadan/catching_assembler_errors
...
Adding case insensitive 'error' detection
2017-02-09 09:33:17 -06:00
Liviu Ionescu
b2638646b8
Merge remote-tracking branch 'ARMmbed/master'
2017-02-09 05:17:22 +02:00
Jimmy Brisson
c0f27597ec
Add redirect support to toolchains
...
We create an API for generating the linker flags needed to redirect
functions in an application
2017-02-08 17:34:35 -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
Jimmy Brisson
af4d848144
Use the C Pre-Processor on GCC Linker scirpts
...
This allows us to define parts of the linker script outside of the
linker script itself. In particular, we are interested in restricting
ROM to a subsection.
2017-02-08 17:26:36 -06:00
Russ Butler
32b9ada3ec
Enforce device_name is valid in targets.json
...
Add a CI test ensure that device_name exists inside the pack index.
2017-02-08 14:54:26 -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
Jimmy Brisson
83e843bd8c
Fix access before variable defined bug in test_api
...
The worker_result variable was not guaranteed to have a `'result'` or
`'reason'` key and accessing them before testing for them could result
in an error when they are not provided. This patch changes the checks to
prevent check for their existence before accessing them.
2017-02-08 13:56:43 -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
Sam Grove
160455c972
Merge pull request #3689 from adbridge/master
...
Updated to allow for new directory structure for mbed-dev source.
2017-02-07 10:39:22 -06:00
Sam Grove
3a99b4cb26
Merge pull request #3627 from javier-moreno-tridonic-com/feature-detailed-for-mbed
...
Memap detailed function also for mbed os modules
2017-02-07 10:32:28 -06:00
JojoS
649d8a1d15
add GCC_CR as toolchain for memmap
2017-02-07 15:05:32 +01:00
Bartek Szatkowski
40d3b22785
Build: Rework build profiles
...
Rename small.json to release.json, default.json to develop.json and make
it the default profile.
2017-02-07 11:41:16 +00:00
Brian Daniels
57e93a5bab
Fixing build step
...
* Cleaning up makefile
2017-02-07 04:55:51 +02:00
Brian Daniels
643f0e1c8f
Remove old buildbot config
2017-02-06 10:54:09 -06:00
Brian Daniels
17cbbe3748
Remove old exporter tests
2017-02-06 10:53:46 -06:00
Anna Bridge
293d049805
Updated to allow for new directory structure for mbed-dev source.
...
Fixed issue where some deleted files/folders where not being removed from
the repo.
Removed code no longer used/needed.
2017-02-03 16:50:45 +00:00
Brian Daniels
6be8278246
Adding case insensitive 'error' detection
...
GCC Assembler errors were being missed because it prints 'error'
with a captial 'E'. This change allows the 'e' to be either lower
case or upper case.
2017-02-02 12:27:59 -06:00
Sam Grove
65956d108e
Merge pull request #3677 from c1728p9/armcc_linker_flags
...
ARM - pass linker flags along to the linker
2017-02-02 11:05:59 -06: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
Sam Grove
5d946c46a5
Merge pull request #3653 from bridadan/fatal_error_detection
...
Adding fatal error detection to toolchains
2017-02-02 10:57:32 -06:00
Sam Grove
dd9b6451ef
Merge pull request #3632 from mbedNoobNinja/master
...
IDE Export support for platform VK_RZ_A1H
2017-02-02 10:54:11 -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
Russ Butler
660b221285
ARM - pass linker flags along to the linker
...
On the ARM toolchain linker flags specified in the build profile do
not get passed to armlink. This patch adds these flags to the
arguments sent to armlink.
2017-02-01 09:23:31 -06: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
bcostm
e397e44f9e
Enable USB tests in Travis build
2017-01-27 17:26:47 +01:00
Brian Daniels
3ad3a9f1d5
Adding fatal error detection to toolchians.
...
Before the toolchains would ignore error messages that contained the
string "Fatal error". This would lead to a silent failure unless the
compile command was ran with verbose options. This is now fixed.
2017-01-27 12:07:13 +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
d4fa863b9c
Merge pull request #3588 from c1728p9/arm-pack-manager
...
arm-pack-manager - fix tracebacks
2017-01-26 10:27:08 +02:00
Martin Kojtal
b9557aee12
Merge pull request #3587 from bridadan/fix_build_script_toolchain_check
...
Fixing toolchain executable not found error for build.py
2017-01-26 10:26:09 +02:00
Martin Kojtal
25ba021c63
Merge pull request #3578 from theotherjimmy/inherit-target-labels
...
Target system - Inherit names from target parents
2017-01-26 10:24:45 +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
Martin Kojtal
0ea544f143
Merge pull request #3560 from theotherjimmy/refactor-ignores
...
Refactor scan resources to account for base_paths
2017-01-26 10:23:14 +02:00
javier-moreno-tridonic-com
8ff17b9235
Update memap.py
2017-01-23 17:02:15 +01: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
Jimmy Brisson
81df273849
Move sys_libs into mbedToolchain class
2017-01-17 11:57:35 -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
Martin Kojtal
e592c8a8b2
Merge pull request #3571 from jeromecoutant/PR_DISCO_F769NI
...
DISCO_F769NI introduction
2017-01-16 16:38:20 +00:00
ccli8
867decb4ee
[NUC472/M453] Support exporting IAR project
2017-01-16 10:35:34 +08:00
Brian Daniels
938ac93496
Fixing toolchain executable not found error for build.py
...
Commit 19d56fd40f
removed the default file
paths for the toolchains. This was done under the assumption that the
top-level compile scripts were properly checking that the toolchain
executable was availble. The build.py script was doing this in the wrong
place. This commit rearranges the script a bit so the check is performed
properly.
2017-01-13 14:13:31 -06:00
Jimmy Brisson
5ccd0153ee
Correct revision compares
2017-01-13 12:14:20 -06:00
Jimmy Brisson
c14a5b94ec
Add docstrings
2017-01-13 12:01:26 -06:00
Jimmy Brisson
39a5caacab
Refactor scan resources to account for base_paths
2017-01-13 12:01:19 -06:00
Russ Butler
7a8964af6f
arm-pack-manager - fix tracebacks
...
Fix tracebacks from trying to read dictionary values that don't exist
and from incorrect variable names.
2017-01-13 11:54:27 -06: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
Jimmy Brisson
f2663876fc
Inherit names from target parents
2017-01-12 15:34:29 -06: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
209ac788c4
Merge pull request #3547 from SeppoTakalo/master
...
Add support for ethernet-only configuration with Nanostack.
2017-01-12 16:05:26 +00:00
Anna Bridge
236258bf05
Merge pull request #3546 from bcostm/dev_can_nucleo-f412zg
...
NUCLEO-F412ZG - Add CAN peripheral
2017-01-12 16:04:40 +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
Anna Bridge
b8e80d8867
Merge pull request #3528 from adbridge/master
...
Modify update command to directly edit the mbed-os.lib files for each example
2017-01-12 16:00:29 +00:00
jeromecoutant
66c3f8ed44
DISCO_F769NI: Add analog loop test support
2017-01-12 15:38:05 +01: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
Jimmy Brisson
2bf1f6bd04
Make the debug profile the default used for exporting
2017-01-10 15:33:33 -06: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
bcostm
f6c93d3241
Remove automated flag for MBED_29/30 tests
2017-01-10 11:22:51 +01:00
bcostm
ead72934ef
Add CAN feature and activate CAN tests for this platform
2017-01-10 11:22:51 +01:00
Anna Bridge
fb27b649c5
Review comments: Use os.rename rather that system mv command.
...
In prepare_fork(), change nested IF to neat command loop.
2017-01-09 17:56:20 +00: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
Sam Grove
ff49a8cdc1
Merge pull request #3538 from theotherjimmy/fix-export-tests
...
Remove deprecated clean argument
2017-01-09 10:33:35 -06:00
Sam Grove
1816f0b7dc
Merge pull request #3537 from bridadan/remove_project_defaults
...
Remove default -m and -i options for project.py
2017-01-09 10:31:10 -06:00
Sam Grove
613b92af04
Merge pull request #3531 from bittailor/fix-include-paths-for-eclipse-export
...
Correctly format include paths for eclipse export
2017-01-09 10:30:00 -06:00
Seppo Takalo
1a5d6d7f19
Add support for ethernet-only configuration with Nanostack.
...
This saves about 100kB of flash when using ethernet only configuration.
Otherwise only border router configuration was supporting ethernet.
2017-01-09 18:26:56 +02:00
Sam Grove
2c6fe1fe06
Merge pull request #3518 from bridadan/fix_test_macros_with_app_json
...
Preventing app_config from clobbering CLI macros
2017-01-09 10:23:14 -06:00
Sam Grove
3019688406
Merge pull request #3513 from bcostm/rtos_nucleo-f412zg
...
NUCLEO_F412ZG - Add platform in RTOS tests + build_travis
2017-01-09 10:19:27 -06:00
Jan Jongboom
1a21696924
Eclipse: Symbols should also be loaded when starting a debug session
2017-01-08 11:15:32 +01:00
Brian Daniels
d32e3d878d
Remove default -m and -i options for project.py
...
Also moves the check for -m and -i before any file system actions are
taken (error faster)
2017-01-05 17:19:52 -06:00
Jimmy Brisson
dacdbdcfe4
Remove deprecated clean argument
2017-01-05 17:16:00 -06: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
Anna Bridge
01c39629fe
Modify update command to directly edit the mbed-os.lib files for each
...
example specified in the supplied .json file, in a user specified fork.
A pull request is then made from each fork to the ARMmbed master repo.
New usage:
python update.py <args>
Where <args> are:
[-c <file.json>] optional argument for example list, default
example.json
-U <github user with forked repos>
-T <github authorisation token>
tag
2017-01-05 12:11:55 +00: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
Brian Daniels
3baeb8a8a7
Preventing app_config from clobbering CLI macros
2017-01-03 13:27:12 -05:00
bcostm
442181976b
Remove USB in build_travis test (USB is not supported right now on this platform)
2017-01-03 16:05:49 +01:00
bcostm
3e499e21e4
Add platform in RTOS tests + build_travis
2017-01-02 17:40:49 +01:00
Michel Jaouen
25c0d9034f
USBHOST STM : add more board
...
NUCLEO : F411RE, L476VG, F746ZG
DISCO : L476VG
2017-01-02 09:51:48 +01:00
Michel Jaouen
83369045bd
update build_travis.py
2017-01-02 09:48:17 +01:00
Michel Jaouen
815194a98b
USBHOST : add mouse test
2017-01-02 09:48:17 +01:00
Michel Jaouen
72dae26774
USBHOST : test mass storage
2017-01-02 09:48:16 +01:00
Martin Kojtal
e7361ebc44
Merge pull request #3365 from OpenNuvoton/nuvoton_usb
...
[NUC472/M453] Support USB device
2016-12-30 12:43:53 +01:00
Martin Kojtal
24cd5734dd
Merge pull request #3483 from theotherjimmy/make-linker-error
...
Improve error message when exporting for make without a linker script
2016-12-30 12:34:09 +01:00
Martin Kojtal
ae93db711c
Merge pull request #3476 from bridadan/remove_default_toolchain_paths
...
Removing default toolchain paths
2016-12-23 13:14:57 +00:00
Martin Kojtal
cb39663b2a
Merge pull request #3486 from theotherjimmy/clean-export-fix
...
Move clean functionality out of the export api
2016-12-23 13:09:06 +00:00
Martin Kojtal
9d1b94714d
Merge pull request #3439 from theotherjimmy/detect-targets-args
...
Remove unused arguments from detect targets
2016-12-21 15:07:11 +00:00
Martin Kojtal
08509e75df
Merge pull request #3339 from jamike/USBAudio_CB_RX_TX
...
USB audio callback rx and tx
2016-12-21 14:58:52 +00:00
Jimmy Brisson
18ad17666d
Move clean functionality out of the export api
...
It was possible to remove an entire project if clean was specified on
the command line. That's a Bad Thing(tm).
2016-12-20 17:44:10 -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
19d56fd40f
Removing default toolchain paths
...
This change was spurred by a confusing error. I attempted to compile for
the RZ_A1H (a Cortex-A device), and I had the standalone ARM compiler in
my system path, which supports Cortex-A. However, the default path for
the ARM compiler in settings.py uses a Keil installation, which only
supports Cortex-M. It found my Keil installation and used that instead.
This change proposes to remove this default behavior and instead
requires the user to explicitly set the intended compiler, either by a
settings file, mbed CLI, environment variables, or by placing the
compiler in your PATH.
2016-12-20 11:14:24 -06:00
Anna Bridge
1cc1891fac
Merge pull request #3450 from bridadan/fix_example_filtering
...
Correctly filtering examples in test script
2016-12-19 17:52:47 +00:00
Anna Bridge
9e03765d04
Merge pull request #3422 from szechyjs/disco_f303vc_can
...
Enable CAN on DISCO_F303VC
2016-12-19 17:37:48 +00:00
Michel Jaouen
71f570fbc7
USB_8 : audio loopback test at 16khz stereo 16bits
...
- Callback TX and RX interface is used.
2016-12-16 15:16:56 +01:00
Brian Daniels
134d7743c3
Correctly filtering examples in test script.
...
If an example's GitHub repository contains multiple child examples, the
script was incorrectly filtering out all the child examples when
compiling and exporting. This patch now handles this case correctly.
2016-12-15 14:16:12 -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
92f2c380c7
Merge pull request #3414 from bridadan/remove_unnecessary_includes_libs
...
Remove unnecessary absolute paths from IAR and ARM compilers
2016-12-15 10:30:59 -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
Sam Grove
18f31b7c99
Merge pull request #3385 from theotherjimmy/remove-flags-args
...
Remove deprecated flags args
2016-12-15 10:25:38 -06:00
Sam Grove
38411e917f
Merge pull request #3366 from bcostm/dev_nucleo_f412zg
...
NUCLEO_F412ZG - Add new platform
2016-12-15 10:19:51 -06:00
Jimmy Brisson
23461ee399
Revise arguments to detect targets
2016-12-14 11:50:18 -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
Jared Szechy
5fbfa53305
Add DISCO_F303VC to build_travis
2016-12-11 23:00:01 -05:00
Jared Szechy
f5f3dc8143
Enable CAN on DISCO_F303VC
2016-12-11 22:03:29 -05: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
d9c8d1cdb8
Remove deprecated flags args
...
The tools will no longer accept `--cflags`, `--cppflags`, or
`--ldflags`. Instead, the ability to modify these flags is
provided by the `--profile` argument. Documentation for the
`--profile` argument may be found in
docs/Toolchain_Profiles.md
2016-12-09 12:08:52 -06:00
Brian Daniels
105a9b3ea6
Removing aboslute path to Dlib config for IAR compiler
...
This fixes an issue where the absolute path causes a file error if the
compiler paths are configured incorrectly. It uses a relative path
instead now (the files appears to be in the default search path).
2016-12-09 12:02:55 -06:00
Jimmy Brisson
c638d2cdcb
Fix typo in IAR definitions
2016-12-09 11:41:11 -06:00
Brian Daniels
8f649493a3
Removing extra paths for standard the library for the ARM compiler
2016-12-09 11:29:36 -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
Martin Kojtal
89b56d6b3d
Merge pull request #3347 from jamike/USB_4_GCC_IAR
...
USB_4 : test OK with IAR ,GCC_ARM(limitation to ARM not needed)
2016-12-09 15:33:05 +01:00
Martin Kojtal
9da9166691
Merge pull request #3331 from theotherjimmy/enable-exporters-examples
...
Enabled example export building for more examples
2016-12-09 15:31:25 +01:00
bcostm
73ff944ffd
Remove NUCLEO_F412ZG from example linking_list
2016-12-09 09:40:22 +01:00
ccli8
8c0948d605
[NUC472/M453] Integrate with Travis CI
...
1. Add targets into build_travis.py and tests.py.
2. Add target SPI pins into SPI SD test samples.
3. Rename target TOOLCHAIN_GCC_ARM/retarget.c to avoid name collision of compiled retarget.o with platform/retargets.cpp.
2016-12-09 13:46:38 +08:00
bcostm
f4fa08323b
Remove usb in build_travis.py for this target (not supported for now)
2016-12-08 16:26:00 +01:00
bcostm
6787c14d97
Add platform in other python and json files
2016-12-08 15:57:05 +01:00
Sarah Marsh
ab23c00b08
Catch specific exception for TargetNotSupported
2016-12-07 18:05:29 -06:00
Martin Kojtal
9a61ef0368
Fix DEBUG target keyword for GCC_ARM
...
Fixes mbed-cli#402 bug. -g flag was changed to g3, thus this caused
a regression in producing TARGET_DEBUG for GCC_ARM.
2016-12-06 11:32:45 +00:00
Jimmy Brisson
569808578a
Enabled example exporting Filter ides by toolchains
2016-12-05 13:43:55 -06:00
Martin Kojtal
8fd363d19a
Merge pull request #3349 from sarahmarshy/patch-7
...
[Exporters] Fix generic ARM CPU target in uvision
2016-12-02 15:52:38 +01:00
Martin Kojtal
b08e1ec75e
Merge pull request #3330 from theotherjimmy/correct-project-profiles
...
Fix project profile parsing
2016-12-02 15:50:07 +01: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
Michel Jaouen
5ee69dbc2e
USB_4 : test OK with IAR ,GCC_ARM(limitation to ARM not needed)
2016-11-30 17:55:04 +01:00
Martin Kojtal
107d6bc358
Merge pull request #3306 from mazimkhan/uvisor-examples
...
Added examples uvisor-thread and uvisor-number-store
2016-11-29 18:24:11 +01:00
Martin Kojtal
257d6357ca
Merge pull request #3283 from bridadan/remove-curl-references
...
Removing remaining references to Curl from ARM pack manager
2016-11-29 18:15:57 +01:00
Martin Kojtal
b36025f988
Merge pull request #3274 from bridadan/fix-path-detection-test-building
...
Passing toolchain path info to subprocesses
2016-11-29 18:13:00 +01: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
Martin Kojtal
93c08f340a
Merge pull request #3062 from jamike/TARGET_STM_USBDEVICE_FS
...
TARGET_STM :USB device FS
2016-11-29 18:07:11 +01:00
Jimmy Brisson
5fac67bcde
Fix project profile parsing
...
thanks @sdive!
2016-11-28 14:53:26 -06:00
Mohammad Azim Khan
2ad2c309bc
Removing target EFM32GG_STK3700 from uvisor examples
2016-11-23 15:22:31 +00:00
Mohammad Azim Khan
0b0db77a6e
Removing target EFM32GG_STK3700 from uvisor examples
2016-11-23 14:00:03 +00:00
Martin Kojtal
9fdf7f775f
Merge pull request #3295 from geky/gcc-g3
...
Add '-g3' flag to gcc debug flags
2016-11-22 22:14:20 +00:00
Martin Kojtal
d215e4fa63
Merge pull request #3307 from theotherjimmy/import-sys-in-config
...
Add sys import to config
2016-11-22 22:13:43 +00:00
Michel Jaouen
a34e0937fb
build_travis.py : update for STM support
2016-11-22 10:52:15 +01:00
Jimmy Brisson
27f7aeef47
Add sys import to config
2016-11-21 11:26:21 -06:00
Mohammad Azim Khan
e8048baa40
Added examples uvisor-thread and uvisor-number-store
2016-11-21 17:12:52 +00:00
Christopher Haster
83e5f272f6
Added '-g3' flag to gcc debug flags
...
Includes extra information, such as all the macro definitions present
in the program
2016-11-18 14:45:59 -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
91361ec39a
[tools] update default build directory from .build to BUILD
2016-11-18 00:23:25 -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
2fe28f0da1
[tools] update comments in memmap about build folder name
2016-11-18 00:22:58 -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
Brian Daniels
57e693de86
Passing toolchain path info to subprocesses.
...
Since the toolchain path info lives as a global variable, its not
propigating to the subprocesses that are created to compile the tests in
parallel. This change manually passes these global variables and then
reassigns them.
2016-11-17 12:20:34 -08:00
Brian Daniels
d7fbe2c109
Removing remaining references to Curl from ARM pack manager
2016-11-17 11:58:39 -08:00
Sam Grove
9d8ec61df5
Merge pull request #3258 from sarahmarshy/build_test_err
...
Prevent process pool inside of process pool when building tests
2016-11-14 21:54:24 -06:00
Sam Grove
68badb2a69
Merge pull request #3257 from bridadan/baudrate_in_test_spec
...
Baudrate in test spec
2016-11-14 21:53:32 -06:00
Sam Grove
ef7c61820b
Merge pull request #3229 from theotherjimmy/allow-deps-to-fail
...
[Tools - Toolchains] Allow dependency parsing to fail, gracefully continuing
2016-11-14 21:44:09 -06:00
ARM
9f39132d3b
Prevent process pool inside of process pool when building tests
2016-11-10 14:41:19 -07:00
Brian Daniels
e3ff8da6f0
Test spec baud_rate now set based on mbed config
2016-11-10 15:21:18 -06:00
Brian Daniels
088566b33e
Correctly casting toolchain features to a set.
...
Before, the get_config function was checking the equality of a set and a
list. However the list's equality depends on order, so this change casts
it to set to prevent an infinite loop.
2016-11-10 15:20:30 -06:00
Anna Bridge
f6f872a858
Merge pull request #3159 from radhika-raghavendran/master
...
User trim values for NCS36510
2016-11-10 17:06:54 +00:00
Anna Bridge
e0c7d3b362
Merge pull request #3188 from theotherjimmy/fix-tests-export
...
[Exporters] Append targets to scan list for exporting tests
2016-11-10 17:06:22 +00: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
Jimmy Brisson
c3915215e4
Allow dependency parsing to fail, gracefully continuing
2016-11-10 10:04:36 -06: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
Brian Daniels
119857ac77
Ignoring args parameter for functions that don't use them
2016-11-08 13:41:40 -06:00
Brian Daniels
f1bb3f5930
Fixing issue with target_cross_ide
2016-11-08 12:51:38 -06:00
Brian Daniels
2fe1373cf1
Fixing use of get_repo_list in update function
2016-11-08 12:38:22 -06:00
Brian Daniels
b739413526
Correcting example, toolchain, and ide filters
2016-11-08 12:37:14 -06:00
Radhika
63f5c9781d
Configuration of user trim moved to targets.json
2016-11-08 17:29:32 +05:30
Jimmy Brisson
def0a38c4b
Add message that informs the user which hex to flash
2016-11-07 15:54:44 -06:00
Sarah Marsh
4bfd73a661
[Exporter tests] update mbed-os in selected examples
2016-11-07 11:10:52 -06:00
Sarah Marsh
c231939a8d
[Exporter tests] conditional intersection for targets
2016-11-07 11:09:36 -06:00
Sarah Marsh
4e2d3c42dd
[Exporter tests] Implement filtering of targets and examples.
2016-11-07 11:09:36 -06:00
Brian Daniels
811e2b55e6
Adding MCU and example filter options to example test CLI
2016-11-07 11:04:18 -06:00
Sam Grove
79abaab02e
Merge pull request #3208 from bridadan/examples-clone-deploy
...
[example tests] Adding a clone and a deploy step to allow optimizations in CI.
2016-11-07 10:32:23 -06:00
Brian Daniels
b0d556b9c4
Adding a clone and a deploy step to allow optimizations in CI.
...
This adds an example clone and deploy step that allows you to modify
each top level repository before pulling in the rest of the example's
dependencies. This allows us to not pull in a copy of mbed-os for each
example in CI and instead symbolic link the already cloned copy, saving
valuable time and disk space
2016-11-04 17:35:36 -05:00
Sarah Marsh
76554fa8af
[Exporter tests] Capable of testing export only to IDEs that do not have build functions
2016-11-04 15:53:41 -05: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
359413ef57
Merge pull request #3204 from sarahmarshy/patch-6
...
[Export build-test] Directory traversal error
2016-11-04 14:44:22 -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
sarahmarshy
804f27a8bd
[Export build-test] Directory traversal error
...
Change indentation level for directory traversal, so that we only move up at the end of exporting one project for all ide/target combinations.
2016-11-04 14:09:40 -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
Sam Grove
2502a795b9
Merge pull request #3172 from sarahmarshy/export-test-rev
...
[Exporters] New export-build tests
2016-11-03 02:20:55 -05:00
Sam Grove
7d31512751
Merge pull request #3171 from bridadan/fix_exporter_supported
...
[tools] Fixing project.py -S printing problem
2016-11-03 02:18:39 -05:00
Sam Grove
4e1aea4fc9
Merge pull request #2958 from bridadan/mbed-app-config-testing
...
Allowing mbed_app.json files to be discovered for tests.
2016-11-03 02:11:38 -05:00
Jimmy Brisson
79bccc14a2
Force make exporter to search PATH for compilers
2016-11-02 17:16:35 -05:00
Jimmy Brisson
a447807ed8
Append targets to scan list for exporting tests
2016-11-02 16:14:40 -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
9624ccf2d5
Add boolean 'export' to examples.json.
...
This will determine whether the example should be exported. Additionally,
relocated export logic to examples_lib.py.
2016-11-02 10:30:10 -05:00
Martin Kojtal
fe80efe1bb
Merge pull request #3072 from jeromecoutant/PR_I2C_TESTS
...
i2c_loop tests update for STM32
2016-11-02 13:01:29 +00: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
Sam Grove
fa314e2589
Merge pull request #3048 from adbridge/master
...
Make update.py test compile examples prior to updating mbed-os version.
2016-11-01 14:14:23 -05:00
Sam Grove
6893535353
Merge pull request #3169 from bridadan/USB_Updates
...
[Update of #3014 ] Usb updates
2016-11-01 10:20:57 -05:00
Brian Daniels
5762f7c17e
Updating IAR definition for the NCS36510 for IAR EW v7.8
2016-10-31 18:28:34 -05:00
Brian Daniels
67c2ea771a
Fixing project.py -S printing problem
...
Printing too large of a string can fail in Windows, as detailed here:
https://bugs.python.org/issue11395 . This works around the problem by
adding a print_large_string function that breaks up the string into
smaller pieces before printing it.
2016-10-31 15:39:38 -05:00
Brian Daniels
edd6cac718
Adding Kinetis devices to mbed 2 tests and updating build_travis script
2016-10-31 12:42:15 -05:00
Mahadevan Mahesh
6750f488ed
Add K64F, K22F and KL43Z to travis build
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-10-28 12:12:35 -05:00
Anna Bridge
479e203dce
Switch off compilation of wifi example while awaiting a fix for
...
issue 3152 is submitted.
2016-10-28 16:10:41 +01:00
Anna Bridge
c60b19e27c
Remove superfluous debugging line.
2016-10-28 15:20:36 +01:00
Radhika
eaf7265aa6
User trim added.
...
Astyle and pylint run on code.
2016-10-28 15:02:52 +05:30
Martin Kojtal
51fc2ce4a5
Merge pull request #3139 from bulislaw/arduino_ff
...
Handle [NOT_SUPPORTED] exception in make.py
2016-10-28 10:15:19 +02:00
Martin Kojtal
bd4eca325b
Merge pull request #3024 from jeromecoutant/PR_analog_loop
...
analog_loop tests update for STM32
2016-10-27 11:02:10 +02:00
Bartek Szatkowski
aa3a127c76
Handle [NOT_SUPPORTED] exception in make.py
...
That let us to ignore build failures for examples on not supported
platforms.
2016-10-27 09:45:55 +01:00
Anna Bridge
a5d3d2056b
Update ble example meta data to fix unsupported compilation combinations.
...
Remove URI beacon example as this is no longer required.
Add specific set of supported targets.
2016-10-26 16:24:42 +01:00
Martin Kojtal
4198222c54
Merge pull request #3005 from c1728p9/build_profiles
...
New build profile and docs
2016-10-26 15:16:01 +02:00
Martin Kojtal
53cd23e285
Merge pull request #3097 from theotherjimmy/pack-manager-urllib2
...
Arm-Pack-Manager Remove pycurl dependency
2016-10-26 14:48:05 +02:00
Anna Bridge
045b7d412d
Minor review comments plus add new 'compile' option to examples json file.
...
Adding the new compile option allows the marking of a set of examples to
indicate whether they should be compiled or not. For the update process
examples that are not compiled will not be auto updated irrespective of
that setting.
Other changes to make return logic from some functions in update.py more
efficient and some typos in the lib file.
2016-10-25 12:37:29 +01: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
Jimmy Brisson
800792a42e
Remove pycurl dependency
2016-10-20 16:24:47 -05: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
Jimmy Brisson
f812deed24
Remove dependency on XDG home spec
2016-10-19 12:07:37 -05:00
Jimmy Brisson
8f19672530
Add update command to project.py
2016-10-19 12:05:10 -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
Sam Grove
5bcebba71d
Merge pull request #3023 from jeromecoutant/PR_digital_loop_tests
...
digital_loop tests update for STM32
2016-10-19 05:46:22 -05:00
Sam Grove
435d5fb3bb
Merge pull request #2992 from jeromecoutant/PR_Init_Time_Issue
...
Increase serial init timeout value
2016-10-19 05:42:20 -05:00
Sam Grove
6bd44c59d3
Merge pull request #2990 from bridadan/parallel-test-build
...
[tools] Parallel building of tests
2016-10-19 05:41:24 -05:00
jeromecoutant
ae9041b12c
i2c_loop tests update for STM32
2016-10-19 11:15:38 +02:00
jeromecoutant
78b4f25b5c
analog_loop test - keep mcu list and update with STM32 boards
2016-10-19 09:54:23 +02: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
Russ Butler
23af2421f3
Remove non-code profiles
...
Remove profiles which are not suitable for building stand alone. This
leaves just the 3 core profiles.
2016-10-18 09:23:10 -05:00
Russ Butler
0d51f18f02
New build profile and docs
...
Add a small build profile and general docs for build profiles.
2016-10-18 09:23:01 -05:00
Anna Bridge
36964561b9
Review: Update example_lib.py to use rmtree rather than rm system call.
...
Update examples.json to limit TLS examples to a couple of boards and only
GCC_ARM and ARM compilers.
2016-10-18 12:30:19 +01: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
Anna Bridge
bbfa954839
Make update.py test compile examples prior to updating mbed-os version.
...
Changes:
Refactor examples.py to add a new command line option to provide an update
tag.
Refactor examples.py to add new functionality to update the version of
mbed-os in the examples to a supplied tag.
Refactor examples.py to make cloning the example repos, updating their
mbed-os version and compiling, into library functions and move to a new
library module.
Refactor the format of the examples.json file to make it compatible with
both examples.py and update.py.
Refactor update.py so that examples are test compiled prior to updating.
Refactor update.py so that only examples tagged as auto-updatable and that
fully compile are automatically updated.
2016-10-17 16:56:28 +01: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
Sam Grove
9f74038036
Merge pull request #2991 from c1728p9/fix_small_default_lib
...
Properly set flags for default_lib = small
2016-10-13 11:13:30 -05:00
Sam Grove
4be4113810
Merge pull request #2985 from sarahmarshy/nrf52-support
...
NRF52_DK support for IAR exporter
2016-10-13 11:12:43 -05:00
Max Vilimpoc
7faee9099e
Add .hpp to list of Uvision Exporter extensions
2016-10-13 13:12:18 +02:00
Russ Butler
9f6b346c88
Properly set flags for default_lib = small
...
Use newlib nano for targets which have the key "default_lib" set to
"small". Also support the legacy key of "default_build".
2016-10-12 20:36:09 -05:00
Sam Grove
1ba3499631
Merge pull request #3003 from c1728p9/fix_memory_map
...
Revert "Allow max-depth specification in memap"
2016-10-12 17:25:12 -05:00
Russ Butler
7a50832550
Revert "Allow max-depth specification in memap"
...
This reverts commit 8f9f4eefed
since
it broke memory map info for IAR, ARMCC and on windows, GCC_ARM.
2016-10-12 14:49:32 -05:00
jeromecoutant
dee753735d
analog_loop tests update for STM32
2016-10-12 10:38:03 +02:00
jeromecoutant
e0ddd59fdd
digital_loop tests update for STM32
2016-10-12 10:07:27 +02:00
Brian Daniels
39086722e8
Removing dependency on StringIO, only change return type of table export
2016-10-11 18:38:52 -05:00
Brian Daniels
0e4b841cb3
Removing need for memap to printed through toolchains
2016-10-11 18:24:01 -05:00
Brian Daniels
655c37715c
Handling output of parallelized test building.
...
This makes use of the reports generated by the building of tests to
prevent output from interleaving when the build is parallelized. This
required some changes to memap to return a generated string from
the 'generate_output' function. I also had an option to stop the prints
from memap to prevent text from interleaving
2016-10-11 15:34:20 -05:00
Brian Daniels
14aff069b1
Modifying behavior of 'silent' option in toolchains
...
The 'silent' option has always been present in the toolchains API, however
it did not actually stop anything from being printed. Instead, it just
changed what was added to the build log. This make the 'silent' stop all
prints, but ensures that the output for the toolchain is still preserved
and accessible via the 'get_output' function.
2016-10-11 14:31:06 -05:00
Bartek Szatkowski
3af2c5ae14
Accept profile name as well as file path for tools/make.py --profile
...
--profile can be used with just a profile name eg. default, debug as
long as <name>.json file is in default profile directory.
2016-10-11 13:33:37 -05:00
Brian Daniels
87103abd56
Making building and linking tests fully parallel.
...
This uses similar code that is used withing the toolchains to parallelize
the linking process of all the tests accross all the available CPUs. It
also respects the `-j` parameter if you wish to limit the number of cores
used.
2016-10-11 13:24:50 -05:00
Sarah Marsh
246335af92
NRF52_DK support for IAR exporter
2016-10-11 18:25:07 +01:00
Sam Grove
c0c2563580
Merge pull request #2964 from bulislaw/fix_csv_quoting
...
Fix file path quoting while constructing CSV file in memmap.py
2016-10-10 10:35:44 -05:00
jeromecoutant
62160b7685
Increase serial init timeout value
2016-10-10 15:37:54 +02:00
Sam Grove
eee4db1fe0
Merge pull request #2896 from geky/restructure-cmsis
...
restructure - Restructure cmsis directory
2016-10-07 11:13:09 -05:00
Bartek Szatkowski
a7d9dbec69
Fix file path quoting while constructing CSV file in memmap.py
...
Comma is a valid char in file paths for Posix systems.
2016-10-07 16:33:43 +01:00
Brian Daniels
f3d20141a3
Allowing mbed_app.json files to be discovered for tests.
...
Before, mbed_app.json files were explicitly ignored when building tests.
This was mostly because you could have multiple mbed_app.json files in the
tree (for instance, in test case folders) and the behavior would be
undefined. Now the tools explicitly ensure that there aren't multiple
mbed_app.json files in your source files. So auto discovery of
mbed_app.json for testing is being reintroduced.
2016-10-06 17:40:25 -05:00
Sam Grove
41323855ec
Merge pull request #2918 from theotherjimmy/memap-improvements
...
Allow max-depth specification in memap
2016-10-06 15:57:39 -05:00
Sam Grove
3a16ca9855
Merge pull request #2911 from theotherjimmy/docs-generation
...
[Tools] Add documentation generation script
2016-10-06 15:57:08 -05:00
Sam Grove
76fb1f8c3f
Merge pull request #2708 from sarahmarshy/uvision-and-iar
...
[Exporters] Refactor Uvision and IAR and initial support of CMSIS projects
2016-10-06 15:54:00 -05:00
Michel Jaouen
144e97bf63
[IAR build] fix debug build
...
with option --profile ./tools/profiles/debug.json
2016-10-06 16:16:14 +02:00
Jimmy Brisson
8f9f4eefed
Allow max-depth specification in memap
2016-10-05 12:36:30 -05:00
Christopher Haster
2a58befd15
restructure - Fixed missing include paths in mbed 2 project builds
2016-10-05 11:06:27 -05:00
Sarah Marsh
e8b34282cb
Minor formatting changes
2016-10-04 19:34:52 -05:00
Christopher Haster
2be7207388
restructure - Fixed missing symbols in generation of mbed 2 cmsis library
2016-10-04 17:51:44 -05:00
Christopher Haster
96b4ff3358
restructure - Updated mbed 2 build to respect the new cmsis directory
2016-10-04 17:51:44 -05:00
Sarah Marsh
51b13c3ca7
-Oh flag removed from IAR. Optimization set in GUI.
2016-10-04 15:07:41 -05:00
Jimmy Brisson
9261ed4161
Remove tag-adding code from script
2016-10-04 15:03:17 -05:00
Jimmy Brisson
2cea844199
Automatically Add group tags to documented code
2016-10-04 15:02:33 -05:00