Commit Graph

60 Commits (a40b27322e4569b7a3020c75e56fb427aac73b60)

Author SHA1 Message Date
Jimmy Brisson 41c1553d75 Collect excluded libraries into ignored_dirs 2019-03-20 09:01:38 -05:00
Vincent Coubard c7169b0638 BLE - accept tpp extensions for header files. 2019-02-26 13:18:18 +00:00
Brian Daniels 7e1dff5aec Add .inc as a header file type.
Currently, if you were to add a directory that only contained .inc
files, this file would not be passed as an include path to the compiler.
This ensures that .inc files are also considered header files.
2019-02-13 17:59:04 -06:00
Cruz Monrreal b820ec8922
Merge pull request #9561 from theotherjimmy/test-resources
Tools changes for bare metal
2019-02-13 12:31:54 -06:00
Michael Schwarcz 8fb2467608 Force adding mbed-os root to include dirs 2019-02-10 16:32:21 +02:00
Jimmy Brisson 9b8a48f0f1 Rewrite and document _include_file 2019-01-31 13:55:33 -06:00
Jimmy Brisson 0265b57d35 Rewrite include finction to only heed nearest library 2019-01-31 11:31:33 -06:00
Jimmy Brisson f45b53fd47 Ignore non-config json files 2019-01-31 09:19:21 -06:00
Jimmy Brisson 250a1deab5 Handle recursive lib exclude/includes 2019-01-31 09:15:22 -06:00
Jimmy Brisson 54d6e865ec Fix indentation 2019-01-30 15:33:26 -06:00
Jimmy Brisson 06ea053419 Minor fixes 2019-01-25 09:42:47 -06:00
Jimmy Brisson e2849e6201 Implement and test filtering resources by libraries 2019-01-15 14:44:54 -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 d925d124c9 Merge branch 'remove-filer-paths' of https://github.com/theotherjimmy/mbed into dev_rollup 2018-11-15 13:58:45 +00:00
Jimmy Brisson 3db1a8aa67 Avoid constructing a FileRef when we don't use it 2018-11-13 09:53:50 -06:00
Jimmy Brisson 6e63acaa4e Resources: Avoid assuming that deps have a sane name
### Description

The prior fix assume that the dependencies through `.lib` references
would have a "sane" name. My definition of "sane" here is that the
reference will have a path that starts with the path to the `.lib` file
and _removes_ the `.lib` suffix. The online compiler does not remove the
`.lib` suffix. Instead, it keeps it. This makes the string replacement
in the prior PR fail.

Also, this is faster, and simpler.

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2018-11-09 13:15:13 -06:00
Jimmy Brisson b99fd4058b Resources: Use path names for ignored dirs
### Description

Ignored directories are collected for the sake of exporters that use
a blacklist-style approach similar to these build tools. This ignore
list will include `/filer/<gibberish>` when exported from the online
Compiler. This patch fixes that behavoir.

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2018-11-09 13:11:40 -06:00
Jimmy Brisson 95e2b07ad8 Resources: Compute parents using only header names
### Description

The prior fix made the assumption that you wanted to compute all of the
parents for a give header file going all the way up the path. This is
not true: you probably want to stop when the project stops. We already
keep track of a virtual name within the project, so instead, we compute
parents of the name, and generate the actual location of these files in
your FS as the path. This makes the solution robust offline and online
(I tested it with my local copy of os.mbed.com)

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2018-11-08 09:23:49 -06:00
Jimmy Brisson 0cba0a34dd Online: Include project root path
### Description

The prior logic assumed that "." would not be added to the include
paths, indicating that the project root would not be added to the
include paths correctly in the online environment ("." would be
incorrect there). This change set started by removing the addition
of "*.", and then fixed building from there.

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2018-11-06 13:47:26 -06:00
Cruz Monrreal c004aa857d
Merge pull request #8303 from theotherjimmy/fix-exclude-paths
Tools: Use logical paths in ignored_dirs
2018-10-19 14:06:38 -05:00
Jimmy Brisson 418ca3a473 Remove what we're checking for membership 2018-10-19 10:19:51 -05:00
Jimmy Brisson b84cef9c62 Fix minor formatting mistake 2018-10-02 09:55:49 -05:00
Jimmy Brisson f220628f92 Tools: Use logical paths in ignored_dirs
### Description

Exporting to GNU ARM Eclipse, E2 Studio, and other exclude-based IDEs
currently generats unusable project files online. This is because the
list of directories ignored in the scan is inconsistant about what sort
of paths are used: logical paths, or phisical paths. This patch makes
all paths in ignored_dirs logical. This should fix the excluding tags
in these project files.

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Breaking change
2018-10-02 09:55:31 -05:00
Jimmy Brisson f6310a00c3 Convert to a set in win2unix 2018-09-25 12:31:33 -05:00
Olli-Pekka Puolitaival e27a26eb9d Icetea support 2018-08-31 11:51:57 +03:00
Jimmy Brisson ff05e3ebd5 Refactor mbedignore behaivor into an object 2018-08-27 11:16:07 -05:00
Jimmy Brisson 88a5b263f0 Add tests from labeled directories 2018-08-27 11:12:02 -05:00
Jimmy Brisson a87d907268 Use labels keys instead of magic list 2018-08-27 11:12:01 -05:00
Jimmy Brisson 79ee1b8e02 Add "components" 2018-08-27 11:12:01 -05:00
Martin Kojtal 2a824a1ceb
Merge pull request #7559 from theotherjimmy/make-armc6-v8m
Export: Support Make + ArmC6 + v8m
2018-08-10 10:03:34 +02:00
Jimmy Brisson 289d494894 Use last linker script found 2018-08-02 09:02:06 -05:00
Jimmy Brisson 4da77916d5 Reduce include paths further
by 0.45% for Mbed Cloud Client
2018-07-27 09:43:30 -05:00
Jimmy Brisson 35498dc54c Correct abspath handling 2018-07-26 10:19:23 -05:00
Jimmy Brisson f9c6f21f2e Correct path handling after calls to `win_to_unix` 2018-07-26 09:51:18 -05:00
Jimmy Brisson c641fd7459 Sort every list we have 2018-07-16 14:12:00 -05:00
Jimmy Brisson 8166889885 Compute inc_dirs from headers 2018-07-16 14:11:08 -05:00
Jimmy Brisson a4cc32067d Add get_file_paths res API and use it 2018-07-16 14:11:08 -05:00
Jimmy Brisson d8ddfdc5a5 Populate lib_dirs 2018-07-16 14:11:08 -05:00
Jimmy Brisson 001c2d3b3b Revisit Mbed 2 building
It's much cleaner now
2018-07-16 14:11:08 -05:00
Jimmy Brisson c50d8a26dd Correct win2unix typo 2018-07-16 14:11:08 -05:00
Jimmy Brisson 7a26cd8da8 Use paths in linking 2018-07-16 14:11:08 -05:00
Jimmy Brisson 4109aa52e6 Privatize parts of the API that I don't want public 2018-07-16 14:11:08 -05:00
Jimmy Brisson 8303539415 Remove unused APIs 2018-07-16 14:11:08 -05:00
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 6ca218544d Correct resources usage in 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 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