Commit Graph

6077 Commits (0549b1e7c5f9db5abb1ecda7a1ebeb43f4aad19c)

Author SHA1 Message Date
Bogdan Marinescu 0549b1e7c5 Added tests for the configuration mechanism
The tests check a number of features of the configuration mechanism
(mostly the inheritance and overriding of configuration parameters), as
well as the behavarious in various abnormal situations.
2016-06-02 15:09:56 +03:00
Bogdan Marinescu d83dc27fcf Add configuration mechanism
This commit adds the implementation of the configuration mechanism and
applies it for two uses cases:

- building a program (build_project in build_api.py)
- building a library (build_library in build_api.py)

There's also a new method 'get_config' in build_api.py that's used to
return the configuration of a project. Currently, it's used only for
testing, the intention is to use it for the implementation of the 'mbed
config' command.

Tested with various test configurations on the "blinky" example and also
with its own set of tests (to be added in a separate commit).

'make.py' was modified to send the target *name* to build_project, as
opposed to the target *instance*. This is needed because the
coniguration mechanism allows for creating custom targets, but these
targets are not available until the configuration file
mbed_app_config.json is parsed, which happens in build_project (so
before make.py calls 'build_project'). The API of build_project didn't
change, it now accepts both target names and target instances for the
'target' argument.

Known issues:

- doesn't currently work when doing binary builds of the SDK. Currently,
  building the SDK is broken in mbed-os, so this will be added later.
- when building tests, the build process ends up calling
  'build_project', so the configuration mechanism should play well with
  tests. However, this wasn't tested.

A later commit will all documentation for the configuration mechanism.
2016-06-02 15:09:52 +03:00
Bogdan Marinescu 031cc7fbc5 Added scanning for JSON files in the resource scanner
Also added a method to add new macros to the toolchain instance.
Both of these changes are needed by the configuration mechanism.
2016-06-02 11:32:58 +03:00
Bogdan Marinescu 83b5b474a0 Add tools/ to the list of ignored directories
Mirros the setting for mbed/workspace_tools.
2016-06-02 11:32:58 +03:00
Bogdan Marinescu 7c920259cc Improvements to the targets implementation
- added a method that can be used to new targets dynamically (this
  will be used by the configuration mechanism).
- the JSON parser now keeps the order of the keys read from the JSON
  file (will also be used by the configuration mechanism).
- there's now a global target cache in targets.py, so that a target
  with a given name will only be created once.
2016-06-02 11:32:58 +03:00
Bogdan Marinescu 8dc9b0b226 Merge pull request #67 from ARMmbed/fix_test_targets
Fixed test targets
2016-06-01 23:57:23 +01:00
Bogdan Marinescu b12e354596 Fixed test targets
Currently, this repository only compiles for K64F and LPC1768, so it makes
no sense to add compilation for other targets, since this only results in
tests continously failing.
2016-06-02 01:33:59 +03:00
Martin Kojtal 4e18a1c276 Merge pull request #177 from ARMmbed/revert-108-c027
Revert "Add the C027Interface"
2016-06-01 13:58:14 +01:00
Martin Kojtal 0aa9bd0bf2 Revert "Add the C027Interface" 2016-06-01 13:50:52 +01:00
Martin Kojtal d3dbfd2602 Merge pull request #168 from bridadan/fix-binary-naming
Fixing issue with binary name.
2016-06-01 09:13:06 +01:00
Sam Grove 834fc28bdb Merge pull request #108 from geky/c027
Add the C027Interface
2016-06-01 07:51:28 +08:00
Sam Grove c9641f969a Merge pull request #169 from c1728p9/mbed_update
Update mbed library to bring in fixes
2016-06-01 07:39:24 +08:00
Russ Butler 38cc7d8137 Update mbed library to bring in fixes
Update the mbed library to fix IIC and SPI for KSDK2 devices along with
the memory map of the K64F.
2016-05-31 14:27:30 -05:00
Brian Daniels a333ec8ef0 Fixing issue with binary name.
There was an issue where the binary name was incorrectly set when building
from any directory that isn't the project root. This fixes that issue by
first getting the absolute path, then finding the binary name using that.
2016-05-31 12:41:12 -05:00
Martin Kojtal 05f2fe38e7 Merge pull request #165 from ARMmbed/mbed-client-classic
Updating mbed-client-classic repo with latest reconnection logic.
2016-05-31 13:26:35 +01:00
Yogesh Pande b5a8dcf374 Updating mbed-client-classic repo with latest reconnection logic.
This commit includes
 - Reconnection logic porting from existing mbed OS implementation.
 - Tested on Ethernet.
2016-05-31 14:42:14 +03:00
Martin Kojtal 02447caee8 Merge pull request #164 from PrzemekWirkus/lib_greentea_client
Add official repository for greentea-client to greentea-client.lib
2016-05-31 09:11:10 +01:00
Przemek Wirkus c27d51ab4f Add official repository for greentea-client to greentea-client.lib
Branched from greentea-client and released this in tag/v1.1.0_yotta_strip
2016-05-30 19:49:59 +01:00
Martin Kojtal 583ed4320d Merge pull request #155 from bridadan/fix-binary-naming
Fixing issue where project_name was an empty string
2016-05-30 10:36:32 +01:00
Sam Grove 4cf7a3faf5 Merge pull request #141 from c1728p9/pull_in_mbed
Pull in mbed
2016-05-28 13:49:57 +08:00
Russ Butler 3dac400d38 Pull in mbedmicro/mbed
Pull in mbedmicro/mbed.  Make the following changes in addition:
- Ignore unused directories in mbed
- Add stub mbed-drivers/mbed.h for backwards compatibility
- Remove targets.json and instead use mbed's version
2016-05-28 00:40:59 -05:00
Russ Butler eb76d0ebd6 Pull in lwip-eth updates from mbedmicro/mbed
Sync the directory lwip-eth with that of mbedmicro/mbed at revision
b32f7a9aaf.
2016-05-28 00:08:28 -05:00
Russ Butler ea432a8c3a Move libs and remove core directory
Remove the core directory since changes here need to be brought into
mbedmicro.  Move mbedtls and uvisor-mbed-lib to the project root.
2016-05-28 00:08:20 -05:00
Russ Butler b3134e4efd Remove configuration-store and flash-abstraction
Remove the flash-abstraction repo since it does not point to an
official repo.  Remove configuration-store since it relies on
flash-abstraction.
2016-05-28 00:08:15 -05:00
Russ Butler 389892dcaf Remove critical section code
Remove critical section code since this now lives in mbedmicro/mbed.
2016-05-28 00:08:09 -05:00
Russ Butler a902e0f9e9 Remove RTOS
Remove the RTOS directory in preparation for pulling in mbedmicro/mbed.
2016-05-27 17:53:54 -05:00
Russ Butler 966ef8c35e Remove hal
Remove all the hal files in preparation for pulling in mbedmicro/mbed.
2016-05-27 17:53:53 -05:00
Brian Daniels 99098d035a Merge pull request #157 from c1728p9/iar
Pull up on atmel-rf-driver to fix older IAR
2016-05-27 17:29:31 -05:00
Russ Butler 315a500b38 Merge pull request #145 from adbridge/armcc
Fix ARMCC compiler warning: Missing arg type.
2016-05-27 15:38:48 -05:00
Russ Butler aa3c0deb70 Merge pull request #156 from theotherjimmy/mbedignore-fix
check for .mbedignore in root of source folders
2016-05-27 15:36:25 -05:00
Russ Butler 4443116172 Merge pull request #137 from bridadan/continue-test-build-if-fail
Allowing test builds to continue if one test build fails
2016-05-27 14:48:58 -05:00
Russ Butler a659b47785 Pull up on atmel-rf-driver to fix older IAR
Bring in changes to support older versions of IAR.
2016-05-27 14:08:49 -05:00
Jimmy Brisson ba29012abb check for .mbedignore in root of source folders 2016-05-27 14:01:06 -05:00
Brian Daniels 6e4d74bc24 Fixing issue where project_name was an empty string 2016-05-27 12:00:26 -05:00
Anna Bridge 5e58036974 Update the extern C decalaration. Add __cpluplus block to unity_handler.h
and include that header in unity_handler.cpp.
2016-05-27 14:48:32 +01:00
Marcus Shawcroft 2a456e5a58 Merge pull request #154 from adbridge/status_t_update
Update all instances of status_t in the unit tests to fully namespace…
2016-05-27 13:16:14 +01:00
Anna Bridge 635afa58fc Update all instances of status_t in the unit tests to fully namespace them
to utest::v1::status_t .
2016-05-27 11:59:25 +01:00
Martin Kojtal be0fcfb02b Merge branch 'theotherjimmy-multi-source-export' 2016-05-27 09:46:37 +01:00
Jimmy Brisson 2d47ab1cdd projects are now named via command line -n 2016-05-27 09:46:03 +01:00
Jimmy Brisson d772ea7a00 Allowed multiple --source specifications on the export command
The project name is set to the first --source argument.
Resources (the class) is now a monoid.
2016-05-27 09:45:45 +01:00
Martin Kojtal 08ecdb296b Merge pull request #139 from geky/callback-fixes
Small fixes for issues with Callback class
2016-05-27 09:14:02 +01:00
Martin Kojtal b98152eac7 Merge pull request #149 from c1728p9/fix_iar
Pull up on config store enough to fix IAR
2016-05-27 08:37:18 +01:00
Russ Butler caa88ba9f4 More IAR test fixes
Make the following changes:
-Fix keyword used in forced inline pragma
-Move alignment test variables off of the stack since alignment there
    is platform dependent.
2016-05-26 17:40:03 -05:00
Russ Butler bb17d6ada9 Rename disassembly file to fix testing with IAR
Disassembly files can unintentionally get picked up by the test build
system.  This patch changes the file extension on those files from
".s" to ".s.txt" so they are ignored.
2016-05-26 17:37:43 -05:00
Russ Butler 10d2b58d1e Pull up on config store enough to fix IAR
Pull up on the configuration-store repo enough to fix IAR.  This patch
does not pull up to master on since this has broken tests which do
not compile.
2016-05-26 10:54:32 -05:00
geky 11baa9dce0 Merge pull request #144 from devran01/master
Incrase netif_up semaphore timeout from 1500ms to 2500ms
2016-05-26 10:46:30 -05:00
Martin Kojtal b5423c877b Merge pull request #135 from c1728p9/remove_mirrors
Remove mirror repos
2016-05-26 16:07:56 +01:00
Martin Kojtal a80428a76c Merge pull request #147 from adbridge/unity_update
Updated Unity lib file in mbed-os to pick up the latest Unity library
2016-05-26 16:01:38 +01:00
Russ Butler bd3ad9d6ff Remove mirror repos
Remove all of the repos which are being automatically mirrored.  The
addition of .mbedignore allows these repos to be used directly.

Also pull up on nanostack-hal-mbed-cmsis-rtos.lib to bring in new
features required by the updated repos.
2016-05-26 09:29:20 -05:00
Martin Kojtal ee90da1149 Merge pull request #143 from 0xc0170/dev_add_test_job
Circle - add building tests for k64f
2016-05-26 15:27:52 +01:00