Commit Graph

2920 Commits (d9b3de3584925d1bc4b54339c5df601aed1ac824)

Author SHA1 Message Date
Jimmy Brisson d9b3de3584 Parse section starts beginning with whitespace 2019-04-24 13:37:42 +01:00
Jimmy Brisson 9efccffa02 Correct all linting errors 2019-04-24 13:37:42 +01:00
Brian Daniels af73a39440 Make files call the linker from the build dir, so correct the path 2019-04-24 13:37:42 +01:00
Brian Daniels 9c7175fa8f Correct call to add_file_ref 2019-04-24 13:37:42 +01:00
Brian Daniels c10528b5d5 Only store references to one linker script in a resources object.
Projects have only ever made use of one linker script per compiler.
However, the tools would store references to multiple linker scripts in
a project and select one in a non-deterministic way. Now we clear out
any existing linker script when we add a new one to a project. This way,
the last added linker script is always used.
2019-04-24 13:37:42 +01:00
Brian Daniels 6774caf6d8 Test to ensure only the last linker file is used in a project 2019-04-24 13:37:42 +01:00
Naveen Kaje c3fa5252e5 tools: fix the path generated to the sct file
The sct file path generated in the online compiler
is incorrect. Fix that by changing the correct_scatter_shebang
API to accept a FileRef object instead and use the path.

This change should go with change in online compiler that removes
the override for correct_scatter_shebang.
2019-04-24 13:37:42 +01:00
Brian Daniels 5251ec69ac Remove outdated projectfiles case for makefiles 2019-04-24 13:37:42 +01:00
Brian Daniels 5ceedf11ec Fixing zipped makefile exports.
When zipping up projects, the makefile exporter brings every directory
supplied as --source under the same directory, even if they are in a
parent directory. There was some code that was clearing the leading
"../" components. This lead to an empty string ("") being supplied to
the "into_path" arg for "resources.add_directory". Since "" is not None,
the default behavior to place it in the same directory was not being
used. The extra "" caused a leading "/" to be added, making everything
placed a the absolute root of the filesystem ("/").

Now we check to see if the "into_path" is an empty string and ignore it
if that's the case.
2019-04-24 13:37:42 +01:00
Brian Daniels a21c0611da Fixing copying of static filerefs 2019-04-24 13:37:42 +01:00
Brian Daniels 286a3690bf Add c_cpp_properties file to gen_files for zipping 2019-04-24 13:37:42 +01:00
Brian Daniels e29f9838f3 Create template for missing generated vscode file
This file was being dumped to the filesystem without going through the
"gen_file" mechanism, thus it was missed when being zipped up.
2019-04-24 13:37:42 +01:00
Brian Daniels dac6e3c1be Fix incorrect reference to a filetype 2019-04-24 13:37:42 +01:00
Brian Daniels 44fad8467d Move all generated file paths to FileRefs in the exporters.
The FileRefs allow you to preserve the correct file paths in the online
compiler. It also allows you to preserve the correct file paths for
generated files.
2019-04-24 13:37:42 +01:00
Brian Daniels 7ec8ce4445 Fixing path comparisons on Windows 2019-04-24 13:37:42 +01:00
Aleksi Klasila 8786f4c692 rm ["python", "-m"] from build_command 2019-04-24 13:37:42 +01:00
alekla01 c923ae3eac examples test compile optional verbose 2019-04-24 13:37:42 +01:00
Brian Daniels b8ed898642 Break up large prints from --supported 2019-04-24 13:37:42 +01:00
Brian Daniels 39205aed8b Allow toolchain paths to be wrapped in quotes 2019-04-24 13:37:42 +01:00
Oren Cohen 69ee1efa9d Check that required toolchains are in PATH 2019-04-24 13:37:42 +01:00
Oren Cohen fe931cd85a Add {# End of file #} for TF-M templates 2019-04-05 13:59:30 +01:00
Oren Cohen 2d12cc0b14 TFM autogen scan the entire tree 2019-04-05 13:59:24 +01:00
Laurent Meunier 09db2253eb STM32WB55RG: Add board declaration in tools
In travis build and in SW4STM32 exporter
2019-04-05 12:27:05 +01:00
Andrii Lishchynskyi 4f181324e8 Fix applying all possible setting 2019-04-05 12:27:02 +01:00
Andrii Lishchynskyi 4d33732fc7 Replace 'resolution_order_names' and 'extra_labels' with 'labels' Get rid of 'next' function 2019-04-05 12:27:01 +01:00
Andriy.Lishchynskyi b7676b36fe Enhancement to remove duplicates in Eclipse launch configurations 2019-04-05 12:27:01 +01:00
junichi.katsu@uhuru.jp ce8f5ece3f added sectors information 2019-04-05 12:27:01 +01:00
junichi.katsu@uhuru.jp dee9192515 added STM32F767VI 2019-04-05 12:27:01 +01:00
ccli8 eba8eec352 Support export IAR8 project
1. Override IlinkOverrideProgramEntryLabel and IlinkProgramEntryLabel to specify
   entry point for debuger.
2. Refer to doc at the link below for post-export steps. Usually, 'export' is nearly
   out of the box and just install 'Nu-Link Driver (IAR)' to update Nuvoton device
   database in IAR.
   https://github.com/OpenNuvoton/NuMaker-mbed-docs/blob/master/IAR/DEBUG_IAR.md
2019-04-05 12:27:01 +01:00
jeromecoutant d627be3423 Build script: add explicit console log in case of linker script error 2019-04-05 12:27:00 +01:00
jeromecoutant 5233c388ea NUCLEO_L4R5ZI_P: enable sw4stm32 export 2019-04-05 12:27:00 +01:00
Jimmy Brisson 7d6a07e76e Parse errors and warnings with ARMC6 2019-04-05 12:26:58 +01:00
studavekar e2a296a9f7 update gcc arm version to 6-2017-q1-update 2019-04-05 12:26:57 +01:00
Jimmy Brisson f4fee83e7e Allow both path seperator types in flash algo names 2019-04-05 12:26:56 +01:00
Jimmy Brisson e748135713 Update flash algo default with CPM 0.2.4
### Description

Cmsis Pack Manager 0.2.4 corrected parsing of specifically the flash
algorithm default attribute. It was allowed to be "0", "1", "true"
and "false". CPM 0.2.3 parsed "1" into false, and this behavior was
corrected in 0.2.4.

This PR uses 0.2.4 to update the index.

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2019-04-05 12:26:55 +01:00
Brian Daniels 9df1d0b8b7 Fixing path comparisons on Windows 2019-04-05 12:26:29 +01:00
Oren Cohen 3f63ffbef3 Set default value of extra args to [] 2019-04-05 12:26:28 +01:00
Oren Cohen c397d9e62a Missing docstring 2019-04-05 12:26:28 +01:00
Oren Cohen 400b024c30 Specify extra args with -x and verbose_check_call 2019-04-05 12:26:28 +01:00
Oren Cohen f3db129ad9 Revert back to direct calls to python 2019-04-05 12:26:28 +01:00
Oren Cohen 048e9830fc small fix 2019-04-05 12:26:28 +01:00
Oren Cohen 4f329afc5f Add list option 2019-04-05 12:26:27 +01:00
Oren Cohen 094efe67ad Docs update 2019-04-05 12:26:27 +01:00
Oren Cohen 693138944e Refactor
* Use default image command generator.
* Call directly to mbed-cli.
* Add --skip-tests.
2019-04-05 12:26:27 +01:00
Oren Cohen b5acac0d8b List PSA secure platform and add choices option 2019-04-05 12:26:27 +01:00
Oren Cohen 91507a8256 Overhaul logging and verbosity
* Default verbose
* -q for quiet build with minimal status prints
2019-04-05 12:26:27 +01:00
Leszek Rusinowicz 5664a928f1 Workaround for ARMC6 Windows 7 assembler issue
On Windows 7 using --preproc option in ARMC6 assembler doesn't work
when -MD option is also specified. Compiler creates incorrect filename for
dependency file and compilation files.
To workaround this issue, this change returns to using a temporary file and
separately calling preprocessor and assembler (as in a case of ARMC5).
2019-04-05 12:26:25 +01:00
kegilbert ed08c8f940 Remove gnuarmeclipse from baremetal export testing
baremetal does not currently work with gnuarmeclipse
2019-04-05 12:26:25 +01:00
Kevin Gilbert 3e9e126707 Add baremetal example to testing 2019-04-05 12:26:25 +01:00
ccli8 b8a626c3ab Fix MBED_RAM_START/MBED_RAM_SIZE symbol generation
1. Fix MBED_RAM_START/MBED_RAM_SIZE are not generated when there are
   target.mbed_ram_start/target.mbed_ram_size overrides
2. Fix MBED_RAM_START/MBED_RAM_SIZE are duplicated.
2019-04-05 12:26:24 +01:00