Commit Graph

1052 Commits (92eae30c406cbbed4bd7e995a42b7591a3ce70d8)

Author SHA1 Message Date
Simon Hughes 7b7db588ff STORAGE: remove RTOS_9 test from tests.py. 2017-02-23 16:39:53 +00:00
Simon Hughes 5a977eff30 STORAGE: PR 3762 fix to remove FAT_FS, SD_FS, FS_LIBRARY from tools scripts. 2017-02-23 16:39:46 +00:00
Simon Hughes e43f667174 STORAGE: PR 3762 fix to remove FAT_FS, SD_FS, FS_LIBRARY from tools/libraries.py and tools/tests.py 2017-02-23 16:39:44 +00:00
Simon Hughes 840c77793b STORAGE: Pull request 3762 review feedback changes.
- Fixing code formatting errors with astyle tool.
- Replaced use of TOOLCHAIN_xxx macros with compiler emitted macros.
- Added const to BlockDevice::get_xxx_size() member functions.
- Added documentation for FAT filesystem thread support.
- Added documentation for fat_filesystem_set_errno().
- Added documentation clarifying the reasons for errno/stat symbol definitions in retarget.h.
- Removed FAT filesystem from mbed 2 testing.
- Fixed FATMisc.h Copyright (c) 2016 year to 2017 as its a new file.
- Removed #ifndef NDEBUG from HeapBlockDevice.cpp.
- Removed unnecessary todo comment in retarget.cpp.
2017-02-23 16:39:42 +00:00
Simon Hughes a79062f876 Remove build_travis.py NUCLEO_F412ZG usb tests which requires other commits. 2017-02-23 16:39:34 +00:00
Christopher Haster 90429f60c8 Fixed mbed 2 build_travis with block device
Conflicts:
	tools/build_travis.py
2017-02-23 16:37:15 +00:00
Simon Hughes 5c7fdc13c7 FILESYSTEM: renamed features/TESTS/fs-fat features/TESTS/filesystem. 2017-02-23 16:30:23 +00:00
Simon Hughes 4acf33f436 FILESYSTEM: moved FAT filesystem implemenation to features/filesystem subdir, and fs-fat tests to features/TESTS. 2017-02-23 16:30:21 +00:00
Sam Grove ba2176323c Merge pull request #3733 from theotherjimmy/feature-bootloader
Enable boot-loader builds
2017-02-23 10:18:31 -06:00
Jimmy Brisson d62f046e57 Fail bootloader builds on targets that don't support it
This patch will prevent building bootloader builds on targets that have
not yet had their linker scripts/scatter files changed to allow for the
ROM space shrinking expected by bootloader builds. At the point of this
patch, bootloader linker script modifications are only supported by the
NUCLEO_F429ZI, K64F, KL46Z, and Odin.
2017-02-22 18:27:23 -06:00
Jimmy Brisson 9a63bfb1fb Enable boot-loader builds
To enable a boot-loader style application, override
"targets.bootloader_exec" or "targets.restrict_size" on a particular
target. These parameters are a bin or hex file, and an integer, in bytes,
respectively. If either override is present, then an application region
is created after the boot-loader region, when "targets.bootloader_exec"
is present, and before post-application, when "targets.restric_size" is
present. The size of the boot-loader region is read from the file
provided in the configuration.
2017-02-22 18:20:26 -06:00
Sam Grove 067f5a0fef Merge pull request #3791 from theotherjimmy/remove-cr
Remove GCC_CR and refurbish LPCXpresso exporter
2017-02-22 13:33:14 -06:00
Sam Grove 988a1891b2 Merge pull request #3797 from theotherjimmy/remove-export-readme
Remove export subdir readme
2017-02-21 10:57:35 -06:00
Anna Bridge 251ef81719 Fix indentation level to be consistent. 2017-02-21 15:41:17 +00:00
Anna Bridge 42f98616e2 New script for automating the compilation of mbed-os 2 targets.
Usage: python tools/check_release.py
Run from the mbed-os directory.

For details on how the script works and how to set up the configuration
json file, please see the python file header.
2017-02-21 15:33:52 +00:00
Jimmy Brisson 1f64e2bc43 Remove export subdir readme
It was really out of date, and is the same as `mbed export -S`. This
makes me think that it's useless
2017-02-17 11:07:22 -06:00
Sam Grove 9ea5702634 Merge pull request #3765 from theotherjimmy/remove-zip-dupes
Remove duplicate files in zipped exports
2017-02-17 09:19:12 -06:00
Sam Grove 75560f3121 Merge pull request #3745 from theotherjimmy/ld-flags-once-make
Pass linker flags to the linker only once
2017-02-17 09:12:40 -06:00
Sam Grove 69de788f94 Merge pull request #3712 from JojoS62/enable-GCC_CR-in-memmap
add GCC_CR as toolchain for memmap
2017-02-17 09:11:22 -06:00
Jimmy Brisson 1d95604275 Remove GCC_CR
It has not worked since the introduction of build profiles
2017-02-16 15:03:24 -06:00
Jimmy Brisson bcbfe6abe1 Rename codered to lpcexpresso in code 2017-02-16 12:09:43 -06:00
Liviu Ionescu 14ffc2511e Merge remote-tracking branch 'ARMmbed/master' 2017-02-14 14:05:37 +02:00
Jimmy Brisson 467bac1997 Remove duplicate files in zipped exports
The zipping function of the exporters would unconditionally add all
files scanned by scan resources to a zip, including all of the files
associated with each feature. This would conflict with
`build_api.scan_resources` adding all of the files to the resources
object that correspond to the enabled features. To resolve this
difference in behavior, I made the zipping function oblivious to
features and had the upper level function, which has access to the
target configuration, do the proper merging.
2017-02-13 15:12:58 -06:00
Sam Grove d8151d7991 Merge pull request #3590 from OpenNuvoton/nuvoton
[NUC472/M453] Export IAR project and other bugfixes
2017-02-13 10:12:02 -06:00
Jimmy Brisson 7d75e277e7 Pass linker flags to the linker only once
Before, `make_gcc_arm` would export a makefile with both linker flags in
the `$(LD)` make variable and the `$(LD_FLAGS)` make variable. This only
affected GCC based makefiles, as the `$(LD)` make variable would only
contain the linker for both ARMC5 and IAR. This patch enforces the
`$(LD)` behavior of ARMC5 and IAR on all of the compilers by truncating
`$(LD)` to just the command
2017-02-10 11:28:02 -06:00
Liviu Ionescu 47b164b00b Merge remote-tracking branch 'ARMmbed/master' 2017-02-09 19:11:44 +02:00
Liviu Ionescu 9101ea4da5 add --launcher.suppressErrors for headless Eclipse 2017-02-09 19:11:28 +02:00
Sam Grove 9ae6f7aa49 Merge pull request #3730 from c1728p9/redirect_support
Add redirect support to toolchains
2017-02-09 09:51:32 -06:00
Sam Grove cf19bb6ae8 Merge pull request #3727 from c1728p9/fix_error_handling
Fix access before variable defined bug in test_api
2017-02-09 09:50:07 -06:00
Sam Grove 49494cfb29 Merge pull request #3717 from sarahmarshy/iar-new-targets
Add IAR export support for NUCLEO_F207ZG
2017-02-09 09:47:45 -06:00
Sam Grove 2de453c8fa Merge pull request #3706 from c1728p9/pre_process
Use the C Pre-Processor on GCC Linker scripts
2017-02-09 09:40:36 -06:00
Sam Grove 942cf8cbf0 Merge pull request #3702 from bridadan/remove_old_directories
Remove old tool directories
2017-02-09 09:39:25 -06:00
Sam Grove 34de26dc3a Merge pull request #3695 from c1728p9/fix_invalid_device_names
Enforce device_name is valid in targets.json
2017-02-09 09:39:05 -06:00
Sam Grove 59c2c4bd99 Merge pull request #3693 from bulislaw/rework_build_profiles
[Proposal] Simplify build profiles: debug and release only
2017-02-09 09:36:14 -06:00
Sam Grove 492db95be9 Merge pull request #3669 from bridadan/catching_assembler_errors
Adding case insensitive 'error' detection
2017-02-09 09:33:17 -06:00
Liviu Ionescu b2638646b8 Merge remote-tracking branch 'ARMmbed/master' 2017-02-09 05:17:22 +02:00
Jimmy Brisson c0f27597ec Add redirect support to toolchains
We create an API for generating the linker flags needed to redirect
functions in an application
2017-02-08 17:34:35 -06:00
Jimmy Brisson 3155e71786 Add pre-processing of linker scripts to Make exporter
For toolchains that do not implicitly run the C pre-processor on their
linker scripts the toolchain is expected to define a `preproc`
attribute.  The Makefiles then pick up on this attribute and add another
rule for pre-processing the linker script automatically.
2017-02-08 17:27:11 -06:00
Jimmy Brisson af4d848144 Use the C Pre-Processor on GCC Linker scirpts
This allows us to define parts of the linker script outside of the
linker script itself. In particular, we are interested in restricting
ROM to a subsection.
2017-02-08 17:26:36 -06:00
Russ Butler 32b9ada3ec Enforce device_name is valid in targets.json
Add a CI test ensure that device_name exists inside the pack index.
2017-02-08 14:54:26 -06:00
Russ Butler acdf1e3728 Fix or remove invalid device names
The field device_name is intended to match that of a target in a
device family pack. Remove this field for devices which do not have
a pack. Fix the name for devices that have the name incorrect. Update
IAR definitions for device which no longer have a device_name but
still need to have support for the IAR exporter.
2017-02-08 14:54:25 -06:00
Russ Butler 8c91b417e6 exporters: allow target name to be used for IAR
Allow the IAR exporter to fall back to a target's name if the
device_name entry is missing.
2017-02-08 14:54:20 -06:00
Jimmy Brisson 83e843bd8c Fix access before variable defined bug in test_api
The worker_result variable was not guaranteed to have a `'result'` or
`'reason'` key and accessing them before testing for them could result
in an error when they are not provided. This patch changes the checks to
prevent check for their existence before accessing them.
2017-02-08 13:56:43 -06:00
Sarah Marsh 0677e5add6 Add IAR export support for NUCLEO_F207ZG 2017-02-07 14:25:43 -06:00
Brian Daniels b0739d7520 Fixing Cortex-A and SARA_NBIOT_EVK build failures (#3)
* Adding Cortex-A support for gnuarmeclipse
* Preventing '-mthumb' from being added to Cortex-A builds.
Previously, both '-mthumb' and '-marm' were being supplied to the
compiler (in that order). Because '-marm' came last, the compiler
respected this option. This change makes it so '-mthumb' is added for
all 'Cortex-M' targets only.
* Renaming to capital .S for Eclipse compatibility
2017-02-07 21:18:18 +02:00
Sam Grove 160455c972 Merge pull request #3689 from adbridge/master
Updated to allow for new directory structure for mbed-dev source.
2017-02-07 10:39:22 -06:00
Sam Grove 3a99b4cb26 Merge pull request #3627 from javier-moreno-tridonic-com/feature-detailed-for-mbed
Memap detailed function also for mbed os modules
2017-02-07 10:32:28 -06:00
JojoS 649d8a1d15 add GCC_CR as toolchain for memmap 2017-02-07 15:05:32 +01:00
Bartek Szatkowski 40d3b22785 Build: Rework build profiles
Rename small.json to release.json, default.json to develop.json and make
it the default profile.
2017-02-07 11:41:16 +00:00
Brian Daniels 57e93a5bab Fixing build step
* Cleaning up makefile
2017-02-07 04:55:51 +02:00
Brian Daniels 643f0e1c8f Remove old buildbot config 2017-02-06 10:54:09 -06:00
Brian Daniels 17cbbe3748 Remove old exporter tests 2017-02-06 10:53:46 -06:00
Anna Bridge 293d049805 Updated to allow for new directory structure for mbed-dev source.
Fixed issue where some deleted files/folders where not being removed from
 the repo.
 Removed code no longer used/needed.
2017-02-03 16:50:45 +00:00
Brian Daniels 6be8278246 Adding case insensitive 'error' detection
GCC Assembler errors were being missed because it prints 'error'
with a captial 'E'. This change allows the 'e' to be either lower
case or upper case.
2017-02-02 12:27:59 -06:00
Sam Grove 65956d108e Merge pull request #3677 from c1728p9/armcc_linker_flags
ARM - pass linker flags along to the linker
2017-02-02 11:05:59 -06:00
Sam Grove 7083dc5339 Merge pull request #3661 from theotherjimmy/uvision-add-cpu
[Exporters] Add core to uvision exporter template
2017-02-02 10:58:53 -06:00
Sam Grove 5d946c46a5 Merge pull request #3653 from bridadan/fatal_error_detection
Adding fatal error detection to toolchains
2017-02-02 10:57:32 -06:00
Sam Grove dd9b6451ef Merge pull request #3632 from mbedNoobNinja/master
IDE Export support for platform VK_RZ_A1H
2017-02-02 10:54:11 -06:00
Liviu Ionescu 7e7b25265c enable the default profile 2017-02-02 18:42:53 +02:00
Liviu Ionescu 269f2b115e generate distinct configurations for profiles
- ignore the 'default' profile, it is a duplicate
- remove repetitions from .cproject.tmpl
2017-02-02 16:34:17 +02:00
Russ Butler 660b221285 ARM - pass linker flags along to the linker
On the ARM toolchain linker flags specified in the build profile do
not get passed to armlink. This patch adds these flags to the
arguments sent to armlink.
2017-02-01 09:23:31 -06:00
Jimmy Brisson eadbe71d58 Add core to uvision exporter template
Strip trailing F's and D's off of the Cputype in uvision
2017-01-31 12:18:52 -06:00
mbedNoobNinja d627bf2d1f Export IDE support added 2017-01-31 10:23:21 +02:00
bcostm e397e44f9e Enable USB tests in Travis build 2017-01-27 17:26:47 +01:00
Brian Daniels 3ad3a9f1d5 Adding fatal error detection to toolchians.
Before the toolchains would ignore error messages that contained the
string "Fatal error". This would lead to a silent failure unless the
compile command was ran with verbose options. This is now fixed.
2017-01-27 12:07:13 +02:00
Liviu Ionescu a5f01293a7 makefile.target.tmpl: remove multiline foreach 2017-01-27 09:58:05 +02:00
Liviu Ionescu 5b7a54e21c add jinja options at caller 2017-01-27 09:56:59 +02:00
Liviu Ionescu 2322f1532e Merge remote-tracking branch 'origin/master' 2017-01-26 22:43:38 +02:00
Liviu Ionescu 207dd311cc Merge remote-tracking branch 'ARMmbed/master' 2017-01-26 17:20:15 +02:00
Martin Kojtal 23647442fb Merge pull request #3601 from theotherjimmy/clean-export-dir
Clean export dir
2017-01-26 10:36:38 +02:00
Martin Kojtal 57ec7493f2 Merge pull request #3608 from ilg-ul/jinja
Exporters: make jinja engine strict
2017-01-26 10:32:55 +02:00
Martin Kojtal 7316b89c1d Merge pull request #3600 from theotherjimmy/refactor-sys-libs
[toolchains] Refactor sys libs
2017-01-26 10:30:27 +02:00
Max Vilimpoc 2ce1a8d953 Allow user overrides of LINKER_SCRIPT Make variable (#3594)
Makefile: Allow user overrides of LINKER_SCRIPT Make variable
2017-01-26 10:28:18 +02:00
Martin Kojtal d4fa863b9c Merge pull request #3588 from c1728p9/arm-pack-manager
arm-pack-manager - fix tracebacks
2017-01-26 10:27:08 +02:00
Martin Kojtal b9557aee12 Merge pull request #3587 from bridadan/fix_build_script_toolchain_check
Fixing toolchain executable not found error for build.py
2017-01-26 10:26:09 +02:00
Martin Kojtal 25ba021c63 Merge pull request #3578 from theotherjimmy/inherit-target-labels
Target system - Inherit names from target parents
2017-01-26 10:24:45 +02:00
Martin Kojtal 17e9131a52 Merge pull request #3574 from c1728p9/fix_invalid_assert
Fix invalid assert in exporters
2017-01-26 10:24:09 +02:00
Martin Kojtal 0ea544f143 Merge pull request #3560 from theotherjimmy/refactor-ignores
Refactor scan resources to account for base_paths
2017-01-26 10:23:14 +02:00
javier-moreno-tridonic-com 8ff17b9235 Update memap.py 2017-01-23 17:02:15 +01:00
Brian Daniels 35137bbe42 Fixing printing for build step 2017-01-20 14:32:55 -06:00
Brian Daniels 8edc61d244 Breaking up clean command to avoid command limit 2017-01-20 13:21:06 -06:00
Brian Daniels a23b507c32 Fixing build function for gnuarmeclipse exporter 2017-01-19 18:30:07 -06:00
Brian Daniels 04bacc7d11 Enabling parallel builds by default 2017-01-19 18:29:44 -06:00
Liviu Ionescu dc6f9342ae gnuarmeclipse: fix windows paths 2017-01-20 00:46:00 +02:00
Jimmy Brisson 87ee33d56b Allow keyword arguments to jinja env from exporters gen_file 2017-01-19 08:00:03 -06:00
Jimmy Brisson 6230d78738 Fix undefined keys in CMSIS exporter 2017-01-19 04:02:29 -06:00
Jimmy Brisson 526e592de5 Fix all undefined key errors in iar exporter 2017-01-19 03:54:10 -06:00
Liviu Ionescu 36de50d28a Exporters: make jinja engine strict
- configure the jinja Environment to raise exception when substitution
variables are not defined
- trim spaces and lines, to avoid empty lines in generated files
2017-01-18 19:31:59 +02:00
Liviu Ionescu f82fa9310e Merge remote-tracking branch 'ARMmbed/master' 2017-01-18 19:13:25 +02:00
Liviu Ionescu 0c6381ff25 rename short named variables 2017-01-18 19:09:16 +02:00
Liviu Ionescu 4f17c95925 tentative build() implementation 2017-01-18 14:39:50 +02:00
Liviu Ionescu cc3fe4c73e all options parsed, build functional 2017-01-18 01:54:04 +02:00
Jimmy Brisson 4a08fd5112 Move sw4stm32 into its own dir 2017-01-17 14:47:36 -06:00
Jimmy Brisson beb9c6f4ec Move simplicity to its own dir 2017-01-17 14:47:19 -06:00
Jimmy Brisson 3489b14643 Use sys_libs from mbedToolchain in Makefiles 2017-01-17 13:57:37 -06:00
Jimmy Brisson 70aaaa9367 Move zip into its own dir 2017-01-17 12:39:39 -06:00
Jimmy Brisson 084c93b3b9 Move KDS to its own directory 2017-01-17 12:39:11 -06:00
Jimmy Brisson ad58ec47e0 Move e2studio into its own folder 2017-01-17 12:38:40 -06:00
Jimmy Brisson eda115dad9 Move atmelstudio to its own directory 2017-01-17 12:37:54 -06:00
Jimmy Brisson fdfbde8051 Move DS_5 into its own directory 2017-01-17 12:37:20 -06:00