Jimmy Brisson
eb11561c1f
Add smoke test that builds example programs with mbed-cli
2016-08-29 11:26:37 -05:00
Jimmy Brisson
c7bf3fac60
Allow an empty or mal-formed config to be passed to the config system
2016-08-29 10:03:36 -05:00
Sam Grove
ea56684fff
Merge pull request #2531 from radhika-raghavendran/master
...
ncs36510 from ON Semiconductor
2016-08-27 07:31:39 -05:00
Sam Grove
fe1f2b6066
Merge pull request #2563 from sarahmarshy/path_error_rev
...
Check if executble exists
2016-08-26 18:05:50 -05:00
Sarah Marsh
bd0acdc527
Check executable
2016-08-26 17:32:57 -05:00
Sam Grove
ea3526d657
Merge pull request #2418 from sarahmarshy/path_error_rev
...
Readable error when toolchain paths not set. Allow IAR and ARM toolchains to be set in user's PATH.
2016-08-26 13:10:48 -05:00
Radhika
2dc38063b9
Formatting code according to ARM guidelines.
...
Ran pylint and astyle.
Rebased latest ARMmbed-os code.
2016-08-26 20:34:23 +05:30
Radhika
048d53134a
rebasing with mbed-os latest
2016-08-26 20:34:20 +05:30
Sam Grove
f147f6f3f2
Merge pull request #2471 from bridadan/copy-config-library
...
Copying JSON files to pick up config for built libraries
2016-08-26 09:38:35 -05:00
Sam Grove
daf4b1c6b1
Merge pull request #2528 from jeremybrodt/max32620
...
[MAX32620HSP] Initial release.
2016-08-26 09:25:33 -05:00
Radhika
daea440b6a
Adding NCS36510 support in mbed-os5.1
2016-08-26 12:04:22 +05:30
Radhika
b75379f353
Adding NCS36510 support in mbed-os5.1
2016-08-26 12:00:54 +05:30
Sam Grove
1dbe8d8cf8
Merge pull request #2520 from jeromecoutant/PR_L011K4
...
[NUCLEO_L011K4] build issues
2016-08-25 09:26:10 -05:00
Jeremy Brodt
b9b6d30659
[MAX32620HSP] Initial release.
2016-08-24 16:33:47 -05:00
Brian Daniels
33672b483f
Copying JSON files to pick up config for built libraries
...
This came up when building tests, but affects any library that's built
that uses config and included as "source" with the mbed tools.
JSON files are not copied by default when building a library, so when this
is built it loses the config data associated with the library. This commit
copies all JSON files into the build directory when building libraries.
This leads to two mbed_config.h files existing if the build directories
are different between the library and application build. This is the case
when building tests, so an option build_library was added to remove the
mbed_config.h file when compilation is done. This disabled by default when
building libraries, but it is enabled when building tests.
2016-08-23 16:42:05 -05:00
Vincent Coubard
fe322adc9c
Make selection of c library used consistent.
...
* rename "default_build" property into "default_lib"
* rename "standard" value for "default_build" into "std".
2016-08-23 16:04:56 +01:00
jeromecoutant
086d5b9a4e
[NUCLEO_L011K4] build issues
...
Target FLASH is quiet small (16KB),
so only uARM is supported and very small applications.
2016-08-23 17:02:57 +02:00
Vincent Coubard
73a925810c
Improve naming of the command line option which select the c library to use.
...
* rename 'small-build' into 'small-lib'
* rename 'standard-build' into 'std-lib'
2016-08-23 15:42:08 +01:00
Vincent Coubard
afde624a26
Rename big-build option into standard-build.
...
With this change, the name is more descriptive and aligned with the targets
definitions in hal/targets.json.
2016-08-23 15:38:44 +01:00
Vincent Coubard
cce10e2c0d
Allow 'small-build' and 'big-build' to be used as options.
...
These two flags are already tested in tools/toolchains/gcc.py but can't
be used at the moment because they are not part of the argument list of
the option parameter.
2016-08-23 15:37:56 +01:00
Martin Kojtal
0231f61588
Merge pull request #2516 from NXPmicro/HEXIWEAR_KDS_Support
...
HEXIWEAR: Add support to create KDS projects for HEXIWEAR
2016-08-23 09:07:49 +01:00
Russ Butler
6a31ffbf3e
Heap statistics
...
Keep track of the current size allocated, maximum size allocated,
number of allocations, failed allocations and total size allocated for
both GCC and ARM. Report the maximum size allocated at the end of
testing.
Also, add a test to verify heap metrics are working as expected.
2016-08-22 18:32:51 -05:00
Mahadevan Mahesh
2c813a051b
HEXIWEAR: Add support to create KDS projects for HEXIWEAR
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-08-22 15:06:56 -05:00
Jimmy Brisson
163fa59e17
Prevent traceback
2016-08-19 14:01:19 -05:00
Jimmy Brisson
a0c8a09c89
Unify look of argument errors
2016-08-19 14:01:19 -05:00
Martin Kojtal
862db41be3
Merge pull request #2468 from bridadan/fix-gcc-diagnostic-pattern
...
Tools - Fixing issue where GCC fails to report compile errors when non-verbose
2016-08-19 13:48:54 +01:00
Martin Kojtal
f6be78dc89
Merge pull request #2429 from theotherjimmy/specialize-tests-discovery
...
Move find_tests to where it's has arguments
2016-08-19 12:05:45 +01:00
Martin Kojtal
5c82db8203
Merge pull request #2494 from theotherjimmy/fix-memap-table
...
Print module information in 'table' output format
2016-08-19 11:52:26 +01:00
Jimmy Brisson
74dd5efd48
Print module information in 'table' output format
2016-08-18 13:25:58 -05:00
Jimmy Brisson
096d17dec9
Fix macros being the exact same when generating mbed_config.h
2016-08-18 11:23:26 -05:00
Sarah Marsh
cd229bacc3
Allow users to set armcc and iccarm in path.
...
Raise exceptin instead of exit.
Corrected error for arm-none-eabi-gcc/g++ set in path.
2016-08-17 09:14:05 -05:00
Martin Kojtal
bdb4ab921f
Merge pull request #2472 from ytsuboi/master
...
[TY51822r3] Added exporting support
2016-08-17 14:54:49 +01:00
Martin Kojtal
77e87179bd
Merge pull request #2456 from NXPmicro/SDK2_FRDM_K66F
...
Add support for FRDM K66
2016-08-17 14:37:31 +01:00
Yoshihiro TSUBOI
f8a6af161a
[TY51822r3] Added exporting support
2016-08-17 10:58:48 +09:00
Jimmy Brisson
dabd7b8d53
Made linting a recommendation and raised the bar for printing
2016-08-16 13:29:43 -05:00
Jimmy Brisson
7b7ca84ab3
Fix remaining issues in targets.py
2016-08-16 13:29:43 -05:00
Jimmy Brisson
3f9bedbdd9
Add pylint testing to Travis
2016-08-16 13:29:43 -05:00
Jimmy Brisson
33786130ae
Format and document options.py
2016-08-16 13:29:43 -05:00
Jimmy Brisson
44efd92ca3
Format and document hooks.py
2016-08-16 13:29:31 -05:00
Brian Daniels
20ddba6e90
Fixing issue where GCC fails to report compile errors when non-verbose
...
The output of the GCC compiler is such that the toolchain regex sometimes
got hung up on the ':' charcter being printed in front of the drive letter when
running on Windows. This PR changes the matching logic to be more flexible
by using 'search' to check the entire string for a match, not just the
beginning of the string.
2016-08-16 12:34:18 -05:00
Jimmy Brisson
ec1d0b5673
Format detect_targets.py
2016-08-16 11:48:46 -05:00
Jimmy Brisson
2831eee216
Format and document libraries.py
2016-08-16 11:48:45 -05:00
Jimmy Brisson
acc59a1a86
Format paths python module
2016-08-16 11:48:45 -05:00
Jimmy Brisson
5fbcc25b46
Format and document colorize
2016-08-16 11:48:45 -05:00
Jimmy Brisson
cb5e61028d
Format and add docstrings to memmap
2016-08-16 11:48:39 -05:00
Jimmy Brisson
ea63a4d9a7
Expand docstrings in build_api
2016-08-16 11:04:33 -05:00
Jimmy Brisson
bb43f8d37a
Format targets.py
2016-08-16 11:04:33 -05:00
Jimmy Brisson
9d09f8e049
Reveal cumulative attributes from Targets
2016-08-16 11:04:32 -05:00
Jimmy Brisson
57af5cd053
Edit the English of the docstrings
2016-08-16 11:04:32 -05:00
Jimmy Brisson
acf5c40af4
Glorify config.py (passes pylint)
2016-08-16 11:04:32 -05:00
Jimmy Brisson
b2156ceef5
Format bulid_api
2016-08-16 11:04:32 -05:00
Jimmy Brisson
99f1284a81
Stylize utils.py
2016-08-16 11:04:27 -05:00
Mahadevan Mahesh
0ad9220fb1
Add support for FRDM K66
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-08-15 15:37:25 -05:00
Martin Kojtal
dd8060b798
Merge pull request #2433 from theotherjimmy/better-config-errors
...
[tools] Improve error for missing name from mbed_lib.json
2016-08-15 15:15:06 +01:00
Jimmy Brisson
71113a8820
Improve error for missing name from mbed_lib.json
2016-08-12 09:54:03 -05:00
Martin Kojtal
3d61535652
Merge pull request #2149 from jeromecoutant/PR_MBED_A27
...
Add MBED_A27 test in the common list
2016-08-12 10:57:06 +02:00
Jimmy Brisson
215f4259ce
Remove argument from tool/project.py -b
...
resolves #2309
2016-08-12 08:37:52 +02:00
Jimmy Brisson
abc7669eb7
Move find_tests to where it's has arguments
2016-08-11 10:03:23 -05:00
Bogdan Marinescu
d471a4f019
Add config data to build_lib in build_api.py
...
`build_lib` wasn't aware of configuration data, so some of the source
files that depends on configuration data fail to compile. This commit
fixes that by making `build_lib` aware of configuration data.
2016-08-11 13:54:41 +03:00
Sarah Marsh
51245ceb7a
Exit non-zero for invalid toolchain path
2016-08-10 12:04:11 -05:00
Sarah Marsh
1445886844
Readable error when toolchain paths not set.
...
Fixes #2360 .
New error:
[Error] Toolchain path does not exist for IAR.
Current value: /default/path/that/doesnt/exist
(System exit before any build system calls)
2016-08-10 11:52:45 -05:00
Bogdan Marinescu
4f6eaaa8ec
build_mbed_libs is now aware of the configuration
...
Previously, build_mbed_libs didn't take into account the configuration.
This is a problem when doing a binary release, since mbed_lib.json
contains configuration data relevant to the binary release.
2016-08-10 19:03:13 +03:00
jeromecoutant
463c7d20f0
Create MBED_A28 test in the common list
...
MBED_A28 test is the same as MBED_A27 test.
This is a CAN loopback test without any peripheral or wire.
It can then be added in the common list.
2016-08-10 15:09:00 +02:00
Sam Grove
9d1fbda9fe
Merge pull request #2377 from sarahmarshy/flag_revision
...
Pass only relevant defines at each stage of compilation
2016-08-04 22:10:58 -05:00
Sarah Marsh
70890620f7
Uvision and IAR working cc and asm specific defines
2016-08-04 17:05:12 -05:00
sarahmarshy
4cef2c917f
Merge pull request #1 from screamerbg/split_symbols
...
Differentiate ASM and CXX symbols
2016-08-04 19:17:27 +01:00
Mihail Stoyanov
88564a9ac3
Differentiate ASM and CXX symbols as they are not treated the same in ARMCC and IAR compilers
2016-08-04 18:19:08 +01:00
Sam Grove
8891ed1cac
Merge pull request #2341 from screamerbg/backported-fixes
...
[Tools] Build system improvements
2016-08-04 12:15:06 -05:00
Sam Grove
a6ffdd4e94
Merge pull request #2366 from sg-/hexiwear-fixups
...
Hexiwear fixups
2016-08-04 11:38:41 -05:00
Sam Grove
5dbdf934fd
Merge pull request #2359 from sarahmarshy/armasm_fix
...
Removed preinclude config from asm flags
2016-08-04 10:57:25 -05:00
Sam Grove
a2500f877b
add HEXIWEAR to RTOS tests
2016-08-03 17:40:36 -07:00
Sarah Marsh
b910cfe08c
Removed incorrect list removal
2016-08-03 17:26:08 -05:00
Sarah Marsh
02cdaebc95
Removed preinclude config from asm flags
2016-08-03 13:49:50 -05:00
Russ Butler
7b65eb2d9e
Remove NRF51_MICROBIT from 2.0 rtos testing
...
The micro:bit is running rtos tests, even though this is a 16K device
that should not be using multiple threads. This patch removes it from
the 2.0 RTOS tests.
2016-08-03 13:29:20 -05:00
Sam Grove
32b134e277
Merge pull request #2345 from pan-/fix_nrf51_export
...
Fix nrf51 export
2016-08-02 23:18:12 -05:00
Sam Grove
d83157a6fa
Merge pull request #2333 from bridadan/build-library-clean
...
Adding clean support back to build_library
2016-08-02 18:58:40 -05:00
Sam Grove
e4db590789
Merge pull request #2330 from theotherjimmy/ds-5-toolchain
...
Add toolchain flag to DS-5 exporter
2016-08-02 17:18:35 -05:00
Sam Grove
76ea1ccb4a
Merge pull request #2317 from geky/fix-ca-config-scan
...
[tools] Fixed infinite loop in config scan due to list comparison error
2016-08-02 17:05:13 -05:00
Vincent Coubard
80f296202c
Fix goals for NRF51_DK makefile:
...
Now "all" depend on the project merged with the soft device,
the goal merged has been renamed into the file it generate and now depend
on the realization of $(PROJECT).hex
2016-08-02 22:55:15 +01:00
Vincent Coubard
0320f3b89e
Change merged file name to $(PROJECT)-combined.hex .
2016-08-02 22:21:00 +01:00
Vincent Coubard
4223a257f9
Add the merge goal to the list dependent goals of all.
...
Fix import of the softdevice hex file.
2016-08-02 21:35:10 +01:00
Vincent Coubard
142e014a7f
Add hex files to the exporter context.
2016-08-02 21:33:26 +01:00
Bogdan Marinescu
c6c8d42b0f
Merge pull request #2303 from theotherjimmy/export-asm-symbols
...
Add missing --preinclude and -input on assembly files
2016-08-02 20:57:39 +03:00
Jimmy Brisson
3873ccc232
Add -D options to iar assembler on export
2016-08-02 11:39:46 -05:00
Mihail Stoyanov
a4c3469b7b
Empty the multiprocessing queue before terminating it
2016-08-02 16:53:58 +01:00
Jimmy Brisson
965ffc3e28
Add CC_SYMBOLS to assembler invocation
2016-08-02 10:46:57 -05:00
Mihail Stoyanov
31a59c930d
Allow targets to be reloaded using set_targets_json_location()
2016-08-02 11:42:21 +01:00
Brian Daniels
6df903f8a6
Adding clean support back to build_library
...
At some point, the actual code that did the "clean" for build_library was
removed. This also affected building and cleaning tests. This adds this
capability back to the build API.
2016-08-01 18:16:53 -05:00
Jimmy Brisson
9d0e65f47a
Add toolchain flag to DS-5 exporter
2016-08-01 14:07:12 -05:00
Sam Grove
c84e5d32c9
Revert "Force installation of dependencies in entry points"
2016-07-29 17:35:23 -05:00
Christopher Haster
b45ec0ed76
[tools] Added specific config test for uvisor
...
Unlike other libraries, uvisor is currently integrated into the build
system, with special cases based on its addition as a feature. This
suggests we should also have tests for these special cases.
2016-07-29 12:31:54 -05:00
Christopher Haster
6ea4006b5a
[tools] Fixed infinite loop in config scan due to list comparison error
...
Previously a scanning for config terminated on comparison of the feature
set, however at some point the set was changed to a list. This resulted
in non-deterministic failures based on list order.
2016-07-29 12:20:52 -05:00
Jimmy Brisson
209cf9f167
Add config file inculde directory when present
2016-07-29 11:38:38 -05:00
Jimmy Brisson
fed50f8f18
Add missing --preinclude and -input on assembly files
...
Except for IAR, it does not support the --preinclude option for assembly
files but all of the other exporters can. It was less code to remove it
in IAR than to explicitly add it in all of the other exporters.
2016-07-29 11:02:07 -05:00
Brian Daniels
7a07c386cb
Enforcing 'standard' build for mbed OS 5.0 release
...
This PR enforces that the default_build in a target's definition in
hal/targets.json is set to standard to be included in the version 5
release.
This is being enforced because small builds do not support
multi-threading. This makes the capabilities more consistent across all
boards in the version 5 release.
NOTE: This removes the MOTE_L152RC and the LPC11U68
from the version 5 release list because the 'default_build' for these
targets is currently set to 'small'.
2016-07-28 18:47:49 -05:00
Bogdan Marinescu
36468c9acb
Merge pull request #2281 from geky/tools-ca-set-arith-fix
...
[tools] Fix precedence issue in cumulative attribute set-arithmetic
2016-07-28 16:23:17 +03:00
Christopher Haster
63f9b03e35
[tools] Added test for removing features
2016-07-27 18:01:33 -05:00
Sam Grove
5df79393fc
Merge pull request #2257 from theotherjimmy/install-deps
...
Force installation of dependencies in entry points
2016-07-27 16:49:12 -05:00
Christopher Haster
f3c0ea3664
[tools] Fixed precedence issue in cumulative attribute set-arithmetic
...
Basically this:
a | b - c != (a | b) - c
2016-07-27 16:47:23 -05:00
Brian Daniels
0e4b78f840
Changing 'release' key to 'release_versions'.
...
The key 'release' in hal/targets.json is ambiguous. This changes the key
to 'release_versions' to emphasize that the entries should be version
numbers/strings and that it should be an array, not a singular value.
2016-07-27 13:38:02 -05:00