Commit Graph

716 Commits (d55e739c663b200f0aed2eb04a32af61d189db40)

Author SHA1 Message Date
Sarah Marsh d55e739c66 Capable of testing export only to IDEs that do not have build functions 2016-11-18 12:17:44 +00:00
Brian Daniels 868dcdc211 Using Popen for uvision and unifying the structure of the build function across exporters 2016-11-08 10:44:53 +00:00
Jimmy Brisson 8a379958e5 Force make exporter to search PATH for compilers 2016-11-08 10:44:52 +00:00
sarahmarshy 93e5e235b1 Directory traversal error
Change indentation level for directory traversal, so that we only move up at the end of exporting one project for all ide/target combinations.
2016-11-08 10:44:50 +00:00
Jimmy Brisson 8f138f6d16 Quote make invocation too 2016-11-08 10:44:49 +00:00
Jimmy Brisson 9ef6986ebe Quote the shell call in mkdir and rmdir
Allows the use of bash in windows
2016-11-08 10:44:48 +00:00
Jimmy Brisson 07cb26874c Use internal class variable for resolving templates in makefiles
This allows other exporters to inherit from make and change the name of
the exporter without breaking.
2016-11-08 10:44:47 +00:00
Sarah Marsh 9cf3c5688a Exporter documentation 2016-11-08 10:44:44 +00:00
Sarah Marsh 96259cdfb6 Add boolean 'export' to examples.json.
This will determine whether the example should be exported. Additionally,
relocated export logic to examples_lib.py.
2016-11-08 10:44:24 +00:00
Sarah Marsh 21ac2431b8 Build method documentation. Removal of unused Exception classes. 2016-11-08 10:44:23 +00:00
Sarah Marsh 718d0c0185 Make ArmPackManager cache a static variable (to avoid reading index.json for each target). 2016-11-08 10:44:22 +00:00
Sarah Marsh 5e4289aef0 changing variable names and respecting requirement kwargs 2016-11-08 10:44:21 +00:00
Sarah Marsh 027f2b23cc New export-build tests.
Allows command line workflow of:
mbed import
mbed export

Also revises exporter supported target checks
2016-11-08 10:44:19 +00:00
Brian Daniels 21307015fc Fixing project.py -S printing problem
Printing too large of a string can fail in Windows, as detailed here:
https://bugs.python.org/issue11395. This works around the problem by
adding a print_large_string function that breaks up the string into
smaller pieces before printing it.
2016-11-08 10:44:17 +00:00
Brian Daniels efa90dedf0 Allowing mbed_app.json files to be discovered for tests.
Before, mbed_app.json files were explicitly ignored when building tests.
This was mostly because you could have multiple mbed_app.json files in the
tree (for instance, in test case folders) and the behavior would be
undefined. Now the tools explicitly ensure that there aren't multiple
mbed_app.json files in your source files. So auto discovery of
mbed_app.json for testing is being reintroduced.
2016-11-08 10:43:56 +00:00
jeromecoutant f6ced8690c i2c_loop tests update for STM32 2016-11-08 10:43:54 +00:00
Anna Bridge 9d7049ed94 Switch off compilation of wifi example while awaiting a fix for issue 3152 is submitted. 2016-11-08 10:43:49 +00:00
Anna Bridge dbe95cf298 Remove superfluous debugging line. 2016-11-08 10:43:48 +00:00
Anna Bridge 7801c50e42 Update ble example meta data to fix unsupported compilation combinations.
Remove URI beacon example as this is no longer required.
Add specific set of supported targets.
2016-11-08 10:43:47 +00:00
Anna Bridge 1a1c41e40d Minor review comments plus add new 'compile' option to examples json file.
Adding the new compile option allows the marking of a set of examples to
indicate whether they should be compiled or not. For the update process
examples that are not compiled will not be auto updated irrespective of
that setting.
Other changes to make return logic from some functions in update.py more
efficient and some typos in the lib file.
2016-11-08 10:43:45 +00:00
Anna Bridge 56c0a4d148 Review: Update example_lib.py to use rmtree rather than rm system call. Update examples.json to limit TLS examples to a couple of boards and only GCC_ARM and ARM compilers. 2016-11-08 10:43:44 +00:00
Anna Bridge 0665a17e91 Make update.py test compile examples prior to updating mbed-os version.
Changes:
Refactor examples.py to add a new command line option to provide an update
tag.
Refactor examples.py to add new functionality to update the version of
mbed-os in the examples to a supplied tag.
Refactor examples.py to make cloning the example repos, updating their
mbed-os version and compiling, into library functions and move to a new
library module.
Refactor the format of the examples.json file to make it compatible with
both examples.py and update.py.
Refactor update.py so that examples are test compiled prior to updating.
Refactor update.py so that only examples tagged as auto-updatable and that
fully compile are automatically updated.
2016-11-08 10:43:43 +00:00
Brian Daniels 25fa65c633 Adding Kinetis devices to mbed 2 tests and updating build_travis script 2016-11-08 10:43:38 +00:00
Mahadevan Mahesh e3561fa358 Add K64F, K22F and KL43Z to travis build
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-08 10:43:36 +00:00
Brian Daniels af2116981e Updating IAR definition for the NCS36510 for IAR EW v7.8 2016-11-08 10:43:31 +00:00
Bartek Szatkowski bd3f7282c1 Handle [NOT_SUPPORTED] exception in make.py
That let us to ignore build failures for examples on not supported
platforms.
2016-11-08 10:43:09 +00:00
Brian Daniels f5493913fc Making IAR exporter build test parallelized 2016-11-08 10:43:01 +00:00
jeromecoutant ad115672a2 digital_loop tests update for STM32 2016-11-08 10:42:58 +00:00
Brian Daniels beb7ec247a Removing dependency on StringIO, only change return type of table export 2016-11-08 10:42:54 +00:00
Brian Daniels 32b4e60982 Removing need for memap to printed through toolchains 2016-11-08 10:42:53 +00:00
Brian Daniels 09a09f70b7 Handling output of parallelized test building.
This makes use of the reports generated by the building of tests to
prevent output from interleaving when the build is parallelized. This
required some changes to memap to return a generated string from
the 'generate_output' function. I also had an option to stop the prints
from memap to prevent text from interleaving
2016-11-08 10:42:52 +00:00
Brian Daniels d1eaefe688 Modifying behavior of 'silent' option in toolchains
The 'silent' option has always been present in the toolchains API, however
it did not actually stop anything from being printed. Instead, it just
changed what was added to the build log. This make the 'silent' stop all
prints, but ensures that the output for the toolchain is still preserved
and accessible via the 'get_output' function.
2016-11-08 10:42:51 +00:00
Brian Daniels b6366e3e62 Making building and linking tests fully parallel.
This uses similar code that is used withing the toolchains to parallelize
the linking process of all the tests accross all the available CPUs. It
also respects the `-j` parameter if you wish to limit the number of cores
used.
2016-11-08 10:42:49 +00:00
jeromecoutant 9fbb939791 analog_loop test - keep mcu list and update with STM32 boards 2016-10-27 11:13:48 +01:00
jeromecoutant c9ced221ef analog_loop tests update for STM32 2016-10-27 11:13:47 +01:00
Russ Butler 67878fcc63 Remove non-code profiles
Remove profiles which are not suitable for building stand alone. This
leaves just the 3 core profiles.
2016-10-27 11:13:12 +01:00
Russ Butler 93ea2e8ccf New build profile and docs
Add a small build profile and general docs for build profiles.
2016-10-27 11:13:10 +01:00
Jimmy Brisson b9235663f4 Remove pycurl dependency 2016-10-27 11:13:07 +01:00
Jimmy Brisson 775bfa36a4 Update pack-derived files, and add safely test 2016-10-20 10:42:59 -05:00
Jimmy Brisson d0599d48ca Account for different linker flags across the compilers 2016-10-20 11:48:39 +01:00
Jimmy Brisson e5e6e77dc8 Use correct names for library files 2016-10-20 11:48:14 +01:00
Jimmy Brisson 457aef72ff Remove dependency on XDG home spec 2016-10-19 17:24:26 -05:00
Jimmy Brisson aef71ced12 Add update command to project.py 2016-10-19 17:24:25 -05:00
Jimmy Brisson bb55470107 check in a copy of the arm-pack-manager index and use it 2016-10-19 17:24:24 -05:00
Jimmy Brisson cd1d9cc8ee Update the IAR debug template" 2016-10-19 17:24:22 -05:00
Jimmy Brisson 7d5659062e Fix traceback from incorrect use of core 2016-10-19 17:24:21 -05:00
Jimmy Brisson a4e763dae1 Add quick print to the makefile when srec_cat is required 2016-10-19 17:24:19 -05:00
Jimmy Brisson 5c35230657 Remove unneeded relpath calculations 2016-10-19 17:24:15 -05:00
Jimmy Brisson 6d05f1db7c Exporters - Name the eclipse exporters 2016-10-19 17:24:14 -05:00
maclobdell e0e1803e90 add ncs36510 exporter support 2016-10-19 17:24:06 -05:00