Commit Graph

1807 Commits (278df6938a085eca975e26f01dbdba5748eef4d2)

Author SHA1 Message Date
Jimmy Brisson 627c098826 Reorder test configs
Old order:
 * --test-config
 * --app-config
 * test config (as defined in test_config)
 * `mbed_app.json` in root.

New order:
 * --test-config
 * --app-config
 * `mbed_app.json` in root.
 * test config (as defined in test_config)~

This matches the documentation and user expectation
2018-05-18 12:37:11 +01:00
Jimmy Brisson d8e0817968 Apply subtract basepath to features
A bug, #6755, was the result of the `subtract_basepath` function not
being applied to a resources object's children (it's features). This PR
fixes this bug by moving this functionality into the resources class.
Then, I applied the `subtract_basepath` method to the children resource
objects recursively. This has been tested on Partnerbeta and is to
upstream the fix.
2018-05-18 12:37:11 +01:00
Jimmy Brisson 7c10f8d4cf Check call to get_config in test_api tests 2018-05-18 12:37:11 +01:00
Jimmy Brisson f82ed24927 Pass app config to get config
This corrects a bug which would manifest as --app-config not having
much of an affect on test builds (not the first libary bulid)
2018-05-18 12:37:11 +01:00
Jimmy Brisson 5a320b837f Extend a local version of the asm cmd list
I was extending an object-local one instead of a call-local one
2018-05-04 12:22:29 +01:00
Jimmy Brisson f38f1269b1 Cleanup extraneous spaces on empty lines 2018-05-04 12:22:29 +01:00
Jimmy Brisson 4edec3d2e2 Remove ASM include paths for ARM compiler 2018-05-04 12:22:29 +01:00
Jimmy Brisson f9a78afd8c Correct test finding behavior
Scan resources ignores the build dir so we can't set it to something
dumb like the directory we want to scan
2018-05-04 12:22:29 +01:00
Jimmy Brisson 3b76d9d94d Correct exporting with cortex-M23 and M33 2018-05-04 12:22:29 +01:00
ccli8 8febfd99f2 Fix build tool with ARMC6/ARMv8M
1. Add linking time preprocessor macro __DOMAIN_NS for non-secure build
2. For output .hex format, combine multiple .hex files (for multiple load regions) into one
   This can help for Greentea test.
3. Fix 'None' build_dir with cmse_lib.o on Greentea test
2018-05-04 12:22:29 +01:00
Jimmy Brisson 0296bbab62 Add GCC_ARM support to all fake test targets 2018-05-04 12:22:29 +01:00
Jimmy Brisson cadab34d4a Prevent compiling with unsupported compilers 2018-05-04 12:22:29 +01:00
Ganesh Ramachandran d947139df3 IAR export and page size fix for nvstore 2018-05-04 12:22:29 +01:00
Jimmy Brisson 5ad1002b6a Use passed in target data everywhere when doing lib config 2018-04-20 15:31:55 +01:00
Jimmy Brisson a89c8212fe Return correct configuration dict 2018-04-20 15:31:55 +01:00
Jimmy Brisson 751d38f0f6 Allow library configs to override target configs 2018-04-20 15:31:55 +01:00
bcostm 64fdeaed1d STM32L496AG: Add IAR export 2018-04-20 15:31:55 +01:00
Jimmy Brisson 779374ab17 Use pyelftools for Realtek post-build script 2018-04-20 15:31:55 +01:00
Jimmy Brisson 6dda7093d3 Shorten lines in get config 2018-04-20 15:31:55 +01:00
Jimmy Brisson c1e24d8e58 Heed filters in macro printing 2018-04-20 15:31:55 +01:00
Jimmy Brisson b9c1fe41d9 Print macros in a readable way 2018-04-20 15:31:55 +01:00
Jimmy Brisson 74469ef9e2 Simplify config param printing logic 2018-04-20 15:31:55 +01:00
Jimmy Brisson 7b1cb6ddba Remove needless _exit call 2018-04-20 15:31:55 +01:00
Jimmy Brisson 3617101154 Cleanup get_config imports 2018-04-20 15:31:55 +01:00
Kimmo Vaisanen 9692f4092b Add iar export support for STM32L151CC 2018-04-20 15:31:55 +01:00
Thomas Sailer f60cc145aa generate .mbedignore files in bin and obj to prevent mbed compile from getting confused 2018-04-20 15:31:55 +01:00
Thomas Sailer b0ed38113d proper compile flags for Release target; add fib/trim files to .mbedignore so mbed compile doesn't pick them up 2018-04-20 15:31:55 +01:00
Thomas Sailer 60becff3e3 exporter: properly export libraries 2018-04-20 15:31:55 +01:00
Thomas Sailer 0b11c62005 skip -c, sort compiler options and file list 2018-04-20 15:31:55 +01:00
Thomas Sailer 73a52ebf5b copy ncs36510addfib.py into project root, because it cannot be relied to be accessible in the template directory 2018-04-20 15:31:55 +01:00
Thomas Sailer e006e279f8 remove NCS36510 specific changes from this branch 2018-04-20 15:31:55 +01:00
Thomas Sailer ff488cf6fb some modifications from review 2018-04-20 15:31:55 +01:00
Thomas Sailer da353a6adb Code::Blocks project file exporter 2018-04-20 15:31:55 +01:00
Jimmy Brisson 42a51efbe6 Error on invalid mbed_lib JSON 2018-04-09 15:00:48 +01:00
Jimmy Brisson 42eda19e76 Move Mbed 5 support check so that it affects the exporters 2018-04-09 15:00:48 +01:00
Wilfried Chauveau ea42e6d157 add the target to travis build script & sw4stm32 export script. 2018-04-09 15:00:48 +01:00
Jimmy Brisson 1ea2e57b98 Minimize include path size in uvision export 2018-04-09 15:00:48 +01:00
Jimmy Brisson 6988e8e2d1 Move filter dot into exporter base class 2018-04-09 15:00:48 +01:00
Jimmy Brisson a6e05a011e Avoid incorrect config errors on export 2018-04-09 15:00:48 +01:00
Jimmy Brisson 7138038a6a Correct get_config imports 2018-03-26 18:52:24 +01:00
Steven Cartmell 4ff6dd27be Remove IAR compiler flag change from PR 2018-03-26 18:52:24 +01:00
Steven Cartmell 1965c111c5 Replace runtime strip_path function with compiler intrinsic equivalents
Sleep manager tracing strips the path from filenames and uses the result as an
identifier to track drivers that unlock/lock sleep tracing. Replace the function
that strips the path from the string, replace this function with a new macro,
__FILENAME__ which performs the same action in a compiler specific manner.

- GCC_ARM, use __builtin_strrchr which is optimized out at compile time.
- ARM, use __MODULE__ which returns the filename without path.
- IAR, specifiy the --no_path_in_file_macros compiler flag.
2018-03-26 18:52:24 +01:00
Tony Wu 3445a3a241 armcc - remove fromelf output before regenerating
Fix armcc recompile errors during elf2bin stage. Errors shown as follows:

Elf2Bin: mbed-os-example-wifi
Error: Q0147E: Failed to create Directory .\BUILD\REALTEK_RTL8195AM\ARM\mbed-os-example-wifi.bin\IMAGE2_TABLE: File exists
Finished: 0 information, 0 warning and 1 error messages.
[ERROR] Error: Q0147E: Failed to create Directory .\BUILD\REALTEK_RTL8195AM\ARM\mbed-os-example-wifi.bin\IMAGE2_TABLE: File exists
Finished: 0 information, 0 warning and 1 error messages.

Signed-off-by: Tony Wu <tonywu@realtek.com>
2018-03-26 18:52:24 +01:00
Hugues de Valon f2dcff5e4a Add ASM include flags in uvision export
When exporting to a uvision project, the include flags are not put in
the assembly compilation line. When assembling the files containing
includes, the search path will then fail. This patch adds the include
paths to the Assembly sequence, as it is done for compilation.
This issue was found in the pull request ARMmbed/mbed-os#6168.

Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
2018-03-26 18:52:24 +01:00
Hugues de Valon cd8f5834c3 Add ASM flags virtual path for make export
When exporting a mbed project to make_armc5, the include options (-I)
of the ASM flags are not pointing to the good folder. It should be
pointing to the root mbed-os folder and not the one in BUILD.
This issue was found in the pull request ARMmbed/mbed-os#6168.

Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
2018-03-26 18:52:24 +01:00
Jimmy Brisson 4611bb699e Correct type issue in export arg parsing 2018-03-26 18:52:24 +01:00
Jimmy Brisson 40d9b3eef8 Correct syntax for mbed export in Py3 2018-03-26 18:52:24 +01:00
Jimmy Brisson 2df7de25dc Correct Realtek post-build script to work in the online compiler 2018-03-26 18:52:24 +01:00
Alan Chuang 941dccac14 Enable iar export option for MTB_ADV_WISE_1510 2018-03-26 18:52:24 +01:00
Jimmy Brisson 90da5a5037 Convert option list to unicode 2018-03-26 18:52:24 +01:00