Commit Graph

886 Commits (mbed-os-5.3)

Author SHA1 Message Date
Jan Jongboom 15744b2e5c Eclipse: Symbols should also be loaded when starting a debug session 2017-01-13 14:35:30 +00:00
Anna Bridge d0bb026aff Review comments: Use os.rename rather that system mv command. In prepare_fork(), change nested IF to neat command loop. 2017-01-13 14:35:29 +00:00
Anna Bridge 2cf96c847e Modify update command to directly edit the mbed-os.lib files for each example specified in the supplied .json file, in a user specified fork. A pull request is then made from each fork to the ARMmbed master repo.
New usage:
python update.py <args>
Where <args> are:
  [-c <file.json>] optional argument for example list, default
                   example.json
  -U <github user with forked repos>
  -T <github authorisation token>
  tag
2017-01-13 14:35:27 +00:00
Russ Butler cff838d929 exporters - group by directories in prj root
Update exporter grouping code to group by directories in the root
of the project rather than by the parent directory of each file. This
reduces the number of groups and allows all mbed-os code to reside
in its own folder.
2017-01-13 14:35:24 +00:00
Jimmy Brisson 40eed3d15b Repair the Emblocks exporer and rename to EmBitz
* Rename because the tool has been renamed
 * Removed duplicate symbol definitions
 * Removed common flags from ld flags (common are c/c++ only)
 * Moved EmBlitz to it's own folder
2017-01-13 14:35:22 +00:00
Jimmy Brisson 8ea469259c Remove deprecated clean argument 2017-01-13 14:35:16 +00:00
Brian Daniels e6d0d9dc37 Remove default -m and -i options for project.py
Also moves the check for -m and -i before any file system actions are
taken (error faster)
2017-01-13 14:35:14 +00:00
Franz Schnyder 16eaec27be Fix review requests
- Shorten variable name
- Use comprehension to format include paths
2017-01-13 14:35:13 +00:00
Franz Schnyder 429e22757b Correctly format include paths for eclipse export
Eclipse CDT expects the include paths to include the project name like '/<project>/<include-path>' for workspace include directories.
See issue #3529.
2017-01-13 14:35:11 +00:00
Brian Daniels cbed2604e6 Preventing app_config from clobbering CLI macros 2017-01-13 14:35:07 +00:00
bcostm be29d6012a Remove USB in build_travis test (USB is not supported right now on this platform) 2017-01-13 14:35:04 +00:00
bcostm 318aa4d1f8 Add platform in RTOS tests + build_travis 2017-01-13 14:35:02 +00:00
ccli8 702cf49648 Integrate with Travis CI
1. Add targets into build_travis.py and tests.py.
2. Add target SPI pins into SPI SD test samples.
3. Rename target TOOLCHAIN_GCC_ARM/retarget.c to avoid name collision of compiled retarget.o with platform/retargets.cpp.
2016-12-30 12:42:49 +00:00
Jimmy Brisson f4dd4028e8 Improve error message when exporting for make without a linker script 2016-12-30 12:42:34 +00:00
Brian Daniels 455448dcc6 Removing default toolchain paths
This change was spurred by a confusing error. I attempted to compile for
the RZ_A1H (a Cortex-A device), and I had the standalone ARM compiler in
my system path, which supports Cortex-A. However, the default path for
the ARM compiler in settings.py uses a Keil installation, which only
supports Cortex-M. It found my Keil installation and used that instead.
This change proposes to remove this default behavior and instead
requires the user to explicitly set the intended compiler, either by a
settings file, mbed CLI, environment variables, or by placing the
compiler in your PATH.
2016-12-30 12:42:21 +00:00
Jimmy Brisson 00e028ca74 Move clean functionality out of the export api
It was possible to remove an entire project if clean was specified on
the command line. That's a Bad Thing(tm).
2016-12-30 12:42:15 +00:00
Jimmy Brisson 06d2cfd9b5 Revise arguments to detect targets 2016-12-30 12:41:51 +00:00
Michel Jaouen f81c13d67d USB_8 : audio loopback test at 16khz stereo 16bits - Callback TX and RX interface is used. 2016-12-30 12:41:47 +00:00
Brian Daniels de0b95657d Correctly filtering examples in test script.
If an example's GitHub repository contains multiple child examples, the
script was incorrectly filtering out all the child examples when
compiling and exporting. This patch now handles this case correctly.
2016-12-30 12:41:29 +00:00
Jared Szechy dd43be868c Add DISCO_F303VC to build_travis 2016-12-30 12:41:16 +00:00
Jared Szechy 613d552a21 Enable CAN on DISCO_F303VC 2016-12-30 12:41:14 +00:00
Brian Daniels 996bf982ce Adding quotes to echo statements
This fixes an issue when make is ran inside the Windows command prompt
2016-12-19 14:39:41 +00:00
Brian Daniels df089b5fb8 Removing aboslute path to Dlib config for IAR compiler
This fixes an issue where the absolute path causes a file error if the
compiler paths are configured incorrectly. It uses a relative path
instead now (the files appears to be in the default search path).
2016-12-19 14:39:40 +00:00
Brian Daniels d4a3ba8d5a Removing extra paths for standard the library for the ARM compiler 2016-12-19 14:39:38 +00:00
Jimmy Brisson 77dccea512 Remove special case for RZ-A1H 2016-12-19 14:39:37 +00:00
Jimmy Brisson 1d19f37d25 Remove special case template for F746ZG 2016-12-19 14:39:34 +00:00
Jimmy Brisson 409be21997 Update IAR template and STM M7 part options 2016-12-19 14:39:31 +00:00
Jimmy Brisson 4476d03f96 Fix typo in IAR definitions 2016-12-19 14:39:29 +00:00
Jimmy Brisson 333aad6191 Remove deprecated flags args
The tools will no longer accept `--cflags`, `--cppflags`, or
`--ldflags`. Instead, the ability to modify these flags is
provided by the `--profile` argument. Documentation for the
`--profile` argument may be found in
docs/Toolchain_Profiles.md
2016-12-19 14:39:19 +00:00
bcostm 144f9b3f4d Remove NUCLEO_F412ZG from example linking_list 2016-12-19 14:39:14 +00:00
bcostm 5820dba45c Remove usb in build_travis.py for this target (not supported for now) 2016-12-19 14:39:13 +00:00
bcostm d2bbadfec8 Add platform in other python and json files 2016-12-19 14:39:10 +00:00
Sarah Marsh c5c1879ddb Catch specific exception for TargetNotSupported 2016-12-19 14:38:36 +00:00
Sarah Marsh 1c6d6059a8 IAR export will not fail in the absence of a CMSIS pack 2016-12-19 14:38:35 +00:00
Michel Jaouen d6cbf84623 USB_4 : test OK with IAR ,GCC_ARM(limitation to ARM not needed) 2016-12-19 14:38:33 +00:00
Jimmy Brisson da3ac529d5 Enabled example exporting Filter ides by toolchains 2016-12-19 14:38:31 +00:00
sarahmarshy 52adfe986e Fix generic ARM CPU target in uvision
Generic CPU target not found correctly, because it was not accessing the Cache's index.

@theotherjimmy
2016-12-19 14:38:11 +00:00
Jimmy Brisson 7715606c02 Fix project profile parsing
thanks @sdive!
2016-12-19 14:38:08 +00:00
Brian Daniels 75e289c40f Removing remaining references to Curl from ARM pack manager 2016-12-19 14:32:39 +00:00
Brian Daniels 4b4f5b1a9a Passing toolchain path info to subprocesses.
Since the toolchain path info lives as a global variable, its not
propigating to the subprocesses that are created to compile the tests in
parallel. This change manually passes these global variables and then
reassigns them.
2016-12-19 14:32:37 +00:00
Sarah Marsh d60a8f56a5 Fix issue with unrecognized uvision file types 2016-12-19 14:32:00 +00:00
Michel Jaouen 3bb437debc build_travis.py : update for STM support 2016-12-19 14:31:57 +00:00
Martin Kojtal a359a56655 Fix DEBUG target keyword for GCC_ARM
Fixes mbed-cli#402 bug. -g flag was changed to g3, thus this caused
a regression in producing TARGET_DEBUG for GCC_ARM.
2016-12-08 10:48:53 +00:00
Mohammad Azim Khan 9d8155641e Removing target EFM32GG_STK3700 from uvisor examples 2016-12-02 16:09:32 +00:00
Mohammad Azim Khan 994f628a4d Removing target EFM32GG_STK3700 from uvisor examples 2016-12-02 16:09:30 +00:00
Mohammad Azim Khan 0972811f76 Added examples uvisor-thread and uvisor-number-store 2016-12-02 16:09:28 +00:00
Martin Kojtal 9fdf7f775f Merge pull request #3295 from geky/gcc-g3
Add '-g3' flag to gcc debug flags
2016-11-22 22:14:20 +00:00
Martin Kojtal d215e4fa63 Merge pull request #3307 from theotherjimmy/import-sys-in-config
Add sys import to config
2016-11-22 22:13:43 +00:00
Jimmy Brisson 27f7aeef47 Add sys import to config 2016-11-21 11:26:21 -06:00
Christopher Haster 83e5f272f6 Added '-g3' flag to gcc debug flags
Includes extra information, such as all the macro definitions present
in the program
2016-11-18 14:45:59 -06:00
Sam Grove f0e3ff4909 [exporters] update makefile build output directory to match mbed-cli and use the special reserved folder BUILD 2016-11-18 00:25:01 -06:00
Sam Grove 91361ec39a [tools] update default build directory from .build to BUILD 2016-11-18 00:23:25 -06:00
Sam Grove a6f5233f45 [exporters] update uvision teamplates so build artifacts end up in BUILD directory, not .build 2016-11-18 00:23:18 -06:00
Sam Grove 7297fdf3f6 [exporters] update iar teamplates so build artifacts end up in BUILD directory, not .build 2016-11-18 00:23:09 -06:00
Sam Grove 2fe28f0da1 [tools] update comments in memmap about build folder name 2016-11-18 00:22:58 -06:00
Sam Grove 6bee31eaad [exporters] make sure to clean .build and BUILD when testing uvision 2016-11-18 00:22:43 -06:00
Sam Grove 116d8dffdd [exporters] make sure to clean .build and BUILD when testing iar 2016-11-18 00:22:35 -06:00
Sam Grove 72cdf9d16f [exporters] iar build artifacts in BUILD directory, not .build 2016-11-18 00:22:21 -06:00
Sam Grove 0d3e9f0968 [exporters] make sure to clean .build and BUILD 2016-11-18 00:21:55 -06:00
Sam Grove 9d8ec61df5 Merge pull request #3258 from sarahmarshy/build_test_err
Prevent process pool inside of process pool when building tests
2016-11-14 21:54:24 -06:00
Sam Grove 68badb2a69 Merge pull request #3257 from bridadan/baudrate_in_test_spec
Baudrate in test spec
2016-11-14 21:53:32 -06:00
Sam Grove ef7c61820b Merge pull request #3229 from theotherjimmy/allow-deps-to-fail
[Tools - Toolchains] Allow dependency parsing to fail, gracefully continuing
2016-11-14 21:44:09 -06:00
ARM 9f39132d3b Prevent process pool inside of process pool when building tests 2016-11-10 14:41:19 -07:00
Brian Daniels e3ff8da6f0 Test spec baud_rate now set based on mbed config 2016-11-10 15:21:18 -06:00
Brian Daniels 088566b33e Correctly casting toolchain features to a set.
Before, the get_config function was checking the equality of a set and a
list. However the list's equality depends on order, so this change casts
it to set to prevent an infinite loop.
2016-11-10 15:20:30 -06:00
Anna Bridge f6f872a858 Merge pull request #3159 from radhika-raghavendran/master
User trim values for NCS36510
2016-11-10 17:06:54 +00:00
Anna Bridge e0c7d3b362 Merge pull request #3188 from theotherjimmy/fix-tests-export
[Exporters] Append targets to scan list for exporting tests
2016-11-10 17:06:22 +00:00
Anna Bridge 96b3590248 Merge pull request #3222 from theotherjimmy/make-print-executable
[Export - Make] Add message that informs the user which hex to flash
2016-11-10 17:01:20 +00:00
Jimmy Brisson c3915215e4 Allow dependency parsing to fail, gracefully continuing 2016-11-10 10:04:36 -06:00
Sam Grove e175f619b2 Merge pull request #3010 from nuket/fix-uvision-hpp
Add .hpp to list of Uvision Exporter extensions
2016-11-09 15:21:55 -06:00
Brian Daniels 119857ac77 Ignoring args parameter for functions that don't use them 2016-11-08 13:41:40 -06:00
Brian Daniels f1bb3f5930 Fixing issue with target_cross_ide 2016-11-08 12:51:38 -06:00
Brian Daniels 2fe1373cf1 Fixing use of get_repo_list in update function 2016-11-08 12:38:22 -06:00
Brian Daniels b739413526 Correcting example, toolchain, and ide filters 2016-11-08 12:37:14 -06:00
Radhika 63f5c9781d Configuration of user trim moved to targets.json 2016-11-08 17:29:32 +05:30
Jimmy Brisson def0a38c4b Add message that informs the user which hex to flash 2016-11-07 15:54:44 -06:00
Sarah Marsh 4bfd73a661 [Exporter tests] update mbed-os in selected examples 2016-11-07 11:10:52 -06:00
Sarah Marsh c231939a8d [Exporter tests] conditional intersection for targets 2016-11-07 11:09:36 -06:00
Sarah Marsh 4e2d3c42dd [Exporter tests] Implement filtering of targets and examples. 2016-11-07 11:09:36 -06:00
Brian Daniels 811e2b55e6 Adding MCU and example filter options to example test CLI 2016-11-07 11:04:18 -06:00
Sam Grove 79abaab02e Merge pull request #3208 from bridadan/examples-clone-deploy
[example tests] Adding a clone and a deploy step to allow optimizations in CI.
2016-11-07 10:32:23 -06:00
Brian Daniels b0d556b9c4 Adding a clone and a deploy step to allow optimizations in CI.
This adds an example clone and deploy step that allows you to modify
each top level repository before pulling in the rest of the example's
dependencies. This allows us to not pull in a copy of mbed-os for each
example in CI and instead symbolic link the already cloned copy, saving
valuable time and disk space
2016-11-04 17:35:36 -05:00
Sarah Marsh 76554fa8af [Exporter tests] Capable of testing export only to IDEs that do not have build functions 2016-11-04 15:53:41 -05:00
Sam Grove 03b8ae1811 Merge pull request #3200 from bridadan/exporter_build_subprocess_change
Using Popen for uVision and unifying the structure of the build function
2016-11-04 14:45:54 -05:00
Sam Grove 13676f064b Merge pull request #3189 from theotherjimmy/make-use-path
[Exporters - Make-based] Force make exporter to search PATH for compilers
2016-11-04 14:45:02 -05:00
Sam Grove 359413ef57 Merge pull request #3204 from sarahmarshy/patch-6
[Export build-test] Directory traversal error
2016-11-04 14:44:22 -05:00
Sam Grove 4a45761c08 Merge pull request #3195 from theotherjimmy/quote-shell-make
[Exporters - Make-based] Quote the shell call in mkdir and rmdir
2016-11-04 14:43:22 -05:00
sarahmarshy 804f27a8bd [Export build-test] 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-04 14:09:40 -05:00
Brian Daniels 9d91566927 Using Popen for uvision and unifying the structure of the build function
across exporters
2016-11-04 11:14:32 -05:00
Jimmy Brisson 688d55bd93 Quote make invocation too 2016-11-04 10:08:24 -05:00
Sam Grove f044786f22 Merge pull request #3187 from theotherjimmy/fix-eclipse-export
[Export-Make] Use internal class variable for resolving templates in makefiles
2016-11-03 18:48:13 -05:00
Jimmy Brisson 83fbbe8964 Quote the shell call in mkdir and rmdir
Allows the use of bash in windows
2016-11-03 15:38:55 -05:00
Sarah Marsh 406ddf0674 Exporter documentation 2016-11-03 11:53:23 -05:00
Sam Grove 2502a795b9 Merge pull request #3172 from sarahmarshy/export-test-rev
[Exporters] New export-build tests
2016-11-03 02:20:55 -05:00
Sam Grove 7d31512751 Merge pull request #3171 from bridadan/fix_exporter_supported
[tools] Fixing project.py -S printing problem
2016-11-03 02:18:39 -05:00
Sam Grove 4e1aea4fc9 Merge pull request #2958 from bridadan/mbed-app-config-testing
Allowing mbed_app.json files to be discovered for tests.
2016-11-03 02:11:38 -05:00
Jimmy Brisson 79bccc14a2 Force make exporter to search PATH for compilers 2016-11-02 17:16:35 -05:00
Jimmy Brisson a447807ed8 Append targets to scan list for exporting tests 2016-11-02 16:14:40 -05:00
Jimmy Brisson c2470e9710 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-02 15:42:30 -05:00
Sarah Marsh 9624ccf2d5 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-02 10:30:10 -05:00