Commit Graph

176 Commits (4198ae620ca0d4fa0cb953872afb288e94c28028)

Author SHA1 Message Date
Jimmy Brisson 4198ae620c Tools: Restrict toolchains reported by mbed compile -S to official ones
### Description

The `mbed compile -S` command is suposed to indicate what targets
support what toolchains. The command was printing out things that
don't make sense, like `GCC_CR` and things that make sense, but are
not offiially supported yet, like `ARMC6`. This PR fixes all of that.

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Breaking change
2018-10-18 11:10:16 -05:00
Cruz Monrreal II 5d74b772ab Merge branch 'remove_gcc_cr' of ssh://github.com/bridadan/mbed into bridadan-remove_gcc_cr 2018-10-11 13:18:49 -05:00
Martin Kojtal 4a0e2bdb31
Merge pull request #8330 from theotherjimmy/force-int-time
Tools: Fix Python3 + firmware header traeback
2018-10-09 10:31:26 -05:00
Cruz Monrreal 43cf16d0f1
Merge pull request #8167 from JammuKekkonen/change_update_format_to_binary
Change update file format to binary for all targets
2018-10-08 10:10:01 -05:00
Jimmy Brisson 8d63ef6060 Tools: Fix Python3 + firmware header traeback
### Description

Traceback:
```
Merging Regions
  Filling region bootloader with mbed-cloud-client-example/mbed-os/features/FEATURE_BOOTLOADER/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/TARGET_FRDM/mbed-bootloader-k64f-block_device-sotp-v3_4_0.bin
  Padding region bootloader with 0x9a4 bytes
Traceback (most recent call last):
  File "mbed-cloud-client-example/mbed-os/tools/make.py", line 293, in <module>
    ignore=options.ignore
  File "mbed-cloud-client-example/mbed-os/tools/build_api.py", line 548, in build_project
    merge_region_list(region_list, res, notify)
  File "mbed-cloud-client-example/mbed-os/tools/build_api.py", line 423, in merge_region_list
    _fill_header(region_list, region).tofile(header_filename, format='hex')
  File "mbed-cloud-client-example/mbed-os/tools/build_api.py", line 380, in _fill_header
    header.puts(start, struct.pack(fmt, time()))
struct.error: required argument is not an integer
```

reason: `time()` returns a float. So the fix is to force it to be an `int`.

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Breaking change
2018-10-04 11:56:18 -05:00
Brian Daniels c12042a4ab Remove references to GCC_CR from the rest of the tools 2018-10-02 10:51:54 -05:00
Olli-Pekka Puolitaival 55336b034d Py3 support back. Reverted accidentially in icetea changes rebase 2018-09-19 13:59:28 +03:00
Jammu Kekkonen 49572d570a Change update file format to binary to all targets
- Change the default file format to binary for all targets, even though some targets need hex as app format, updater always needs bin for now
- Unify the file name generation from generator side and usage side for the update bin
2018-09-18 12:13:29 +03:00
Cruz Monrreal 48c149b227
Merge pull request #7720 from jeromecoutant/PR_PRETTYTABLE
python scripts : table print with github policy
2018-09-06 22:29:30 -05:00
Olli-Pekka Puolitaival e27a26eb9d Icetea support 2018-08-31 11:51:57 +03:00
Cruz Monrreal 02c03204a6
Merge pull request #7714 from brianesquilona/feature_bootloader
Add BOOTLOADER feature
2018-08-24 19:30:21 -05:00
Jimmy Brisson a7ddea78d7 Remove firmware header from update image 2018-08-22 09:08:12 -05:00
Olli-Pekka Puolitaival 6107769239 Fix build_data functionality with python 3 2018-08-13 12:15:21 +03:00
jeromecoutant a42c73df1b python scripts : table print with github policy 2018-08-07 15:14:27 +02:00
Cruz Monrreal 8755e56fd6
Merge pull request #7567 from theotherjimmy/managed-update-image
Tools: Generate update images with managed bl mode
2018-07-26 10:51:40 -05:00
Jimmy Brisson 76078f6a50 Include `-t ARM` support for v8m, armc6 targets 2018-07-25 11:48:14 -05:00
Jimmy Brisson ac14e37a77 Correct result usage in reporting infra 2018-07-25 10:04:18 -05:00
Jimmy Brisson 69203d30f1 Create update images with managed bl mode 2018-07-20 10:53:00 -05:00
Jimmy Brisson ae033da12f Use mapping of core->arch ver. for tc picking 2018-07-19 10:55:35 -05:00
Jimmy Brisson c030c6a52b Use `-t ARM` for v8m targets
And pick the correct compiler
2018-07-19 10:48:35 -05:00
Cruz Monrreal II a070e350ec Removed extra ARMc6 instance in unique mapping 2018-07-18 14:10:42 -05:00
Cruz Monrreal e9e1ff997d
Merge pull request #7302 from OpenNuvoton/nuvoton_m2351_v1.1
Support Nuvoton's NUMAKER_PFM_M2351 target
2018-07-18 08:49:55 -05:00
Jimmy Brisson 750a2ace64 Use paths explicitly in copy from mbed libs 2018-07-16 14:12:00 -05:00
Jimmy Brisson 91e77f16cd Import FireRef before using it 2018-07-16 14:12:00 -05:00
Jimmy Brisson 545553b6bc Rewrite test detection to avoid relying on "inc_dirs" 2018-07-16 14:11:08 -05:00
Jimmy Brisson 8166889885 Compute inc_dirs from headers 2018-07-16 14:11:08 -05:00
Jimmy Brisson 001c2d3b3b Revisit Mbed 2 building
It's much cleaner now
2018-07-16 14:11:08 -05:00
Jimmy Brisson 7a26cd8da8 Use paths in linking 2018-07-16 14:11:08 -05:00
Jimmy Brisson de913e1ea2 Improve resources API to include more use cases 2018-07-16 14:11:08 -05:00
Jimmy Brisson 06f3fca6cf Correct the _only_ detect_duplicates call 2018-07-16 14:11:08 -05:00
Jimmy Brisson 9326386daf Switch to Resources in build_api and tests 2018-07-16 14:11:08 -05:00
Jimmy Brisson 361fc65f08 Allow missing toolchain parameter to get_config 2018-07-16 14:11:08 -05:00
Jimmy Brisson 4c7cf21feb Require notifier in resources 2018-07-16 14:10:21 -05:00
Jimmy Brisson 7c42302854 Update test builder to use new resources 2018-07-16 14:10:21 -05:00
Jimmy Brisson 87146cd66a Cleanup and reduced scanning 2018-07-16 14:10:21 -05:00
Jimmy Brisson 519e338667 Rework export resource scanning 2018-07-16 14:10:21 -05:00
Jimmy Brisson 2d8cf737e4 Move resource scanning into it's own module 2018-07-16 14:10:21 -05:00
Jimmy Brisson 9968b547d9 Allow ARMC6 only mbed 5 releases 2018-07-16 08:42:55 -05:00
Jimmy Brisson 51276a66b0 Update compiler check to allow only v6 for OS 5 2018-07-12 18:01:40 +08:00
Jimmy Brisson 6d42bd31c6 Tools: Correct release version "parsing" for py3 2018-07-11 09:46:03 -05:00
Cruz Monrreal fab08498f8
Merge pull request #7277 from theotherjimmy/error-on-unknown-config
Tools: Persist config errors until validation occurs
2018-07-05 10:36:35 -05:00
jeromecoutant e17b1df13d build_api.py : add comment about separate_names 2018-06-29 09:30:07 +02:00
Jimmy Brisson 2a9923f86e Skip invalid undefined errors 2018-06-28 10:26:00 -05:00
Cruz Monrreal 8baa8c5997
Merge pull request #7353 from jeromecoutant/PR_BUILDOS2
build_api script : separate PeripheralPins.o
2018-06-28 10:08:42 -05:00
jeromecoutant eba9fb1f8f build_api script : separate PeripheralPins.o 2018-06-27 17:15:37 +02:00
Jimmy Brisson 6f54a8fdd7 Check version of Mbed CLI compile 2018-06-18 14:03:09 -05:00
Cruz Monrreal 80dde0b953
Merge pull request #7092 from cmonr/py3-in-windows
Additional fixes for running Python 3 in Windows
2018-06-04 21:45:55 -05:00
Cruz Monrreal II f689ace3e3 Removed extraneous file open 2018-06-04 12:02:49 -05:00
Cruz Monrreal 78d9c4f330
Merge pull request #6582 from theotherjimmy/memap-flamegraph
Implement zoomable html-flamegraph memap output
2018-06-04 10:48:08 -05:00
Cruz Monrreal II cdbae994d1 Modified IntelHex tofile parameter to use path.
Py3 open(...) returns a BufferedReader instead of a file.
2018-06-04 09:21:43 -05:00