Commit Graph

1906 Commits (18943a96935185131a054a2228230ab36f42173a)

Author SHA1 Message Date
Jimmy Brisson b384834db5 Print macros in a readable way 2018-04-09 09:26:11 -05:00
Jimmy Brisson aac1099858 Simplify config param printing logic 2018-04-09 09:25:38 -05:00
Jimmy Brisson cdb4e98df3 Remove needless _exit call 2018-04-09 09:25:18 -05:00
Jimmy Brisson 498afc97fa Cleanup get_config imports 2018-04-09 09:23:15 -05:00
Jimmy Brisson 192a8e5094
Merge pull request #6530 from theotherjimmy/exclude-dot-files
Exclude files like `.main.cpp` from builds
2018-04-06 10:45:26 -05:00
Thomas Sailer 696a7f5bd5 generate .mbedignore files in bin and obj to prevent mbed compile from getting confused 2018-04-06 11:45:12 +02:00
Thomas Sailer 69d7c530f5 proper compile flags for Release target; add fib/trim files to .mbedignore so mbed compile doesn't pick them up 2018-04-06 11:44:59 +02:00
Thomas Sailer 7b7d5fcb91 exporter: properly export libraries 2018-04-06 11:42:23 +02:00
Thomas Sailer 84fe7ed5fd skip -c, sort compiler options and file list 2018-04-06 11:41:49 +02:00
Thomas Sailer 8478ec253a copy ncs36510addfib.py into project root, because it cannot be relied to be accessible in the template directory 2018-04-06 11:40:37 +02:00
Thomas Sailer 209310c54f remove NCS36510 specific changes from this branch 2018-04-06 11:31:55 +02:00
Thomas Sailer f53154a95e some modifications from review 2018-04-06 11:31:55 +02:00
Thomas Sailer ca86cbf565 Code::Blocks project file exporter 2018-04-06 11:31:55 +02:00
Jimmy Brisson f34feddaa2 Error on invalid mbed_lib JSON 2018-04-05 14:34:00 -05:00
Jimmy Brisson c0410d7bec Add GCC_ARM support to all fake test targets 2018-04-05 10:11:51 -05:00
Jimmy Brisson 6cf2efa794 Prevent compiling with unsupported compilers 2018-04-04 14:02:13 -05:00
Jimmy Brisson 018596446e Exclude files like `.main.cpp` from builds 2018-04-03 11:23:42 -05:00
Cruz Monrreal 4a5ac149ec
Merge pull request #6512 from theotherjimmy/export-check-rtos
Move Mbed 5 support check so that it affects the exporters
2018-04-03 11:06:55 -05:00
Cruz Monrreal c8bd08f60e
Merge pull request #6043 from ithinuel/add-rak811
add support for the RAK811
2018-03-30 01:54:19 -05:00
Jimmy Brisson 24c7b1a61a Move Mbed 5 support check so that it affects the exporters 2018-03-29 14:05:23 -05:00
Jimmy Brisson c44dba3ef4 Minimize include path size in uvision export 2018-03-27 14:30:43 -05:00
Jimmy Brisson b60729d147 Move filter dot into exporter base class 2018-03-27 14:30:36 -05:00
Wilfried Chauveau 78d73a1a63 add the target to travis build script & sw4stm32 export script. 2018-03-27 10:45:04 +01:00
Cruz Monrreal c291b4ad32
Merge pull request #6428 from theotherjimmy/many-source-export
Avoid incorrect config errors on export with many --source
2018-03-26 14:25:53 -05:00
Jimmy Brisson 92c257709c Disable all deprecated exporters 2018-03-23 09:56:10 -05:00
Jimmy Brisson cd31272d4b Avoid incorrect config errors on export 2018-03-23 09:28:49 -05:00
Jimmy Brisson a27dd66f92 Correct get_config imports 2018-03-21 10:50:56 -05:00
Martin Kojtal 7125c8ad0b
Merge pull request #6344 from tung7970/fix-tools
armcc - remove fromelf output before regenerating one
2018-03-21 14:12:00 +01:00
Tony Wu cca1d5581a armcc - remove fromelf output before regenerating
Fix armcc recompile errors during elf2bin stage. Errors shown as follows:

Elf2Bin: mbed-os-example-wifi
Error: Q0147E: Failed to create Directory .\BUILD\REALTEK_RTL8195AM\ARM\mbed-os-example-wifi.bin\IMAGE2_TABLE: File exists
Finished: 0 information, 0 warning and 1 error messages.
[ERROR] Error: Q0147E: Failed to create Directory .\BUILD\REALTEK_RTL8195AM\ARM\mbed-os-example-wifi.bin\IMAGE2_TABLE: File exists
Finished: 0 information, 0 warning and 1 error messages.

Signed-off-by: Tony Wu <tonywu@realtek.com>
2018-03-20 16:01:22 +08:00
Cruz Monrreal f6bcbfe1f0
Merge pull request #6356 from hug-dev/asm-include-flags
Add include search path when preprocessing assembly files for uvision and make_armc5 exports
2018-03-19 16:52:18 -05:00
Cruz Monrreal 4840e4d3e1
Merge pull request #6192 from theotherjimmy/export-py3
Correct syntax for mbed export in Py3
2018-03-19 11:20:37 -05:00
Cruz Monrreal e01479cc06
Merge pull request #6216 from theotherjimmy/fix-online-realtek
Correct Realtek post-build script to work in the online compiler
2018-03-19 11:19:53 -05:00
Jimmy Brisson e5f5a3b6cc Correct type issue in export arg parsing 2018-03-16 13:18:04 -05:00
Jimmy Brisson 14255ca113 Correct syntax for mbed export in Py3 2018-03-16 13:08:20 -05:00
Cruz Monrreal 0e9824f987
Merge pull request #6354 from chuanga/patch-1
Enable iar export option for MTB_ADV_WISE_1510
2018-03-16 11:45:29 -05:00
Cruz Monrreal aa4ebf13a1
Merge pull request #6361 from theotherjimmy/unicode-options
Convert option list to unicode
2018-03-16 11:33:38 -05:00
Jimmy Brisson a9e3a4fa28 Correct Realtek post-build script to work in the online compiler 2018-03-16 10:09:03 -05:00
Cruz Monrreal 0828727643
Merge pull request #6270 from evva-sfw/error_warning_msg_as_link
Add parameter in tools settings to show error/warning as Link
2018-03-15 11:49:33 -05:00
Cruz Monrreal 9cac3b2f6b
Merge pull request #6149 from bmcdonnell-ionx/typos
Fix typos in the files
2018-03-15 10:53:03 -05:00
Jimmy Brisson 229a072e49 Convert option list to unicode 2018-03-14 11:03:39 -05:00
Hugues de Valon ebc9289d30 Add ASM include flags in uvision export
When exporting to a uvision project, the include flags are not put in
the assembly compilation line. When assembling the files containing
includes, the search path will then fail. This patch adds the include
paths to the Assembly sequence, as it is done for compilation.
This issue was found in the pull request ARMmbed/mbed-os#6168.

Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
2018-03-14 13:09:07 +00:00
Hugues de Valon 6b72edeb9a Add ASM flags virtual path for make export
When exporting a mbed project to make_armc5, the include options (-I)
of the ASM flags are not pointing to the good folder. It should be
pointing to the root mbed-os folder and not the one in BUILD.
This issue was found in the pull request ARMmbed/mbed-os#6168.

Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
2018-03-14 13:08:55 +00:00
Alan Chuang 3a504a500e
Enable iar export option for MTB_ADV_WISE_1510 2018-03-14 19:07:42 +08:00
Cruz Monrreal cb99c280a6
Actually disabled exporters for lorawan example 2018-03-13 12:15:35 -05:00
Cruz Monrreal 1dfe716b56
Disabled exporters for lorawan example 2018-03-13 12:13:55 -05:00
Cruz Monrreal II 0ab2216803 Add lorawan and nvstore examples for testing. 2018-03-12 18:45:16 -05:00
Martin Kojtal d9a1302fd5
Merge pull request #6271 from lfdebrux/profile-merging
Allow build profiles to omit language entries
2018-03-08 17:41:51 +01:00
Cruz Monrreal 79bd2638b8
Merge pull request #6285 from theotherjimmy/fix-6284
Improve json schema and schema errors
2018-03-06 21:07:10 -06:00
Cruz Monrreal 8a7b390fdd
Merge pull request #6102 from Ultimaker/master
Add support for STEVAL-3DP001V1 board
2018-03-06 20:41:41 -06:00
Jimmy Brisson 67e76f3a5e Allow _ and () in identifiers in macros 2018-03-06 11:12:56 -06:00
Jimmy Brisson 6633fbca68 Print array indexes correctly in schema errors 2018-03-06 11:12:22 -06:00
Cruz Monrreal b84627feab
Merge pull request #6146 from theotherjimmy/fix-m33-fp
Correct gcc m33 floating point handling
2018-03-06 08:20:20 -06:00
Cruz Monrreal e7fde46731
Merge pull request #6143 from theotherjimmy/multi-source-export
Correct mbed export with multiple --source params
2018-03-05 21:47:06 -06:00
Laurence de Bruxelles ce6bd9defc Allow build profiles to omit language entries 2018-03-05 15:21:08 +00:00
PHST 3e59bdcbf5 Add parameter in tools settings to show error/warning as Link
Per default mbed compile prints errors/warnings on output not in a link format, therefore it is not possible to click, i.e. in an IDE, on the errors/warnings and jump to the position in the file.

The settings parameter lets you decide in witch format do you want to have it.
If it is enabled then the output will look like:
[Error/Warning] [absolute\path\to\file.ext]:[line]:[column]: [msg]

with this format nearly every common known IDE can deal with this link and lets you jump to the file
2018-03-05 15:44:49 +01:00
paul-szczepanek-arm 8347e76bf4 Merge https://github.com/ARMmbed/mbed-os 2018-03-01 18:11:41 +00:00
Anna Bridge 8f5b857747
Merge pull request #5950 from theotherjimmy/header-config
Reserve and Render header in managed BL mode
2018-03-01 16:25:18 +00:00
Jimmy Brisson c29207a4f4 Correct gcc m33 floating point handling 2018-03-01 09:40:47 -06:00
Anna Bridge ae788f7384
Merge pull request #5993 from theotherjimmy/fix-vector-pref-clif
Work around Arm Compiler 6 stdvector perfomance cliff
2018-03-01 10:23:03 +00:00
Jimmy Brisson 0f15633d37 Work around Arm Compiler 6 stdvector perfomance cliff 2018-02-28 14:46:03 -06:00
Jimmy Brisson 477b947b22 Improve json schema validation errors 2018-02-28 14:39:28 -06:00
Jimmy Brisson 262c737c76 Specify --build in mbed export: consistency with compile 2018-02-28 14:31:42 -06:00
Jimmy Brisson 9252b98050 Correct mbed export with multiple --source params 2018-02-28 14:31:35 -06:00
daid 62599a97f7 Add support for STEVAL-3DP001V1 board, which has an STM32F401VE chip. This support is based on the NUCLEO-F401RE board. Which has the same amount of flash/ram but less pins available on the chip. 2018-02-28 09:37:39 +01:00
Cruz Monrreal 8b6a7aacc5
Merge pull request #6229 from hug-dev/fix-elf-output-extension
Fix a bug using ELF as output extension
2018-02-27 16:32:40 -06:00
Cruz Monrreal 5077644e6b
Merge pull request #6218 from geky/g-fix-travis-python-versions-2
Travis: Tear out python3 testing to get CI working again
2018-02-27 16:18:43 -06:00
Christopher Haster 24bb556127 tools: Removed outdated (and broken) toolchain initialization test
Also moved the access of build_dir into condition on secure in ARMC6

per theotherjimmy
2018-02-27 09:39:00 -06:00
Vincent Coubard e568aa47ba Merge branch 'master' of https://github.com/ARMmbed/mbed-os into pr-sm 2018-02-27 14:33:35 +00:00
Hugues de Valon b0027c1e81 Fix a bug using ELF as output extension
When overriding the OUTPUT_EXT variable in compilation configuration,
bugs appear:

* The bin variable is not None as the 'elf' string is not interned.
* When that is fixed, the function returns None instead of returning the
path of the ELF file.

Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
2018-02-27 14:08:02 +00:00
Cruz Monrreal 56e8c895b6
Merge pull request #6191 from theotherjimmy/simplify-json-to-dict
Simplify json-to-dict utility
2018-02-27 00:35:05 -06:00
Christopher Haster 5a108166f0 tools: Fixed small unicode issue in config tests 2018-02-26 17:08:02 -06:00
Cruz Monrreal daf29dc9f2
Merge pull request #6153 from theotherjimmy/correct-export-clean
Correct exporter clean behavior
2018-02-26 14:38:45 -06:00
Cruz Monrreal d49862bcfa
Merge pull request #6197 from geky/revert-pretty-bars
Revert "Added pretty bar printing for compile output"
2018-02-26 14:35:49 -06:00
Jimmy Brisson 7b49edc7eb Simplify json-to-dict utility 2018-02-23 09:38:16 -06:00
paul-szczepanek-arm c8f77259ed Merge https://github.com/ARMmbed/mbed-os 2018-02-23 10:11:49 +00:00
Christopher Haster 011e018f52 Revert "Added pretty bar printing for compile output"
This reverts commit 471d99c68f.
2018-02-22 22:07:22 -06:00
Cruz Monrreal bf2f24fab7
Merge pull request #6147 from codeauroraforum/Increase_Speed_LPC54628
LPC546XX: Add support for 220MHz core speed available on LPC54628
2018-02-22 20:57:35 -06:00
Jimmy Brisson ed7793de65 Add clean methods to many more exporters 2018-02-22 14:46:21 -06:00
Cruz Monrreal d9cb00d627
Merge pull request #6145 from theotherjimmy/exclude-file-gnuarmeclipse
Correct single file excludes for some exporters
2018-02-22 14:33:20 -06:00
Mahesh Mahadevan a9cd4705d8 LPC546XX: Add support for 220MHz core speed available on LPC54628
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-02-22 07:30:19 -06:00
Christopher Haster 0bc386a7c4 tools: Let unicode error messages through
Some toolchains (GCC) may emit error messages with unicode symbols based on
the your localization settings. Instead of being passed to the user as is,
the unicode causes an exception.
2018-02-21 14:07:28 -06:00
Jimmy Brisson bd5b34f59c Correct exporter clean behavior 2018-02-21 09:28:24 -06:00
Jimmy Brisson 6693b08cfc Use print function in project.py 2018-02-21 09:25:59 -06:00
Brendan McDonnell c4f10aafee typos 2018-02-20 20:11:19 -05:00
Jimmy Brisson 166a463639 Correct single file excludes for some exporters 2018-02-20 12:09:11 -06:00
Jimmy Brisson 9f99330be6 Allow overriding offsets with "app_offset" and "header_offset" 2018-02-20 11:45:32 -06:00
Jimmy Brisson deca33ff81 Calculate digests with header up to their start address 2018-02-20 11:45:32 -06:00
Jimmy Brisson 5b2d7a27d2 Require endianness specification for ints > 8 bits 2018-02-20 11:45:32 -06:00
Jimmy Brisson 4c47f21cac Fill header in application 2018-02-20 11:45:32 -06:00
Jimmy Brisson b2c71c0fce Accept header configuration and reserve space 2018-02-20 11:45:32 -06:00
Cruz Monrreal 45d04bcd51
Merge pull request #6123 from theotherjimmy/correct-sector-info
Correct sector scraping in arm-pack-manager
2018-02-20 11:33:27 -06:00
Cruz Monrreal 863b40d19c
Merge pull request #6121 from theotherjimmy/mbedignore-append
Avoid blowing away .mbedignore files in exporters
2018-02-20 10:48:21 -06:00
paul-szczepanek-arm dd7bc50e4b Merge branch 'master' into palsm 2018-02-19 16:39:10 +00:00
Martin Kojtal 636ced8ed0
Merge pull request #5915 from DBS06/gcc_msg_parsing
Simplify and Improve error/warning parser for gcc_arm
2018-02-19 17:34:43 +01:00
Jimmy Brisson 8d7311d38d Avoid blowing away .mbedignore files in exporters 2018-02-16 14:45:55 -06:00
Jimmy Brisson 4045c63f2a Correct sector scraping in arm-pack-manager 2018-02-16 13:55:01 -06:00
Cruz Monrreal 4145cc0cf0
Merge pull request #6029 from deepikabhavnani/update_context_switch_files
RTX5: Pre-processor defines used for assembly
2018-02-16 10:15:03 -06:00
Cruz Monrreal f95730f207
Merge pull request #6099 from janjongboom/patch-1
gnuarmeclipse exporter uses mBed instead of proper casing
2018-02-15 17:06:40 -06:00
Cruz Monrreal df4ceee4e1
Merge pull request #6096 from deepikabhavnani/secure_lib_creation
Generate/Link secure object file
2018-02-15 11:27:19 -06:00
Cruz Monrreal 28ac288698
Merge pull request #6000 from daid/patch-1
Prevent detect_targets.py tool script from crashing on known targets
2018-02-15 10:57:15 -06:00
Jan Jongboom ecc07c3217
gnuarmeclipse exporter uses mBed instead of proper casing 2018-02-15 12:24:01 +08:00
Cruz Monrreal b48df25c9d
Merge pull request #5666 from mharringADI/feature-cces-exporter
Add exporter for Analog Devices' CrossCore Embedded Studio
2018-02-14 14:00:36 -06:00
deepikabhavnani b21e93ba32 Generate/Link secure object file
Cortex v8 architecture based devices support secure/non-secure builds.
Secure build should generate the object file/library from elf during link
process which is used by non-secure binary during linking.

--out-implib=file specifies output library in which symbols are exported
--cmse-implib requests libraries mentioned above are secure gateway
libraries

Creation of secure library is done as part of linking process in GCC/ARMC6/IAR
Non-Secure project should add this secure object file as part of the
linking process.
Secure library is named as cmse_lib.o.
2018-02-14 12:48:33 -06:00
Mike Harrington 8c87c2692c Updated README.md to include instructions for different operating systems. Reduced duplicate code. 2018-02-13 14:56:54 -05:00
Tero Jääskö faabde13a1 tools: build: fix handing of "--stats-depth"
The introduction of pretty-bar had broken the handling of
"mbed compile"'s "--stats-depth" argument. No matter what one gave
as parameter to it, the result output is just using the default 2.
Fix the logic in build_api.
2018-02-13 15:35:01 +02:00
deepikabhavnani 1825ec6e92 Added SHA record for context switch assembly files 2018-02-12 11:54:55 -06:00
Senthil Ramakrishnan 3340a020ed Fix code style issues and update documentation 2018-02-12 11:50:34 -06:00
Senthil Ramakrishnan 8967b52bfb crash_log_parser review comment fixes 2018-02-12 11:50:33 -06:00
Senthil Ramakrishnan 96d900c99f Fixes for targets with invalid HardFault_Handler implementation and review/other fixes 2018-02-12 11:50:33 -06:00
Senthil Ramakrishnan 29348d823d Support for generating core/register/thread-info dump on fault exceptions 2018-02-12 11:50:33 -06:00
Mike Harrington d93bdafbf1 Resolved pylint errors and made changes based on feedback. Added README describing how to use headless tools after exporting. 2018-02-09 14:48:06 -05:00
Mike Harrington 60b22dba19 Added exporter for Analog Devices' CrossCore Embedded Studio 2018-02-09 14:48:05 -05:00
deepikabhavnani 4076788d51 Non Secure flag is required for pre-processing of linker file 2018-02-07 22:48:47 -06:00
Cruz Monrreal 02eeb7af41
Merge pull request #6030 from deepikabhavnani/correct_arch
M33: -march not required if -mcpu is set
2018-02-07 20:07:11 -06:00
Cruz Monrreal 1c5c1c79d0
Merge pull request #6027 from ithinuel/fix-target-names-for-murata-abz-and-adv-wise-1510
rename MURATA type ABZ & WISE 1510 to their expected name
2018-02-07 20:06:50 -06:00
Cruz Monrreal e9fddb6eee
Merge pull request #6017 from theotherjimmy/bl-nonzero-rom
Correct auto-sizing last region of bl
2018-02-07 15:56:43 -06:00
Cruz Monrreal c679dee286
Merge pull request #5848 from theotherjimmy/compile-py3
Python2+3: mbed compile, mbed test --compile,  python unit tests
2018-02-07 15:48:18 -06:00
Cruz Monrreal ebb39244f4
Merge pull request #6001 from ubirch/mbed-os-5985
Corrects intermittent CLion exporter issue with cmake build directory
2018-02-07 14:56:18 -06:00
Cruz Monrreal 671cf409c8
Merge pull request #6007 from theotherjimmy/bl-heed-outputext
Take OUTPUT_EXT into account in managed bl
2018-02-07 14:51:11 -06:00
Cruz Monrreal 779ee843ea
Merge pull request #5797 from hosse005/master
ARMC5+6: Specify CPU for ARM scatter file preprocessor
2018-02-07 14:50:44 -06:00
deepikabhavnani c50518e11c -march not required if -mcpu is set
GCC_ARM throws warning if both architecture and core are set (though
correct). If CPU option is set correctly, architecture is set by compiler
itself.
2018-02-06 22:46:04 -06:00
Wilfried Chauveau 6c9fcf3dd8 rename MURATA type ABZ & WISE_1510 to their expected name 2018-02-06 21:23:37 +00:00
Jimmy Brisson 9c3b489bf6 Correct auto-sizing last region in bl 2018-02-05 14:00:12 -06:00
Jimmy Brisson c52d1edd3e Test for region list sanity (sizes all >= 0) 2018-02-05 13:58:37 -06:00
Jimmy Brisson 2d50a90b59 Python2+3: flash_algo 2018-02-05 11:13:40 -06:00
Jimmy Brisson 95c7d4d47c Compare to unicode in example builder 2018-02-05 11:07:37 -06:00
Jimmy Brisson db4c380b2b Python2+3: build_travis.py and Travis tests 2018-02-05 11:07:37 -06:00
Jimmy Brisson 424ad856a9 Python2+3: make.py -n 2018-02-05 11:07:37 -06:00
Jimmy Brisson 1dd39fbe80 Python2+3: mbed test --compile 2018-02-05 11:07:37 -06:00
Jimmy Brisson c93a2bfa4c Python2+3: Use absolute import where possible 2018-02-05 11:07:37 -06:00
Jimmy Brisson 4322bee175 Python2+3: tests passing 2018-02-05 11:04:36 -06:00
Jimmy Brisson cca4425af6 Python2+3: iteritems -> items 2018-02-05 11:04:36 -06:00
Jimmy Brisson 45bdd98a85 Python2+3: tests import correctly 2018-02-05 11:04:36 -06:00
Jimmy Brisson 7abeec9744 Python2+3: clean argparse 2018-02-05 11:04:35 -06:00
Jimmy Brisson 10a91216f5 Python2+3: The rest of mbed compile 2018-02-05 11:04:01 -06:00
Jimmy Brisson 380ecb1b0e Python2+3: working through many has_attr exceptions 2018-02-05 11:04:01 -06:00
Jimmy Brisson 68737f2762 Python2+3: Things import 2018-02-05 11:03:44 -06:00
Cruz Monrreal 964e6e74fb
Merge pull request #5826 from codeauroraforum/Add_iMXRT_Support
NXP: Add support for MIMXRT1050_EVK
2018-02-05 10:15:17 -06:00
Jimmy Brisson c09142e82c Don't bother padding hex files for managed bl 2018-02-02 15:44:32 -06:00
Jimmy Brisson 4f13e21aa0 Use OUTPUT_EXT in managed boot loader 2018-02-02 15:40:44 -06:00
Jimmy Brisson 9b8ba4dd98 Use relative path to scatter for include path 2018-02-02 11:53:51 -06:00
Matthias L. Jugel e321e98faa fix #5985 CLion exporter results in cmake build directory, causes compiler to fail in unexpect... 2018-02-02 09:51:14 +01:00
daid e7839f1cb6
Prevent detect_targets.py tool script from crashing on known targets
As mut['mcu'] can be "None" on unknown targets, the detect_targets script crashes when one of these boards is connected.

This happens when "mbed-cli detect -vv" is ran when a STEVAL-3DP001V1 board is connected. Which does not provide a html file with a target_id, and thus cannot be looked up in the mbedls platform database.
http://www.st.com/en/evaluation-tools/steval-3dp001v1.html
2018-02-02 09:11:24 +01:00
Jimmy Brisson fad2ee55e1 Restrict target_overries usage 2018-02-01 17:09:17 -06:00
Cruz Monrreal 860b66a722
Merge pull request #5022 from scartmell-arm/mbed-config-json-schema
Add JSON schema based validation to mbed config script
2018-02-01 16:01:51 -06:00
Cruz Monrreal ce9f63fde7
Merge pull request #5964 from amq/vscode-launch
VS Code exporter: do not overwrite existing (launch|settings|tasks).json
2018-02-01 13:27:27 -06:00
Steven Cartmell b1ea3881be Fix test errors produced by JSON schema after rebase
- Modified the expected error code in some of the test cases. The error
  message is now issued by the JSON validator.

- Stop validation code being called if no application configuration is
  given to validate.

- Change test mock code to check for specific calls, instead of number of
  calls.

- Derive absolute paths for JSON schema files before loading them, which
  seems to work better with the URI path resolution of the schema parser.
2018-02-01 17:18:41 +00:00
Steven Cartmell 7010010ffc Remove placeholder $id from JSON schema and fix description 2018-02-01 17:18:41 +00:00
Steven Cartmell 151f2fa3a6 Refactor common JSON schema definitions into a seperate file
- Moved all common definitions from schema_app and schema_lib into a
  separate definitions file.

- Changed the calling code to resolve multiple schema files correctly.
2018-02-01 17:18:40 +00:00
Steven Cartmell 3ff7de9771 Remove config_path setting and amend regex in mbed config JSON schema
- Removed the config_path setting from schema and moved the addition of the
config_path value after the validation is done.

- Altered the macro validation regex to be more lenient. Now verifies that
  if '=' is used in the macro definition that something comes after it.
2018-02-01 17:18:40 +00:00