Commit Graph

6355 Commits (3a273f78f2d4a63cef2dc5176f0d781e750057f0)

Author SHA1 Message Date
Jimmy Brisson 3a273f78f2 Create and enable exporter flag mbed_conf_active for exporters
The mbed_conf_active feature disables configuration macros on the
command line and replaces them with a preinclude header file
2016-06-27 14:06:42 -05:00
Jimmy Brisson c06dad55d9 Change uVisoun[45] to get preincludes 2016-06-27 14:06:42 -05:00
Jimmy Brisson a1b73c9b7e Fix typo after rebase 2016-06-27 14:06:41 -05:00
Mihail Stoyanov 879ae8c6bd Fixed gcc.py typo
get_conifg_option -> get_config_option
2016-06-27 14:06:41 -05:00
Jimmy Brisson d9b4109143 Update progen-style flags with the toolchains include mbed_conf.h 2016-06-27 14:06:41 -05:00
Jimmy Brisson 5532fb8697 Export command line for including mbed_conf.h from toolchains 2016-06-27 14:06:34 -05:00
Jimmy Brisson 4f29483255 Update exporters to include the generated mbed_conf.h 2016-06-27 13:59:56 -05:00
Sam Grove f7ad7d2e27 Merge pull request #2005 from screamerbg/env-var-paths
[Tools] Add environmental variables support for toolchain paths
2016-06-27 11:41:58 -05:00
Sam Grove c815b3a9e8 Merge pull request #2022 from screamerbg/refresh-requirements
Updated requirements.txt to match setup.py.
2016-06-27 11:38:57 -05:00
Sam Grove f3e15ebfa3 Merge pull request #2020 from mbedmicro/fix_iar_asm_options
Fixed config-related options for the IAR assembler
2016-06-27 11:37:59 -05:00
Bogdan Marinescu 676cfbb695 Merge pull request #2028 from mbedmicro/add_project_folders
Change directory generation for project files.
2016-06-27 18:52:18 +03:00
Martin Kojtal 2acd3bbf2f Merge pull request #2023 from screamerbg/misc-scripts
Move non-essential scripts to tools/misc/
2016-06-27 17:51:56 +02:00
Bogdan Marinescu 2852932367 Change directory generation for project files.
Before this PR:

```
Successful exports:
  * K64F::uvision       .\projectfiles\uvision\Unnamed_Project_K64F
```

After this PR:

```
Successful exports:
  * K64F::uvision       .\projectfiles\uvision_K64F\Unnamed_Project
```

The directory name now contains <ide>_<target>, and there's a single
project per directory as a result.
2016-06-27 18:16:46 +03:00
Bogdan Marinescu 104b8fa7cb Merge pull request #2026 from 0xc0170/fix_paths
Fix paths for project.py
2016-06-27 18:10:45 +03:00
Martin Kojtal fdb401ce4e Exporter - source_relative name fix
relative did not contain enough details what's the intention with
this flag.
2016-06-27 15:29:21 +02:00
Martin Kojtal 5800af11b3 Exporters - add source_relative flag
if we work with relative sources, the flag should be set to True, otherwise
False.

This fixes wrong paths when exporting with --source argument. The exporter would
assume sources were copied, and thus reference them all within the root of the generated
project.
2016-06-27 15:25:44 +02:00
Mihail Stoyanov 925781c6a7 Move non-essential scripts to tools/misc/ 2016-06-27 14:11:38 +01:00
Mihail Stoyanov 61fa6cec95 Updated requirements.txt to match setup.py. Consider setup.py reading from requirements.txt in the future. 2016-06-27 13:57:38 +01:00
Bogdan Marinescu b4e8cf655d Fixed config-related options for the IAR assembler
The IAR assembler doesn't accept '--preinclude', but it accepts -D.
This commit changes the way the config-related macros are propagated
to the IAR assembler to use '-D' instead of '--preinclude'. This is
the only change related to functionality, the others are small,
backward compatible changes to the config code to make passing arguments
to the toolchain instances easier.

Tested by compiled blinky with IAR, GCC_ARM and ARM for K64F.
2016-06-27 15:54:38 +03:00
Sam Grove 703aee4f61 Merge pull request #1998 from bridadan/mbed-main-iar-rtx
Calling mbed_main when using RTX and compiling with IAR
2016-06-26 00:50:44 -05:00
Sam Grove 245d4b8deb Merge pull request #2003 from rgrover/PR
minor fix for a warning when compiling with ARMCC
2016-06-26 00:48:49 -05:00
Sam Grove 3923f3c77a Merge pull request #2006 from sg-/single-thread-test-update
If a target is restricted to single threaded mode,
2016-06-26 00:46:58 -05:00
Mihail Stoyanov faa427db77 Add environmental variables support for toolchain paths
Also updated license of settings.py and default_settings.py and added
comments
2016-06-24 23:03:08 +01:00
Sam Grove 047b3b23aa Merge pull request #2008 from mbedmicro/revert-1976-memap-args
Revert "Generalize flag handling"
2016-06-24 16:39:13 -05:00
Sam Grove 33cec194c6 Revert "Generalize flag handling" 2016-06-24 16:39:01 -05:00
Sam Grove e508525bd4 Merge pull request #2000 from egostm/STM32F4xx_ADC2_support
[STM32F4] Add ADC2 support to F4 family
2016-06-24 16:15:30 -05:00
Sam Grove aa5bfcd8e7 Merge pull request #2002 from LMESTM/dev_discof429zi_spipins
[STM32] Add SPI defaults pins to DISCO_F429ZI
2016-06-24 16:14:25 -05:00
Sam Grove 667d49ed8f Merge pull request #1985 from kjbracey-arm/iar_vlas
Turn on C99 VLAs in IAR
2016-06-24 16:13:22 -05:00
Sam Grove a30fac1e1e If a target is restricted to single threaded mode, fail compilation of the test as not supported 2016-06-24 16:08:59 -05:00
Sam Grove 6dd11c76e4 Merge pull request #1976 from theotherjimmy/memap-args
Generalize flag handling
2016-06-24 15:03:50 -05:00
Jimmy Brisson 7b3ef2179f Make mcu and tool arguments many and update all consumers of them 2016-06-24 14:23:19 -05:00
Jimmy Brisson d757f35d15 Update style 2016-06-24 14:23:19 -05:00
Jimmy Brisson 7e5deaa7d0 standardize on nargs="*" 2016-06-24 14:23:19 -05:00
Jimmy Brisson 3276854f49 fix parse error in test.py and make -n + -p comma separated 2016-06-24 14:23:19 -05:00
Jimmy Brisson 439d2e8539 Add -S, -L, and --source to the project.py mutually exclusive group 2016-06-24 14:23:19 -05:00
Jimmy Brisson 053efc6864 Add -S, -L, and --source to the mutually exclusive group 2016-06-24 14:23:19 -05:00
Jimmy Brisson c969a4c784 Better test completion and everything that can be is columnated 2016-06-24 14:23:17 -05:00
Jimmy Brisson 91c45a7b6f Improve test -n and -p failure messages 2016-06-24 14:22:48 -05:00
Jimmy Brisson 2fc4d64b07 Brought test_api.py and users into the new order of argument parsing 2016-06-24 14:22:48 -05:00
Jimmy Brisson 18868ff3fb Convert project.py to the new style of argument parsing 2016-06-24 14:22:47 -05:00
Jimmy Brisson c5ac2cfdec Create type combinator many 2016-06-24 14:22:47 -05:00
Jimmy Brisson e4c6bcd724 Move test parsers to tests.py 2016-06-24 14:22:47 -05:00
Jimmy Brisson b98c8c1c33 Generalize all appropriate arguments and check for file existance 2016-06-24 14:22:47 -05:00
Jimmy Brisson 43e036d6e1 Move to argparse from optparse 2016-06-24 14:22:47 -05:00
Jimmy Brisson 52a7f64d67 Generalize parsing types 2016-06-24 14:22:41 -05:00
Rohit Grover b12f0c2ad2 take care of a compiler warning 2016-06-24 15:21:04 +01:00
Rohit Grover 7b110f077e make use of symbol BLOCK1_SIZE to replace a naked constant 2016-06-24 15:21:04 +01:00
Rohit Grover 0c5a7beb20 white space diffs 2016-06-24 15:21:03 +01:00
Rohit Grover 717651eb3f add better comments to the #if blocks guarding KSDK2 support 2016-06-24 15:21:03 +01:00
Laurent MEUNIER db7628c4b6 [STM32] Add SPI defaults pins to DISCO_F429ZI 2016-06-24 15:06:59 +02:00