Commit Graph

429 Commits (85c3774ca657297bade01eb3bbd24777caba22f1)

Author SHA1 Message Date
ohagendorf 85c3774ca6 adding rtos lib 2016-09-15 18:06:36 +01:00
Brian Daniels 8cb8ee983d Correctly providing directories to build_apis
The shared `prepare_toolchain` and `scan_resources` functions in build_api
expect a list, not a string. This is different from the
toolchain.scan_resources function. Now the functions are being used
correctly within the `find_tests` function in test_api
2016-09-15 18:06:20 +01:00
Jimmy Brisson 522c1789ef return the number of failures from the script 2016-09-15 18:06:08 +01:00
Jimmy Brisson 72daa77e22 Separate the import and compile steps for better integration with Jenkins 2016-09-15 18:06:06 +01:00
Jimmy Brisson 2fd68ba552 Use mbed-os 5 example instead of the mbed 2 one 2016-09-15 18:06:05 +01:00
Jimmy Brisson aa23e01a00 Update Docstring 2016-09-15 18:06:04 +01:00
Jimmy Brisson 3a5f541a23 Use IPV6 feature for filtering mesh, client, and sockets 2016-09-15 18:06:02 +01:00
Jimmy Brisson ffe5aeb7b4 Allow filtering by target as well as by features 2016-09-15 18:06:01 +01:00
Jimmy Brisson 33f28e696e Allow command-line filtering of toolchains 2016-09-15 18:06:00 +01:00
Jimmy Brisson 98e64bc4c7 Move to feature filter for target and toolchain detection; print passed tests 2016-09-15 18:05:58 +01:00
Jimmy Brisson b7d352d5a6 Move example tests to their own folder 2016-09-15 18:05:57 +01:00
Jimmy Brisson e95173279d Use json for the example to target mapping and print failures 2016-09-15 18:05:56 +01:00
Jimmy Brisson 12cb6574e3 Add smoke test that builds example programs with mbed-cli 2016-09-15 18:05:55 +01:00
Jimmy Brisson fd73280b47 Allow an empty or mal-formed config to be passed to the config system 2016-09-15 17:56:59 +01:00
Michel Jaouen 05522c9285 test / export scripts update 2016-09-15 17:56:55 +01:00
Sarah Marsh e3225ab0a2 Removed projectfiles directory. debug-info default option 2016-09-15 17:56:48 +01:00
Jimmy Brisson 5677ad017a Add repo_dirs, repo_files, lib_builds, and lib_refs to zips 2016-09-15 17:56:47 +01:00
Jimmy Brisson 358643cdd6 Fix include paths for fragmented projects; remove deadcode 2016-09-15 17:56:46 +01:00
Jimmy Brisson 8d42764382 Fix some tracebacks, add zip exporter to the CLI 2016-09-15 17:56:44 +01:00
Jimmy Brisson a9b55147e2 Allow dict in addition to the other types of src_paths
The dict allows the user of the exporter api to specify the result directory
of particular groups of scanned dirs. This will be used by the online exporters
to spoof everything being in the same directory when they are not. It may also
be used by tests, if they would like to export something that looks exactly
like a normal project.
2016-09-15 17:56:43 +01:00
Jimmy Brisson c541e1c6a3 Set vpath correctly when exporting to projectfiles directory 2016-09-15 17:56:42 +01:00
Sarah Marsh 4a7984a399 Create projectfiles directory when exporting
Compatible with new c/asm/cpp flag separation.
2016-09-15 17:56:40 +01:00
Jimmy Brisson d4bfca7934 Fix renaming issues in non-CI ides
Affects these ides:
 - Atmel Studio
 - Code Red (I don't think we support this)
 - Coide
 - DS-5
 - E2Studio
 - EMblocks
 - KDS
 - Simplicity v3
 - SW 4 STM32

also corrects flags usage in EMBlocks
2016-09-15 17:56:39 +01:00
Jimmy Brisson 47b76a1009 Reinstated the zip exporter 2016-09-15 17:56:38 +01:00
Jimmy Brisson e88346bc67 Made exporting safer
it will no longer barf when:
 - a linker scirpt is None
 - an attribute that is a set
it will also export the correct library include paths
2016-09-15 17:56:36 +01:00
Jimmy Brisson 5acec67224 Allow exporting to in-memory zip file 2016-09-15 17:56:35 +01:00
Sarah Marsh 2affd94a73 progen exporter template 2016-09-15 17:56:32 +01:00
Sarah Marsh 37a0edd084 Accessing progen exporters directly 2016-09-15 17:56:31 +01:00
Jimmy Brisson 727ac9fb6d Update copyright 2016-09-15 17:56:30 +01:00
Sarah Marsh 50c8750a4a Refactor export subsystem
Makes several broad changes:
 - removes dead code that dealt with the online build system
 - replaces export function with a much simpler one that:
   - does not copy any sources
   - the zip file hits the disk
   - the mbed_config.h hits the disk
   - the project files hit the disk
   - nothing else hits the disk
 - exporters use Resource object scanned with a toolchain
 - progen exporters don't optionally build a project instead they have a
   build function that may be called afterwards
 - much of the code passes pylint (have a score of 9 or above):
   - project.py
   - project_api.py
   - export/__init__.py
   - export/exporters.py
   - test/export/build_test.py
2016-09-15 17:56:28 +01:00
Jimmy Brisson 665c48a7b1 Prevent traceback 2016-09-15 17:56:19 +01:00
Jimmy Brisson e9032d8003 Unify look of argument errors 2016-09-15 17:56:18 +01:00
Russ Butler 269778c29e 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-09-15 17:27:10 +01:00
Sarah Marsh b72f967956 Check executable 2016-08-31 08:37:29 +03:00
Radhika 8310d415af Formatting code according to ARM guidelines. Ran pylint and astyle. Rebased latest ARMmbed-os code. 2016-08-31 08:36:41 +03:00
Radhika 5e81f0fd73 rebasing with mbed-os latest 2016-08-31 08:36:37 +03:00
Radhika 10704ccf46 Adding NCS36510 support in mbed-os5.1 2016-08-31 08:36:20 +03:00
Radhika ada4eb122b Adding NCS36510 support in mbed-os5.1 2016-08-31 08:36:13 +03:00
Jeremy Brodt ac18ffe015 Initial release. 2016-08-31 08:35:46 +03:00
Brian Daniels 2870ee4bfc 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-31 08:35:39 +03:00
Sarah Marsh 000f185eae 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-31 08:35:04 +03:00
Sarah Marsh 351ff7543e Exit non-zero for invalid toolchain path 2016-08-31 08:34:56 +03:00
Sarah Marsh e78e023526 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-31 08:34:51 +03:00
jeromecoutant b9fd1f793e build issues
Target FLASH is quiet small (16KB),
so only uARM is supported and very small applications.
2016-08-31 08:33:28 +03:00
Mahadevan Mahesh 9e3c7e9ef3 HEXIWEAR: Add support to create KDS projects for HEXIWEAR
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-08-30 07:43:54 +01:00
Jimmy Brisson dcc96e7540 Print module information in 'table' output format 2016-08-30 07:35:25 +01:00
Jimmy Brisson 3d124b2ca7 Fix macros being the exact same when generating mbed_config.h 2016-08-30 07:35:24 +01:00
Brian Daniels 08e86eb7b1 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-30 07:27:35 +01:00
Jimmy Brisson aeeffcc85f Move find_tests to where it's has arguments 2016-08-30 07:27:26 +01:00
Yoshihiro TSUBOI 0b195e8594 Added exporting support 2016-08-18 13:48:42 +01:00