Michael Schwarcz
9013dc8e5d
Update tools/config/__init__.py
...
Co-Authored-By: orenc17 <oren.cohen@arm.com>
2019-02-09 13:55:32 +02:00
Oren Cohen
e162d69f56
Make delivery_dir relative to the json it was declared in
2019-02-07 19:13:01 +02:00
Oren Cohen
44c1a2cea3
Make delivery_dir relative to mbed_os root
2019-02-07 14:56:57 +02:00
Oren Cohen
04a22a2e69
Improvement to artifact delivery method
...
A target can define a delivery directory instead of the default option
2019-02-06 15:26:59 +02:00
Cruz Monrreal II
de4b7607a0
Simplified max/min condition
2019-01-28 14:01:48 -06:00
Cruz Monrreal II
d9add3447d
Added None check for min in config tools
2019-01-28 12:59:43 -06:00
Cruz Monrreal
442cbba141
Merge pull request #7799 from bridadan/remove_allowed_features
...
Removing feature names from the "allowed feature" config list.
2018-12-19 13:37:59 -06:00
Brian Daniels
0af1a4bcd2
Removing feature names from the "allowed feature" config list.
...
These features have all been removed from Mbed OS in the past. This
prevents their use in the future.
2018-12-07 10:02:42 -06:00
Brian Daniels
fa4ead048d
Config parameters override macros
2018-12-06 11:19:24 -06:00
Brian Daniels
5957ffd306
Ensure macros and parameters with the same name are not repeated.
...
This covers the case when a macro is set with the same name as a
parameter. Previously, the macro would be repeated on the command line,
which causes certain toolchains to break (ex. IAR assembler). Now the
config system will override the parameter's value with the macro's
value.
2018-12-06 10:31:38 -06:00
Cruz Monrreal
a1625895c3
Merge pull request #8097 from JammuKekkonen/fix_bootloader_build_for_nrf52
...
Add support for nrf52_dk bootloader
2018-12-04 16:10:15 -06:00
Oren Cohen
dd73fa689c
PSA SPM
...
* Intorduce PSA-SPM to mbed-os
* Add SPM tests (for PSA targets)
* Add PSA PRoT internal storage Secure implementation
* Integrate SPM into the boot proccess
* PSA manifest data generator
* Introduce PSA targets skeleton to mbed-os
* Add artifact delivery to the tools
2018-11-27 09:16:35 +02:00
Martin Kojtal
5b42e2886f
Merge pull request #8607 from aashishc1988/ram_rom_fetch
...
Fetch ram/rom start/size
2018-11-22 10:49:50 +01:00
Martin Kojtal
13b60c2991
Merge pull request #8673 from kegilbert/config-range-limits-dev
...
Add Mbed Configuration Option Range Limits
2018-11-19 13:14:02 +00:00
Brian Daniels
6cab1e0018
Fixing traceback when running mbed test
2018-11-16 15:28:50 -06:00
Aashish chaddha
0c594a42dc
The check for managed bootloader support should be in regions and we need a try/catch when we call it.
...
Moved "bootloader_not_supported" check to where it was and handle that exception at only one place.
Removed ram/rom size info for realtek from targets.json. THe info we have is not correct.
was Not handling config exceptions from regions and ram_regions property
adding rom-ram info for REALTEK_RTL8195AM
2018-11-15 15:28:14 -06:00
kegilbert
9116b9921b
Remove redundent line
2018-11-15 11:44:53 -06:00
Brian Daniels
5ec1d7c221
Update tools/config/__init__.py
...
Co-Authored-By: kegilbert <K.Gilbert.CH@gmail.com>
2018-11-15 11:43:41 -06:00
kegilbert
9d9cd84942
Refactor logic to improve readability
...
Move JSON accepted value ranges back to JSON array
2018-11-14 18:31:59 -06:00
kegilbert
7a436660e9
Handle None and hex values in string format
2018-11-13 16:12:35 -06:00
Aashish chaddha
1627968bcb
Missed one change to convert into right data type
2018-11-12 13:37:27 -06:00
Aashish chaddha
3956451c07
Fixing some corner cases
...
1. Adding SRAM in available ram
2. If the target doesn't exist in cmsis but targets.json, handle accordingly and raise apt exceptions where needed.
3. If no sram is provided, raise exception
2018-11-12 13:28:01 -06:00
kegilbert
b53738750f
Add guard against accepted and range definitions.
...
Minor reformat of error text on accepted value messages
2018-11-08 19:00:39 -06:00
kegilbert
a834794b53
Add range specifers for config values
2018-11-08 10:18:30 -06:00
Aashish chaddha
27f20c7478
Fetch RAM/ROM information from CMSIS pack and add as defines
...
RAM/ROM memory data of target is required for statistics and linker
files, goal here is to fetch maximum 4 RAM/ROM regions from CMSIS pack
and make them available for C/C++/Linker flags as defines
2018-11-07 10:20:28 -06:00
Naveen Kaje
e28c260763
tools: update build_api and __init__ as per review comments
2018-11-04 19:47:06 -06:00
Naveen Kaje
2da8950b2a
tools: process bootloader chunks
...
NRF Softdevice hex file can be in chunks.
Make sure we account for the space where the bootloader resides
by including all the chunks within the end of rom marker. This will
clearly mark out the initial bootloader region.
2018-10-29 16:36:56 -05:00
Cruz Monrreal
6e8d9f0099
Merge pull request #8270 from theotherjimmy/fix-7392
...
Tools: Ensure vtor reserved bits are all 0
2018-10-11 10:12:25 -05:00
Simo Sillankorva
fac5ff45ed
Remove max_app_addr checking from .hex
...
* Remove max_app_addr logic from tools/config/__init__.py as it was not working properly with some of the .hex files.
2018-10-05 03:15:24 -07:00
Jimmy Brisson
7a97f480f8
Tools: Ensure vtor reserved bits are all 0
...
### Description
The VTOR reserves the lowest 7 bits. This PR changes the round up
behavoir of the application offset to make sure that the address used
for the in-flash vector table always ends in 7 0's.
Fixes #7392
### Pull request type
[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Breaking change
2018-09-27 10:04:19 -05:00
Andrew Leech
340f0a6a57
Ensure target bootloader settings can be overridden in mbed_app.json
...
Values like `target.mbed_rom_start` were being replaced by None and then ignored.
2018-09-19 15:35:13 +10:00
Jammu Kekkonen
c069cefbc8
Review fixes 2 for bootloader region generation
2018-09-17 15:56:34 +03:00
Jammu Kekkonen
ae4b67e6b2
Review fixes for bootloader region generation
2018-09-13 12:17:00 +03:00
Jammu Kekkonen
4952e31b8b
Fix bootloader build region generation and add support for bootloaders with multiple segments, as required by NRF52 bootloader.
2018-09-12 09:30:48 +03:00
Brian Esquilona
4db8a106bf
Added BOOTLOADER feature, copy bootloader binaries and LICENSE into mbed OS repository for supported targets
2018-08-21 10:09:28 -05:00
Jimmy Brisson
fb42bb0439
Stabilize macro ordering in mbed_config.h
2018-07-30 11:05:32 -05:00
Jimmy Brisson
de913e1ea2
Improve resources API to include more use cases
2018-07-16 14:11:08 -05:00
Jimmy Brisson
2d8cf737e4
Move resource scanning into it's own module
2018-07-16 14:10:21 -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
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
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
Jimmy Brisson
92abbb7599
Use memories passed in when getting memory specs
2018-06-13 09:33:39 -05:00
Jimmy Brisson
8e26e2c198
Skip second header when every bl config paramater used
2018-06-12 09:02:14 -05:00
Jimmy Brisson
09cdc0631d
Move from tc constructor to config vars
2018-06-08 09:59:19 -05:00
ccli8
0cee003bd9
Fix flash start/size in bootloader related build
...
This fix relies on target configuration options (mbed_rom_start/mbed_rom_size) defined
to override CMSIS pack or no CMSIS pack.
This is useful for a target which:
1. Doesn't support CMSIS pack, or
2. Supports TrustZone and user needs to change its flash partition
2018-06-06 09:45:44 +08:00
Ron Eldor
23ba8bc1f5
Change Cryptocell target to a feature
...
Change the Cryptocell310 target to `FEATURE_CRYPTOCELL310`
2018-05-21 13:40:43 +03:00
Martin Kojtal
42d77ecd13
Merge pull request #6658 from theotherjimmy/lib-override-target
...
Allow library configs to override target configs
2018-04-19 17:41:34 +02:00