Commit Graph

2132 Commits (10af90ac0a09bd6dab980972e4d6dbc5cd8d7b03)

Author SHA1 Message Date
Jimmy Brisson 60e08b196c Don't flatten build directories
Make a really good guess
2018-07-16 14:11:08 -05:00
Jimmy Brisson 0294f62c74 Put all src_paths into the root 2018-07-16 14:11:08 -05:00
Jimmy Brisson de913e1ea2 Improve resources API to include more use cases 2018-07-16 14:11:08 -05:00
Jimmy Brisson 06f3fca6cf Correct the _only_ detect_duplicates call 2018-07-16 14:11:08 -05:00
Jimmy Brisson 6ca218544d Correct resources usage in tests 2018-07-16 14:11:08 -05:00
Jimmy Brisson a57942a813 Remove test about unused parameter in find_tests 2018-07-16 14:11:08 -05:00
Jimmy Brisson 9326386daf Switch to Resources in build_api and tests 2018-07-16 14:11:08 -05:00
Jimmy Brisson 1f6862b41f Remove needless None-passing
It's now the default
2018-07-16 14:11:08 -05:00
Jimmy Brisson 9d8c925f76 Remove unused function 2018-07-16 14:11:08 -05:00
Jimmy Brisson 73e890fdc6 Simplify exclusion logic 2018-07-16 14:11:08 -05:00
Jimmy Brisson 226082999a Remove base_path argument from several methods 2018-07-16 14:11:08 -05:00
Jimmy Brisson 786c228958 Cleanup legacy target+toolchain consts 2018-07-16 14:11:08 -05:00
Jimmy Brisson 8dab7417ae Cleanup comments and code near add_directory 2018-07-16 14:11:08 -05:00
Jimmy Brisson 0ad5df379c Create fully incremental scans without lazy dicts 2018-07-16 14:11:08 -05:00
Jimmy Brisson 361fc65f08 Allow missing toolchain parameter to get_config 2018-07-16 14:11:08 -05:00
Jimmy Brisson 4c7cf21feb Require notifier in resources 2018-07-16 14:10:21 -05:00
Jimmy Brisson 7c42302854 Update test builder to use new resources 2018-07-16 14:10:21 -05:00
Jimmy Brisson 3e6e9e8c26 Remove unused git hook 2018-07-16 14:10:21 -05:00
Jimmy Brisson 87146cd66a Cleanup and reduced scanning 2018-07-16 14:10:21 -05:00
Jimmy Brisson 519e338667 Rework export resource scanning 2018-07-16 14:10:21 -05:00
Jimmy Brisson 2d8cf737e4 Move resource scanning into it's own module 2018-07-16 14:10:21 -05:00
Jimmy Brisson 285d661373 Show Mbed 2 support in compile -S 2018-07-16 14:07:41 -05:00
Jimmy Brisson 989986288f Correct uvision exporter support check 2018-07-16 11:51:20 -05:00
Jimmy Brisson 9968b547d9 Allow ARMC6 only mbed 5 releases 2018-07-16 08:42:55 -05:00
Cruz Monrreal 904bdf8016
Merge pull request #7477 from theotherjimmy/fix-customtgt-tests
Tools: Skip target lookup in test builds.
2018-07-14 12:15:04 -05:00
Cruz Monrreal 39407adf1b
Merge pull request #7475 from theotherjimmy/py3-release-ver-parse
Tools: py3 compatible mbed-os version lowercasing
2018-07-14 06:29:03 -05:00
Cruz Monrreal d4a0e6cf7a
Merge pull request #7503 from theotherjimmy/unquote-make
Tools: Drop quotes from makefiles
2018-07-13 22:13:33 -05:00
Cruz Monrreal 9667b5e49b
Merge pull request #7500 from theotherjimmy/fix-gcc-v8m-export
Tools: Correct cmse lib creating with make_gcc_arm exporter
2018-07-13 22:13:12 -05:00
Cruz Monrreal 1ee7d8b6d5
Merge pull request #7481 from theotherjimmy/py3-export-supported
Tools: Fix py3 bug with mbed export -S
2018-07-13 22:12:59 -05:00
Cruz Monrreal d33d93bf47
Merge pull request #7501 from theotherjimmy/gen-file-mkdir
Tools: Make directories before gen file uses them
2018-07-13 09:12:07 -05:00
ccli8 1dbdcb2c8b [M2351] Remove M2351KIAAEES from iar_definitions.json
M2351 doesn't support IAR yet.
2018-07-13 13:42:42 +08:00
Jimmy Brisson 33a56b4470 Drop quotes from command line make 2018-07-12 13:11:57 -05:00
Jimmy Brisson ef7b466958 Correct cmse lib creation for the make_gcc_arm 2018-07-12 10:49:26 -05:00
Jimmy Brisson 9a3ad69ee9 Ensure that files generated have a directory 2018-07-12 10:27:14 -05:00
Jimmy Brisson 51276a66b0 Update compiler check to allow only v6 for OS 5 2018-07-12 18:01:40 +08:00
Jimmy Brisson 4400765ece Add `Mxx_NS` core-based labels 2018-07-12 18:01:37 +08:00
ccli8 8f2c717c4c [M2351] Fix part number in IAR export 2018-07-12 17:51:56 +08:00
Deepika ffcc438b5a [M2351] Use Cortex M23 specific header files and interrupts
1. Update use of correct header files
2. Added missing entry of M2351 device in IAR defines.
3. Removed support of ARM toolchain in targets.json
2018-07-12 17:51:00 +08:00
Jimmy Brisson e68b328cf8 Fix Python3 bug with `mbed export -S` 2018-07-11 11:44:50 -05:00
Jimmy Brisson 6d42bd31c6 Tools: Correct release version "parsing" for py3 2018-07-11 09:46:03 -05:00
Jimmy Brisson 5f8aa893ca Partial revert of "CMSIS/RTX: Adapt Mbed OS to CMSIS/RTX device support scheme" 2018-07-11 13:49:57 +01:00
Cruz Monrreal 3becf77b10
Merge pull request #7466 from theotherjimmy/py3-version-check
Tools: py3 compatible version checks
2018-07-11 07:34:49 -05:00
Cruz Monrreal 45b8ec981b
Merge pull request #7410 from theotherjimmy/explicit-exporer-aliases
Tools: Move exporter alias handling to CLI
2018-07-10 22:04:01 -05:00
Jimmy Brisson 444d021b0e Correct string usage in version checking 2018-07-10 14:04:26 -05:00
Jimmy Brisson a9abcf1b15 Add aliases to example exporter options 2018-07-09 09:49:55 -05:00
Jimmy Brisson 930a6119d7 Skip target lookup in test builds.
This should allow custom targets to be transferred to each process
when building in parallel
2018-07-09 09:44:55 -05:00
Jens Alfke 5543849ba4 Recognize ".cc" and ".hh" source file extensions
".cc" --> C++ source code
".hh" --> header

This change allows existing source code with this naming
convention (e.g. my company's) to be used in mbed.os projects.
2018-07-06 10:10:22 -07:00
Jimmy Brisson 047cb631e8 Correct -E help 2018-07-06 10:29:15 -05:00
Jimmy Brisson ec0a4933fa Correct argv usage 2018-07-06 10:22:37 -05:00
Jimmy Brisson 44030c23d3 Simplify main function 2018-07-06 10:20:37 -05:00
Jimmy Brisson 71323af2f5 Reformat part of project.py 2018-07-06 10:10:01 -05:00
Cruz Monrreal 0ba46e74a6
Merge pull request #7377 from theotherjimmy/stats-depth-zero
Tools: Summarize stats when depth is 0
2018-07-05 10:38:18 -05:00
Cruz Monrreal fab08498f8
Merge pull request #7277 from theotherjimmy/error-on-unknown-config
Tools: Persist config errors until validation occurs
2018-07-05 10:36:35 -05:00
Jimmy Brisson b56a7a6a5a Move exporter alias handling into CLI 2018-07-03 13:56:23 -05:00
Jimmy Brisson e53537c267 Use defaultdict in the other place 2018-07-03 10:03:27 -05:00
Cruz Monrreal 9c4c630356
Merge pull request #7367 from theotherjimmy/check-arm-component
Tools: Detect Arm Compiler version using Component
2018-07-03 07:35:57 -05:00
Cruz Monrreal 72684e3a2e
Merge pull request #7370 from jeromecoutant/PR_PERIPPINO
build_api.py : add comment about separate_names
2018-06-29 20:07:20 -05:00
Jimmy Brisson 982d2085ef Summarize memory map when --stats-depth is 0 2018-06-29 12:09:53 -05:00
jeromecoutant e17b1df13d build_api.py : add comment about separate_names 2018-06-29 09:30:07 +02:00
Jimmy Brisson 95c33f7807 Include symbols in dumped build profiles
This will make incremental compile more complete, taking device_has and
inheritance hierarchy into account.
2018-06-28 15:05:23 -05:00
Jimmy Brisson ed04c1b413 Add a test for MDK pro version detection 2018-06-28 10:58:52 -05:00
Jimmy Brisson 37013fb489 Use Component section for ARM compiler version 2018-06-28 10:51:12 -05:00
Jimmy Brisson 5795f5326e Allow missing "bootloader_supported" key 2018-06-28 10:36:18 -05:00
Jimmy Brisson 2a9923f86e Skip invalid undefined errors 2018-06-28 10:26:00 -05:00
Jimmy Brisson 12f490fa02 Make sure that there is always a config_errors member 2018-06-28 10:26:00 -05:00
Jimmy Brisson c380304b93 Persist config errors until validation occurs 2018-06-28 10:26:00 -05:00
Cruz Monrreal cfe0789e99
Merge pull request #7356 from SenRamakri/sen_CrashLogParserCrashFix
Fix tool crashing when lines end with cr(not crlf)
2018-06-28 10:10:39 -05:00
Cruz Monrreal 8baa8c5997
Merge pull request #7353 from jeromecoutant/PR_BUILDOS2
build_api script : separate PeripheralPins.o
2018-06-28 10:08:42 -05:00
Cruz Monrreal dec43922ee
Merge pull request #7247 from theotherjimmy/toolchain-version-check
Tools: Check compiler version
2018-06-27 18:42:49 -05:00
Senthil Ramakrishnan 69a149a232 Fix tool crashing when lines end with cr(not crlf) 2018-06-27 17:06:50 -05:00
jeromecoutant eba9fb1f8f build_api script : separate PeripheralPins.o 2018-06-27 17:15:37 +02:00
Jimmy Brisson c273de6545 Test and correct GCC version check 2018-06-26 09:25:33 -05:00
Jimmy Brisson 8c17a31c42 Test IAR version check 2018-06-26 09:25:21 -05:00
Jimmy Brisson c174ca3f85 Test and correct ARMCC version check 2018-06-26 09:15:01 -05:00
Jimmy Brisson e439b85de1 prepend VPATH to preinclude and don't escape asm macros 2018-06-26 08:47:41 -05:00
Jimmy Brisson 675ca1a698 Add empty configuration for asm profile test 2018-06-26 08:44:37 -05:00
Jimmy Brisson f87fab5f33 Use via file for ASM macros in IAR 2018-06-26 08:44:37 -05:00
Jimmy Brisson a775e6992e Refactor via files to use a common method 2018-06-26 08:44:37 -05:00
Jimmy Brisson a855281633 Use preinclude of mbed_config.h in all toolchains 2018-06-26 08:44:37 -05:00
TTornblom dcd17935e3 IAR: Fixed #6670 2018-06-26 08:44:37 -05:00
Jimmy Brisson 0e56c18058 Check for no match in version check 2018-06-25 18:04:11 -05:00
Jimmy Brisson 59e8631d3a Escape '.' in regex 2018-06-25 17:58:11 -05:00
Jimmy Brisson 1a9474e4d9 Search all stdout for version regex; check > 1 matches 2018-06-25 14:41:37 -05:00
Jimmy Brisson 2aea6c39f7 Improve ARM compiler regex 2018-06-25 11:33:44 -05:00
Cruz Monrreal 8e170ccbd1
Merge pull request #6925 from TomoYamanaka/feature-flashiap_bootloader
Support Flash iAP and Bootloader for GR-PEACH and GR-LYCHEE
2018-06-22 14:23:57 -05:00
Cruz Monrreal 24daf18044
Merge pull request #7105 from codeauroraforum/mxrt_add_ivt
MIMXRT1050: Update to EVK Rev B
2018-06-22 10:15:33 -05:00
TomoYamanaka 72fd8cafd7 Update arm pack manager for GR-PEACH
I changed the information("sectors" and "memory") of GR-PEACH for supporting bootloader in index.json file of arm pack manager.
2018-06-22 10:53:21 +09:00
TomoYamanaka d5f0e1727b Fix definitions of IAR exporter for GR-PEACH and GR-LYCHEE 2018-06-22 10:47:23 +09:00
TomoYamanaka 22b31e45a5 Update arm pack manager for GR-LYCHEE
I added the information of GR-LYCHEE for supporting bootloader in index.json file of arm pack manager.
2018-06-22 10:47:22 +09:00
Cruz Monrreal 95d2b3d55c
Merge pull request #7133 from OpenNuvoton/nuvoton_support_tz_partition
Override ROM/RAM start/size for TrustZone targets
2018-06-21 17:49:47 -05:00
Mahesh Mahadevan 632892d355 MIMXRT1050: Update to EVK Rev B
1. Add the IVT header to the binary as this is required for boot up
   This was earlier added by the DAPLink firmware. As it is no longer
   handled in DAPLink, the header needs to be added inside mbed.
2. Update drivers

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-06-21 13:34:12 -05:00
Cruz Monrreal II 799cfdbbc2 Compiling Cortex-A cores in uVision is not supported.
Reference: http://www2.keil.com/mdk5/selector
2018-06-21 09:13:24 -05:00
Jimmy Brisson 52e640fc1d Add Rom config info getter and rom defines
* MBED_ROM_START = start of current rom (independent of BL modes)
 * MBED_ROM_SIZE = size of current rom (independent of BL modes)
2018-06-20 10:47:04 -05:00
Cruz Monrreal c4edf065d1
Merge pull request #7266 from bentcooke/update_arm_pack_index
update arm_pack_manager index
2018-06-20 10:02:54 -05:00
Cruz Monrreal f11d0f3be7
Merge pull request #7261 from kjbracey-arm/iar-jump-warning
IAR: Suppress C "bypasses initialization" warning
2018-06-19 21:46:14 -05:00
ben 2bf0273a5c update pack index 2018-06-19 14:42:32 -05:00
Jimmy Brisson a87575fec5 Use Non-blocking Error and LooseVersion 2018-06-19 10:41:08 -05:00
Jimmy Brisson 4e6b830c91 Allow hex BL, SD and application merging 2018-06-19 09:27:09 -05:00
Kevin Bracey 81ed8014cd IAR: Suppress C "bypasses initialization" warning
By default IAR generates "transfer of control bypasses initialization"
warnings for C code - it's a legal construct that frequently occurs when
doing Linux-style "goto error". Many occurrences in Nanostack.

Suppress the warning for C only, to align with GCC and ARMCC. Have to
take care not to put it in the "common" section, as this would suppress
it for C++, where it actually is illegal.
2018-06-19 15:54:28 +03:00
Martin Kojtal eb3d3fdb54
Merge pull request #6929 from jeromecoutant/PR_SCRIPT
STM32 : script to generate PeripheralPins.c for new target addition
2018-06-19 14:26:22 +02:00