Commit Graph

1254 Commits (e36c20ffda59a965b29d40037bb02026c7f43db9)

Author SHA1 Message Date
Martin Kojtal e97380913c tools: fix toolchain extend inc paths
inc paths might be a list or might not be (just single string). If they don't, we are ending up with non valid include paths (one letter include paths).
This as result would not compile.
2017-07-14 15:13:31 +01:00
Brian Daniels f1b45989db Sort the config parameters before printing them 2017-07-14 15:13:30 +01:00
Jimmy Brisson b963697ac4 Double escape defines
Fixes a bug where quoting gets stripped by the shell used in the makefile
and another bug where the lack of escaping would cause parser errors in
eclipse.
2017-07-14 15:13:30 +01:00
lordguilly 4759d7652c added the missing verbose=verbose to printout the command line correctly 2017-07-14 15:13:30 +01:00
Jimmy Brisson 1a2e93ab17 Reduce device has whitelist 2017-07-14 15:13:30 +01:00
Jimmy Brisson a2bbefeb3d Add line between local and module imports 2017-07-14 15:13:30 +01:00
Jimmy Brisson c85f4362bd Add license header 2017-07-14 15:13:30 +01:00
Jimmy Brisson 009019e38c Restrict device_has 2017-07-14 15:13:30 +01:00
Jimmy Brisson 7973551b73 Revamp option parsing and add more checks 2017-07-14 15:13:30 +01:00
Jimmy Brisson 05b9b8ae57 Stylize and add function docs 2017-07-14 15:13:30 +01:00
Jimmy Brisson 31cb52dc88 Added simple linter for targets.json 2017-07-14 15:13:30 +01:00
Mo Chen 24e6a780d3 Put quotes around include files
This fixes a problem when the path to include files have spaces.
See https://github.com/ARMmbed/mbed-os-example-uvisor/issues/31 for an
example of this problem.

Signed-off-by: Mo Chen <mo.chen@arm.com>
2017-07-14 15:13:29 +01:00
adbridge c2b2044480 Added template file for PR commit message plus minor review changes 2017-07-14 15:13:29 +01:00
adbridge a472cba08f Remove remaining use of args.tag and replace with tag obtained from config file 2017-07-14 15:13:29 +01:00
adbridge 268990bb1e Update branching option to branch from another branch.
Previously if updating a branch in the ARMmbed version of an example
repo, the branch would be created initially from master. This update
allows the new branch to be created by any pre-existing branch.
This update also moves the branch / fork / tag configuration data to the
json config file. It thus simplifies the command line.
-b on its own now indicates use the branch information in the config
-f on its own now indicates use the fork information in the config
2017-07-14 15:13:29 +01:00
Martin Kojtal 597a4a9ced IAR: remove stm32f413 from definitions
This definition requires IAR 7.80.2 and higher.
It will be readded once we all update to the latest IAR 7.80 patch release. For
future, please any new target should state what are the requirements on tools to
avoid this suprises.
2017-07-04 12:19:04 +01:00
Jimmy Brisson 16be3ff167 Fix style issues in IAR exporter 2017-07-03 11:46:59 +01:00
bcostm 2327be65a2 DISCO_L072CZ_LRWAN1: Add usb in build_travis.py 2017-07-03 11:46:51 +01:00
bcostm a7c23f12b7 NUCLEO_F767ZI: Add missing IAR definitions 2017-07-03 11:46:49 +01:00
Jimmy Brisson 59839e03c7 Fill out remainder of LazyDict dict compatibility 2017-07-03 11:46:48 +01:00
Jimmy Brisson 11d0cd0e7a Correct len and iter operators for LazyDict 2017-07-03 11:46:48 +01:00
Jimmy Brisson abbf61adb7 Delay relative_to and win_to_unix operations over features 2017-07-03 11:46:48 +01:00
Jimmy Brisson 62d6d95e0f Delay feature scan until it's rquired 2017-07-03 11:46:48 +01:00
Jimmy Brisson 8d78e7150e Improve speed of .mbedignore processing 2017-07-03 11:46:47 +01:00
Andrew Leech 49f46086f8 Prevent modifying existing targets.
A warning will be printed if it is attempted.
2017-07-03 11:46:46 +01:00
Andrew Leech 5f529a6df7 Add basic unit tests for custom_targets.json handling 2017-07-03 11:46:46 +01:00
Jimmy Brisson 1e2b7bef45 Clear custom-targets uppon setting new taregts.json location 2017-07-03 11:46:46 +01:00
Andrew Leech e940d204d7 Handle situation when options.source_dir is None 2017-07-03 11:46:45 +01:00
Andrew Leech 4606027784 Add custom_targets.json file contents to targets
Avoid duplication of update_target_data() code
Keep "custom_targets.json" filename definition in Targets()
2017-07-03 11:46:45 +01:00
Jimmy Brisson f22dd38ad5 Find extra targets in all source folders 2017-07-03 11:46:45 +01:00
Andrew Leech 9c575cdd1f Recursively merge extra_targets into targets
Recursively merge any target configs in extra_targets.json rather than completely replacing keys at the top level
2017-07-03 11:46:44 +01:00
Andrew Leech 95c681c951 Add extra_targets.json support to build tools
If the file extra_targets.json exists in the working directory load it over the top of the built in targets.json for defining new and overriding built in mbed target definitions.
2017-07-03 11:46:44 +01:00
arostm 90a68fb074 DISCO_F413ZH: Remove usb from build_travis.py 2017-07-03 11:46:43 +01:00
arostm a7b41df447 DISCO_F413ZH: Typo correction in build_travis.py 2017-07-03 11:46:43 +01:00
arostm e4e3d0f3a4 DISCO_F413ZH: delete RTOS in build_travis.py 2017-07-03 11:46:42 +01:00
arostm 5d04388686 DISCO_F413ZH: add IAR exporter 2017-07-03 11:46:42 +01:00
arostm cc1386ae8e DISCO_F413ZH: corrections
- leds definition
- add sw4stm32 exporter
- recomment mco debug
2017-07-03 11:46:39 +01:00
arostm 3a8612f656 DISCO_F413ZH: add terget.json, build_travis.py and test.py changes 2017-07-03 11:46:39 +01:00
amq cc84e140d8 Fix unresolved include of mbed_config.h in Eclipse 2017-07-03 11:46:37 +01:00
sarahmarshy 6f149fa0f3 Turn off "browse information" in Uvision template
"Browse information," or the indexer for MDK, causes extremely long
build times when enabled.
2017-07-03 11:46:37 +01:00
bcostm b7aa3334c5 DISCO_L475VG_IOT01A: remove rtos from build_travis.py 2017-06-20 17:13:46 +01:00
bcostm c4bf5c215e Remove fat, usb_host, USB_10, USB_11 in build_travis.py --> alignment with other targets after rebase 2017-06-20 17:13:44 +01:00
bcostm 15f20cb7ab Add "01A" suffix in target name 2017-06-20 17:13:42 +01:00
bcostm 0de4feffb0 Add DISCO_L475VG_IOT in build, export and tests python files 2017-06-20 17:13:41 +01:00
Jimmy Brisson 38370530b8 Fix a bug in print_large_string 2017-06-20 17:13:39 +01:00
Jimmy Brisson a68fa4ae98 Accept app config option for export 2017-06-20 17:13:38 +01:00
Brian Daniels b8b416eb5a Enable verbose builds when running example build tests 2017-06-20 17:13:31 +01:00
Jimmy Brisson 65db7d19eb Export static files from mbed export 2017-06-20 17:13:30 +01:00
Jimmy Brisson ceae03eccc Filter supported devices with a post-bin whitelist in uvision 2017-06-20 17:13:30 +01:00
Jimmy Brisson ee5006f672 Improve error messages for bootloader build errors 2017-06-11 09:48:46 +01:00