Jimmy Brisson
6971b1e1b4
update mkdir to be cross-platform
2016-06-30 10:51:19 -05:00
Jimmy Brisson
7b5831247d
Make the efm32 targets use the common makefile template
2016-06-30 10:51:19 -05:00
Jimmy Brisson
63f4e6a279
sam*::gcc_arm targets extend the common makefile
2016-06-30 10:51:19 -05:00
Jimmy Brisson
86585197da
rework the common template to place objects into bin
2016-06-30 10:51:18 -05:00
Brian Daniels
b7186bb604
Test spec paths are now relative to tool execution directory
...
This commit also normalizes the paths produced by the the test spec to
Unix style paths to increase portability of the file.
2016-06-30 09:32:13 -05:00
svastm
505814147d
[NUCLEO_L432KC] Add RTOS support
2016-06-30 15:05:09 +02:00
svastm
2198dccd6e
[NUCLEO_L432KC] Add to build and export scripts
2016-06-30 14:50:35 +02:00
Jarek Zgoda
2731bc7da3
Template moved to new tools directory
2016-06-30 12:36:19 +02:00
Jarek Zgoda
59623d62f9
One more occurence to be renamed
2016-06-30 12:36:19 +02:00
Jarek Zgoda
3006f70552
Support for Blue Pill
2016-06-30 12:36:18 +02:00
Sam Grove
472ac772f9
Merge pull request #2056 from theotherjimmy/pass-files-to-source
...
Enable passing individual files to --source options
2016-06-29 17:08:30 -05:00
Jimmy Brisson
cd9261d168
Add documentation
2016-06-29 11:20:34 -05:00
Jimmy Brisson
ce1cddcd8b
Prefix non-public api with an underscore
2016-06-29 11:11:54 -05:00
Jimmy Brisson
c7acb7c293
Enable passing individual files to scan_resources
2016-06-29 11:10:12 -05:00
Brian Daniels
27aea960bc
Changing name of test binaries to just test case folder name.
...
This mitigates the Windows paths issue by shortening the test binary name to just the
test case folder name instead of the full unique test name used by the
tools. This doesn't solve the Windows path limit of 260 characters, but it
does reduce the characters used.
2016-06-28 18:48:13 -05:00
Jimmy Brisson
feea8d59e1
Fix a bug that caused the gcc_arm exporter to fail
...
Resolves #2048
2016-06-28 11:11:03 -05:00
Sam Grove
ec1ec7c3e2
Merge pull request #2015 from mlnx/memap_improvements
...
[memap] Improve wording on stack/heap and minor improvements
2016-06-28 11:00:10 -05:00
Sam Grove
5ea1953755
Merge pull request #2045 from 0xc0170/fix_iar_vla
...
iar - remove --vla flag for exporters
2016-06-28 10:52:00 -05:00
Martin Kojtal
5534f34d0e
Merge pull request #2033 from screamerbg/env-var-paths
...
[Tools] Add MBED_ prefix to compilers environment variables
2016-06-28 17:32:42 +02:00
sarahmarshy
06706da749
Changed reference to old rtos location
2016-06-28 10:25:48 -05:00
0xc0170
d2a216f3a0
iar - remove --vla flag for exporters
...
The template file already enables VLA as it's for C only. This --vla flag
causes conflicts with --cpp flag that is enabled implicitly if C++ is enabled.
2016-06-28 17:15:48 +02:00
Mihail Stoyanov
b8cc5988bb
Merge pull request #2036 from screamerbg/fix-tests1
...
[Testing] Disable test MBED_39 being commonly failed test
2016-06-28 15:18:28 +01:00
Bogdan Marinescu
986ed4f22c
Merge pull request #2043 from 0xc0170/fix_uvision_libpath
...
armcc - remove libpath from ld flags
2016-06-28 16:36:33 +03:00
Martin Kojtal
a84b7e71e2
Merge pull request #2042 from DanKupiniak/export_elmo_f411re_to_gcc_arm
...
Export ELMO_F411RE projects to offline GCC ARM Make project.
2016-06-28 15:34:11 +02:00
0xc0170
29f806bb64
armcc - remove libpath from ld flags
...
libpath is not required for exporters, as they provide default paths.
This caused problems when paths are not correct for mbed tools, a project
fails to build as path is not found.
2016-06-28 14:58:26 +02:00
0xc0170
f44ff94fc3
uvision4/5 - remove no-vla for exporters
...
IDE has C/C++ tab, thus this only cxx flag would be applied for
C files.
2016-06-28 14:15:34 +02:00
Daniel Kupiniak
bb29ed8991
Export ELMO_F411RE projects to offline GCC ARM Make project.
2016-06-28 14:14:48 +02:00
0xc0170
35c90753c0
Project - fix zip rename argument
2016-06-28 10:22:47 +02:00
Bogdan Marinescu
af71d87adc
Merge pull request #1975 from theotherjimmy/export-mbed-conf
...
[Exporters] Update exporters to include and use mbed_conf.h (Was #1964 )
2016-06-28 11:15:22 +03:00
Martin Kojtal
96e533c361
Merge pull request #2034 from sarahmarshy/patch-1
...
[Exporters] Conflicting zip name
2016-06-28 07:28:41 +02:00
Mihail Stoyanov
51157ba073
Disable test MBED_39 being commonly failed test
2016-06-27 23:55:45 +01:00
Mihail Stoyanov
b67d425f09
Add MBED_ prefix to compilers environment variables
2016-06-27 23:27:43 +01:00
sarahmarshy
beb0be99d8
Conflicting zip name
...
The boolean zip passed as a parameter conflicts with the zip exporter class imported.
2016-06-27 17:20:13 -05:00
Jimmy Brisson
855cc91550
Force program_cycle_s to be used as an attribue everywhere
2016-06-27 16:01:52 -05:00
Jimmy Brisson
8e11fa2071
Undelete defines from IAR
2016-06-27 14:36:35 -05:00
Jimmy Brisson
7b83c30ba1
for file in `ls tofor file in `ls tools/export`; do sed -i tools/export/$file -e "s/MBED_CONF_ACTIVE/MBED_CONFIG_HEADER_SUPPORTED/"; done
2016-06-27 14:06:42 -05:00
Jimmy Brisson
4746beb256
Switch to = style for preincludes
...
relpaces the --preinclude mbed_config.h with --preinclude=mbed_config.h
2016-06-27 14:06:42 -05:00
Jimmy Brisson
f92d3ec9be
Move name of config file to one location
2016-06-27 14:06:42 -05:00
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
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
Marcelo Salazar
d50139c8e3
Minor tweaks
2016-06-27 15:02:05 +01: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
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
Marcelo Salazar
fbd8a41fed
Reverted changes and improved wording
2016-06-27 13:31:56 +01:00
Marcelo Salazar
c0f53ccb21
[memap] Removing stack/heap and minor improvements
...
- Removing stack & heap (dynamic) RAM information
This information was misleading and shouldn't be shown in memap.
E.g. each task may have its own stack region configured at run time.
- Adding 'bytes' unit in the total memory info
- Right aligment of numbers, so it is easier to compare numbers
2016-06-27 11:44:01 +01: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
33cec194c6
Revert "Generalize flag handling"
2016-06-24 16:39:01 -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
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
Sam Grove
0bbac4138d
Merge pull request #1999 from screamerbg/fix-ignore-root
...
Fixed .mbedignore logic to ignore the walk() root
2016-06-23 22:40:35 -05:00
Sam Grove
d3a6ac3f5f
Merge pull request #1995 from geky/fix-debug-info
...
[tools] Reorder option handling in toolchains
2016-06-23 22:34:18 -05:00
Mihail Stoyanov
5f92574163
Merge pull request #1986 from svastm/fix_report
...
Fix html report exporter row tag
2016-06-24 02:26:30 +01:00
Mihail Stoyanov
6c53baf7d2
Fixed match walk() root against the ignore list.
...
For example .mbedignore in tools/ contains '*' and naturally should match all files, folders including tools/ itself. Without this fix, tools/ is added to the include path
2016-06-24 01:24:09 +01:00
Jimmy Brisson
ee8a02c6ab
Generalize export format flag input
2016-06-23 15:45:31 -05:00
Jimmy Brisson
f442fd9394
Broaden acceptable toolchain spec; improved incorrect toolchain error
2016-06-23 15:45:31 -05:00
Kevin Bracey
b74546c731
Warn about or prevent VLA use in C++
...
ARM and GNU compilers currently are in a mode where they will accept VLAs
in C++ as an extension. IAR does not accept them in C++.
Avoid potential portability surprises by making GCC warn, and
deactivating the extension in ArmCC.
2016-06-23 09:57:05 +03:00
Kevin Bracey
80a03e1787
Turn on C99 VLAs in IAR
...
IAR defaults to C99 mode, but doesn't enable VLAs by default. Enable them
to make it more conformant.
We don't have much if any code using actual variable-length arrays, but
variably-modified types are occasionally used. The same switch controls
both.
(VLAs were actually already enabled in most of the project export
templates, but not the build script).
2016-06-23 09:34:12 +03:00
Christopher Haster
5a4c5df4dc
[tools] Reordered option handling in toolchains
...
Options were parsed and logged before per-toolchain
logging was setup.
Fixes #1990
2016-06-22 09:23:33 -05:00
Bogdan Marinescu
f864b8439f
Merge pull request #1983 from mbedmicro/fix_config_tests
...
Fix K64F-based config tests
2016-06-22 16:47:32 +03:00
svastm
e4f38b031f
Fix html report exporter row tag
2016-06-22 11:36:22 +02:00
Mihail Stoyanov
541c478dbf
Remove tracking of existing mbed_config.h in the source tree
2016-06-21 23:43:09 +01:00
Mihail Stoyanov
4d68152ef1
Rename mbed_conf.h to mbed_config.h
...
Following the pattern device_has to DEVICE_, features to FEATURE_,
the mbed config system should map to mbed_config.h
2016-06-21 23:41:04 +01:00
Sam Grove
3a01862a4f
Merge pull request #1967 from screamerbg/fix-double-ignores
...
Fixed double-ignored files that cause python exception
2016-06-21 17:36:01 -05:00
Jimmy Brisson
65517d6513
Removes units to make the table fit without scrolling on github
2016-06-21 16:30:29 -05:00
Jimmy Brisson
6906b97ba0
Adds a simple text file report format
...
Should resolve #1583
2016-06-21 16:20:19 -05:00
Bogdan Marinescu
20583ba172
Fix K64F-based config tests
...
PR #1974 added a new configuration parameter to K64F, which in turn made
some tests break, because they found an unexpected configuration
parameter. Fixed by defining a special target for the tests
(test_target) that can be used independently of the actual mbed targets.
2016-06-21 19:58:03 +03:00
Mihail Stoyanov
e835c48cc8
Rename ignore_ptrs to ignore_patterns
...
Add comments to code
2016-06-17 23:27:50 +01:00
Bogdan Marinescu
6858117ff2
Conversion of boolean configuration parameters to integers
...
Boolean configuration parameters will now be generated as integers (1
for True, 0 for False).
2016-06-17 12:56:10 +03:00
Bogdan Marinescu
8f8733480a
Remove redundant whitespaces
2016-06-17 12:19:11 +03:00
Mihail Stoyanov
fb5c4a6381
Fixed double-ignored files that cause python exception
...
Also simplify build scanning logic and add comments
2016-06-17 00:46:14 +01:00
Mihail Stoyanov
89bb38f683
Fixed exporters to support features
...
Unified how resources are loaded into the configuration system
(Config.load_resources) and applied it to build_api and exporters
2016-06-16 18:12:04 +01:00
Martin Kojtal
1e18ea230a
Merge pull request #1957 from mbedmicro/config_headers
...
Configuration in header files - step 1
2016-06-16 18:47:15 +02:00
Bogdan Marinescu
a164224acf
Changed prefix file name to mbed_conf.h
...
Also changed some function names to make it clear that the prefix
headers feature is only used for config.
2016-06-16 17:01:41 +03:00
Bogdan Marinescu
85eca37d29
Added toolchain support for configuration in prefix headers
...
This commit uses the previously introduced feature of generating
configuration data as a C header file rather than as command line macro
definitions. Each toolchain was modified to use prefix headers if
requested, and build_api.py was modified to set up the toolchain's
prefix header content using the data generated by the config system.
Tested by compiling blinky for GCC and ARMCC. I'm having a few issues
with my IAR license currently, but both ARMCC and IAR use the same
`--preinclude` option for prefix headers, so this shouldn't be an issue.
Note that at the moment all exporters still use the previous
configuration data mechanism (individual macro definitions as opposed to
a prefix header). Exporters will be updated in one or more PRs that will
follow.
2016-06-16 16:13:50 +03:00
Bogdan Marinescu
80a70fcb51
Simplified string formatting expressions in get_config_data_header
2016-06-16 11:41:22 +03:00
Mihail Stoyanov
e44566b319
Fix libraries being built with features support
2016-06-16 00:31:25 +01:00
Sam Grove
ac1a63f1a1
Merge pull request #1956 from screamerbg/fix-features3
...
Fixed features not being included
2016-06-15 23:13:26 +01:00
Sam Grove
934951a002
Merge pull request #1955 from theotherjimmy/name-libs
...
Add -N/--artifact-name argument to parser to name libraries
2016-06-15 22:30:19 +01:00
Sam Grove
605cb86ba7
Merge pull request #1954 from 0xc0170/fix_project_report
...
Export - project name fix (.zip)
2016-06-15 22:29:03 +01:00
Sam Grove
44e706e5b2
Merge pull request #1948 from 0xc0170/fix_iar
...
iar - fix flags for cmd and exporters
2016-06-15 22:27:03 +01:00
Bogdan Marinescu
ab0a5a53c2
Configuration in header files - step 1
...
The current implementation of the configuration system "compiles" the
configuration parameters to macros defined on the command line. This
works, but has a few limitations:
- it can bring back the maximum command line length issues in Windows.
- depending on the type of the configuration parameter, it might require
special quoting of its value in the command line.
- various 3rd party IDE/tools seem to have some limitations regarding
the total length of the macros that can be defined.
This commit is the first step in replacing the current mechanism with
one that generates configuration in header files that will be
automatically included, instead of command line macro definitions. The
commit only adds the method for generating the header file, it doesn't
actually change the way config is used yet (that will happen in step 2),
thus it is backwards compatible. The logic of the configuration system
itself is unchanged (in fact, the whole change (not only this commit) is
supposed to be completely transparent for the users of the configuration
system).
The commit also fixes an issue in tools/get_config.py that appeared as a
result of a recent PR: the signature of "get_config" in
tools/build_api.py changed, but tools/get_config.py was not updated.
2016-06-16 00:23:04 +03:00
Mihail Stoyanov
a81746c8f6
Fix for features not being included
...
Also improve compile speed by not re-scanning the source locations
2016-06-15 22:21:31 +01:00
Jimmy Brisson
6de4ea7e6f
Adds -N/--artifact-name argument to parser
...
Only makes sence for --source builds (which only work with --build)
2016-06-15 15:07:25 -05:00
0xc0170
c16c75f2af
iar - fix flags for cmd and exporters
...
Exporters and cmd do not share all flags, some asm and c flags are not the same (cpu, fpu)
2016-06-15 21:04:48 +01:00
Martin Kojtal
7c08e36ec7
tools/project - export report fix name
...
Previously it was .zip always, even when using sources. This patch fixes it:`
```
Successful exports:
* K64F::uvision path\projectfiles\uvision\Unnamed_Project_K64F
```
2016-06-15 18:54:17 +01:00
Sam Grove
7e0e6854b9
Merge pull request #1940 from geky/fix-features
...
[build tools] Added better support for features and recursive configs
2016-06-15 18:46:38 +01:00
Christopher Haster
0d9d4639cd
[build tools] Added proper namespace for features
...
per @bogdanm
2016-06-15 10:34:32 -05:00
Mihail Stoyanov
99ed4e03f1
Restore original compile sources routine
2016-06-15 17:18:40 +01:00
Sam Grove
fd983d1c6c
Merge pull request #1937 from bridadan/fix-tests-softdevices
...
Fixing test builds for devices with softdevices.
2016-06-15 15:25:51 +01:00
Brian Daniels
5a46ac773b
Fixing test builds for devices with softdevices.
...
Previously, .hex files were not copied when building source as a library.
This prevents builds that pre compile source as a library and then
includes the build directory as the only source (because there is no
softdevice present). This PR copies hex files when compiling source
as a library.
2016-06-15 15:21:16 +01:00
Christopher Haster
41daccf8d9
[build tools] Fixed masked out configuration error
2016-06-15 08:38:20 -05:00
Christopher Haster
f45dc15aa8
[build tools] Added test for configurations set from same level as feature
2016-06-15 08:38:20 -05:00
Christopher Haster
e70efe3a41
[build tools] Made config settings compatible with features system
...
per @screamerbg
2016-06-15 08:38:20 -05:00
Christopher Haster
6da324fa3f
[build tools] Added test coverage for config features feature
2016-06-15 08:38:20 -05:00
Christopher Haster
d9749b0447
[build tools] Added list of supported features
...
per @screamerbg
2016-06-15 08:38:20 -05:00
Christopher Haster
ce0606a756
[build tools] Added better support for features and recursive configs
...
per @screamerbg
2016-06-15 08:38:20 -05:00
Sam Grove
2a4a02caa7
Merge pull request #1944 from mbedmicro/ctrl-c-traceback
...
Fixes the python traceback when the user does ctrl+c during compilation
2016-06-15 12:29:21 +01:00
Mihail Stoyanov
edc1fa1865
Fixes the python traceback when the user does ctrl+c during compilation
2016-06-15 01:08:35 +01:00
Mihail Stoyanov
d0db5c94e5
Removed IAR --vla flag which breaks compatibility with IAR Workbench
2016-06-15 00:06:43 +01:00
Sam Grove
7d0060aa7b
Revert "Fix iar exporter - flags duplication and consolidations"
2016-06-14 23:31:57 +01:00
0xc0170
dea0b1d598
iar template - disable vla
2016-06-14 21:39:02 +01:00
Martin Kojtal
9b5adb8cd1
Merge pull request #1752 from svastm/add_nucleo_l011k4
...
Add NUCLEO_L011K4
2016-06-14 22:00:28 +02:00
Martin Kojtal
ba69e82fc7
Merge pull request #1850 from LMESTM/dev_new_serial_complete_test
...
Add a serial transmission complete test
2016-06-14 21:54:48 +02:00
Martin Kojtal
1f9d28346f
Merge pull request #1924 from 0xc0170/fix_armcc
...
Fix armcc ulib template - removal
2016-06-14 20:06:26 +02:00
Martin Kojtal
cfa4d0c855
Merge pull request #1938 from 0xc0170/fix_iar
...
Fix iar exporter - flags duplication and consolidations
2016-06-14 18:45:16 +02:00
0xc0170
69c3da581d
iar - flags consolidation
...
- vla flag is not compatible with c++ (not supported), it generates an error
in the IDE. Therefore we remove it
- common flags - add dlib and thum to the common flags.
- cpu flag is for only runtime cmd, IDE sets it via defined MCU, not required.
2016-06-14 16:19:39 +01:00
Mihail Stoyanov
ffa45c9935
Merge pull request #1932 from geky/fix-dup-feature-defines
...
Removed duplicate feature declarations
2016-06-14 15:59:47 +01:00
0xc0170
bf6b88aa62
iar template - fix output obj - generate a binary
2016-06-14 14:37:04 +01:00
Olaf Hagendorf
e829d8b34d
[uviosn5] some fixes for PR #1933
...
- one missing import
- typo: uvision instead of uvision5 used
2016-06-14 14:53:22 +02:00
0xc0170
58aa227a8c
armcc - fix libpath - windows spaces
2016-06-14 13:03:15 +01:00
Martin Kojtal
262b2e4a46
Merge pull request #1933 from 0xc0170/fix_uvision_cpp
...
uvision - remove --cpp flag from exporters
2016-06-14 13:43:02 +02:00
0xc0170
a3e1143317
uvision - remove --cpp flag from exporters
...
The cpp files are by default compiled with --cpp. Including this flag, causing
C files compiled as C++ files. Thus we remove them. We could potentionally
remove it from cxx flags as well.
2016-06-14 12:33:26 +01:00
Laurent Meunier
8cb46bc602
Add a serial transmission complete test
...
This automated test makes sure that the serial
syncrhonous API ensures a full transmission before
the function returns. The complete string sent by
printf shall be completely transferred before printf
returns and the sleep modes are called.
mbed Issue #1849
2016-06-14 12:03:22 +02:00
Christopher Haster
54118c09a6
Removed duplicate feature declarations
2016-06-13 23:23:03 -05:00
Mihail Stoyanov
bd2159db26
Merge pull request #1930 from mbedmicro/iar-fix
...
Fixed flag for IAR
2016-06-14 05:09:10 +01:00
Mihail Stoyanov
3fa9ed79a5
Fixed flag for IAR
2016-06-14 04:42:45 +01:00
Brian Daniels
1bcd64301a
Lower case test names, blob matching test names, and sort test names for prints
2016-06-14 02:14:45 +01:00
Brian Daniels
f622c591e8
Handling exceptions throughout test flow
2016-06-14 02:14:44 +01:00
Brian Daniels
6796025e78
Fixes for logs and test logic in tools
2016-06-14 02:14:42 +01:00
Mihail Stoyanov
dcff9b15e7
Minor update to tools - logging of tests and output
2016-06-14 01:57:01 +01:00
0xc0170
269697d6d4
targets - remove ulib template
...
armcc provides command line option for choosing a lib type, and we use this,
thus a template is not needed.
2016-06-14 00:41:45 +01:00
0xc0170
4ebdb4556c
uvision template - remove injected misc flags (already defined as armcc flags)
2016-06-14 00:26:27 +01:00
Martin Kojtal
bb8994b270
Merge pull request #1903 from ytsuboi/master
...
[HRM1017] Update exporting template
2016-06-13 23:38:01 +02:00
Martin Kojtal
b28f7108f7
Merge pull request #1918 from ARM-software/master
...
[BEETLE] Enable RTOS on Beetle
2016-06-13 23:06:25 +02:00
0xc0170
724715002a
uvision - flags consolidation
...
Remove error for include system path in the exporters. Assembly does not use
armcc flags, fails to build, as those are not valid armasm.
2016-06-13 17:53:08 +01:00
0xc0170
dbc940b9b3
uvision exporter - use only c flags
...
cxx flags are not needed as uvision uses C/C++ tab (thus c_flags only)
2016-06-13 17:22:27 +01:00
0xc0170
160030052b
armcc - fix include path for armcc bin file correction
2016-06-13 16:55:56 +01:00
0xc0170
0b2c37a17c
uvision exporter - fix cxx flag - remove ld flags
...
This was a bug, as ld flags should not be part of cxx flags. They result as some
options not recognized.
2016-06-13 16:51:54 +01:00
0xc0170
a92bf1c3b8
Tools/project - project dir should be the list
...
The project dir if using just project.py shall be a list of directories.
2016-06-13 16:51:40 +01:00
Vincenzo Frascino
f8d7a76128
[BEETLE] Enable RTOS on Beetle
...
This patch enables RTOS support on Beetle.
It contains:
* Updated Beetle Startup code for ARMCC
* Modified SysTick Driver
* RTOS specific configuration parameters
* RTOS specific test suite enablement
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
2016-06-13 16:21:19 +01:00
0xc0170
88054fa959
IAR - add ld flags to link hook
2016-06-13 16:02:50 +01:00
0xc0170
dde970dc4a
Tools/export - iar fix misc dictionary update
...
progen defines flags as misc, thus we need to add flags to misc.
2016-06-13 16:02:48 +01:00
Jimmy Brisson
a4baaf8d5c
Move IAR linker flags into the DEFAULT_FLAGS dict
2016-06-13 16:02:47 +01:00
Jimmy Brisson
685f4ed648
Adds -funsigned-char to default gcc args
...
It would resolve #1525 , but for the fact that KDS is used.
2016-06-13 16:02:45 +01:00
Jimmy Brisson
c6fc70e461
Updates exportes to use flags from toolchains
...
Affects the following exporters:
- amtelstudio
- codered
- emblocks
- gcc_arm
- iar
- simplicityv3
2016-06-13 16:02:43 +01:00
Jimmy Brisson
e3b9def8cf
Refactors all toolchains to have flags api
2016-06-13 15:58:23 +01:00
Martin Kojtal
3a0d5611dd
Merge pull request #1911 from mbedmicro/config-tests
...
Config tests, GCC flags, requirements.txt
2016-06-13 16:52:49 +02:00
Vincenzo Frascino
4f61cfd7f6
[BEETLE] Add support for GCC ARM exporter
...
This patch adds support for GCC ARM exporter to the Beetle Target.
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
2016-06-13 14:26:47 +01:00
Vincenzo Frascino
c1442139a0
[BEETLE] Add support for uVision 5 exporter
...
This patch adds support for uVision 5 exporter to the Beetle Target.
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
2016-06-13 14:26:45 +01:00
Vincenzo Frascino
0d3268b61c
[BEETLE] Add initial support
...
This patch adds support for the BEETLE Target. The compilers supported by
this target are:
* ARMCC
* GCC ARM
The exporters and the CMSIS/HAL components will follow in future patches.
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
2016-06-13 11:55:33 +01:00
svastm
c9bf3ca2fd
[NUCLEO_L011K4] Add to the build and export scripts
2016-06-13 10:24:19 +02:00
Sam Grove
5acdad9fd7
Merge pull request #1907 from c1728p9/only_allow_one_thread_for_unsafe_stdlib
...
Only allow one thread for unsafe stdlib
2016-06-12 22:03:07 +01:00
Martin Kojtal
7bb4378f2d
Merge pull request #1901 from theotherjimmy/uvision4-alias
...
Add alias for uvision4 exporter
2016-06-12 22:00:16 +02:00
Mihail Stoyanov
0034ffb716
Add tests to the config system. Add GCC flags to support uVisor
2016-06-12 19:04:41 +01:00
Russ Butler
3db2c030d2
Only allow one thread on unsafe standard libs
...
When using a standard library which does not support multi-threading
allow only one thread to be used. This allows the code to remain
safe.
2016-06-12 18:18:40 +01:00
Mihail Stoyanov
8f4cb59002
Added script for detecting connected mbed targets/boards
2016-06-12 10:59:51 +01:00
Mihail Stoyanov
9dbf80722d
Aligned make.py and build.py options
2016-06-12 01:06:15 +01:00
Christopher Haster
2d38065e1f
[build tools] Added support for completely overriding cumulative attributes
2016-06-11 15:45:11 -05:00
Christopher Haster
36904fad1f
[build tools] Moved cumulative attributes into target overrides
...
Attributes now get the filtering provided by target_overrides:
{
"name": "cmsis-nodejs-SQL-x86",
"target_overrides": {
"*": {
"device_has": ["SILLY_STRING", "FIRE"]
},
"SHOE": {
"features_add": ["SMELLS_FUNNY"],
"features_remove": ["SMELLS_NICE"],
}
}
}
per @screamerbg
2016-06-11 15:30:26 -05:00
Christopher Haster
e3bde44b87
[build tools] Added support for cumulative attributes in configs directly
...
in mbed_lib.json:
{
"name": "cmsis-nodejs-SQL-x86",
"features_add": ["SMELLS_FUNNY"],
"features_remove": ["SMELLS_NICE"],
"device_has": ["SILLY_STRING", "FIRE"]
}
2016-06-11 14:44:59 -05:00
Yoshihiro TSUBOI
3c2229a2b1
[HRM1017] Update exporting template
...
changed merging softdevice from s110 to s130
2016-06-11 08:06:06 +09:00
Jimmy Brisson
e333f9008f
Add alias for uvision4 exporter
...
it is now called both uvision (old name) and uvision4 (new alias)
2016-06-10 14:22:30 -05:00
Mihail Stoyanov
f6acb1ffb4
Forward ported changes to tools
2016-06-10 15:19:02 +01:00
Mihail Stoyanov
51c10165ca
Fixed toolchain flags so exporters can use them
2016-06-10 13:12:21 +01:00
Mihail Stoyanov
75a18ff1a3
Add config system macros to exporters
...
Support various exporter features
2016-06-10 11:27:23 +01:00
Mihail Stoyanov
9f62d70fbf
Update project generator script to allow working with any source
...
Update test exporters script
Update travis build script
Added config system CLI script
Fixed building of legacy libraries and layouts
2016-06-10 02:24:27 +01:00
Mihail Stoyanov
c2e3001739
Add config system, memap, updates to build_api and toolchains
2016-06-09 23:50:03 +01:00
Mihail Stoyanov
773dab514e
Add --source option to both build.py and make.py. Also add test.py script for compiling and listing tests
2016-06-09 23:11:23 +01:00
Mihail Stoyanov
87a978c4e8
Move private_settings.py to root mbed_settings.py. Various updates to reflect the path changes
2016-06-09 22:24:05 +01:00
Mihail Stoyanov
5e6722dbab
Ported updates to targets, utils and settings scripts
2016-06-09 22:05:35 +01:00
Mihail Stoyanov
42c62abed1
Further changes to reflect workspace_tools to tools rename
2016-06-09 21:40:54 +01:00
Mihail Stoyanov
3d45b2cdbb
Renamed workspace_tools folder to tools
2016-06-09 21:34:53 +01:00