EXAMPLES: update examples.json file

- remove "mbed" and "test-repo-source" key
 - add "sub-repo-example" key as an indicator if an example has sub examples
 - add "subs" key to sotre sub examples names
pull/11710/head
Qinghao Shi 2019-10-16 17:20:05 +01:00
parent f317753a1d
commit 2f6f066f07
1 changed files with 70 additions and 82 deletions

View File

@ -3,10 +3,8 @@
{ {
"name": "mbed-os-example-blinky", "name": "mbed-os-example-blinky",
"github": "https://github.com/ARMmbed/mbed-os-example-blinky", "github": "https://github.com/ARMmbed/mbed-os-example-blinky",
"mbed": [ "sub-repo-example": false,
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-blinky" "subs": [],
],
"test-repo-source": "github",
"features" : [], "features" : [],
"targets" : [], "targets" : [],
"toolchains" : [], "toolchains" : [],
@ -21,10 +19,8 @@
{ {
"name": "mbed-os-example-blinky-baremetal", "name": "mbed-os-example-blinky-baremetal",
"github": "https://github.com/ARMmbed/mbed-os-example-blinky-baremetal", "github": "https://github.com/ARMmbed/mbed-os-example-blinky-baremetal",
"mbed": [ "sub-repo-example": false,
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-blinky-baremetal" "subs": [],
],
"test-repo-source": "github",
"features" : [], "features" : [],
"targets" : ["K66F", "NUCLEO_F429ZI", "ARCH_PRO", "LPC1768"], "targets" : ["K66F", "NUCLEO_F429ZI", "ARCH_PRO", "LPC1768"],
"toolchains" : [], "toolchains" : [],
@ -37,13 +33,13 @@
{ {
"name": "mbed-os-example-tls", "name": "mbed-os-example-tls",
"github": "https://github.com/ARMmbed/mbed-os-example-tls", "github": "https://github.com/ARMmbed/mbed-os-example-tls",
"mbed": [ "sub-repo-example": true,
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-tls-benchmark", "subs": [
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-tls-tls-client", "benchmark",
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-tls-hashing", "tls-client",
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-tls-authcrypt" "hashing",
"authcrypt"
], ],
"test-repo-source": "mbed",
"features" : [], "features" : [],
"targets" : ["K66F", "NUCLEO_F429ZI"], "targets" : ["K66F", "NUCLEO_F429ZI"],
"toolchains" : ["GCC_ARM", "ARM"], "toolchains" : ["GCC_ARM", "ARM"],
@ -63,17 +59,17 @@
{ {
"name": "mbed-os-example-ble", "name": "mbed-os-example-ble",
"github":"https://github.com/ARMmbed/mbed-os-example-ble", "github":"https://github.com/ARMmbed/mbed-os-example-ble",
"mbed": [ "sub-repo-example": true,
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-ble-Beacon", "subs": [
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-ble-HeartRate", "BLE_Beacon",
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-ble-Thermometer", "BLE_HeartRate",
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-ble-LEDBlinker", "BLE_Thermometer",
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-ble-LED", "BLE_LEDBlinker",
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-ble-GAPButton", "BLE_LED",
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-ble-Button", "BLE_GAPButton",
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-ble-BatteryLevel" "BLE_Button",
"BLE_BatteryLevel"
], ],
"test-repo-source": "mbed",
"features" : ["BLE"], "features" : ["BLE"],
"targets" : ["NRF51_DK", "NRF52_DK", "K66F", "NUCLEO_F401RE"], "targets" : ["NRF51_DK", "NRF52_DK", "K66F", "NUCLEO_F401RE"],
"toolchains" : [], "toolchains" : [],
@ -86,9 +82,8 @@
{ {
"name": "mbed-os-example-sockets", "name": "mbed-os-example-sockets",
"github":"https://github.com/ARMmbed/mbed-os-example-sockets", "github":"https://github.com/ARMmbed/mbed-os-example-sockets",
"mbed": [ "sub-repo-example": false,
], "subs": [],
"test-repo-source": "github",
"features" : [], "features" : [],
"targets" : ["K66F", "NUCLEO_F429ZI", "NUMAKER_PFM_NUC472", "FVP_MPS2_M3"], "targets" : ["K66F", "NUCLEO_F429ZI", "NUMAKER_PFM_NUC472", "FVP_MPS2_M3"],
"toolchains" : [], "toolchains" : [],
@ -103,9 +98,8 @@
{ {
"name": "mbed-os-example-tls-socket", "name": "mbed-os-example-tls-socket",
"github":"https://github.com/ARMmbed/mbed-os-example-tls-socket", "github":"https://github.com/ARMmbed/mbed-os-example-tls-socket",
"mbed": [ "sub-repo-example": false,
], "subs": [],
"test-repo-source": "github",
"features" : [], "features" : [],
"targets" : ["K64F", "DISCO_F746NG"], "targets" : ["K64F", "DISCO_F746NG"],
"toolchains" : [], "toolchains" : [],
@ -120,9 +114,8 @@
{ {
"name": "mbed-os-example-wifi", "name": "mbed-os-example-wifi",
"github":"https://github.com/ARMmbed/mbed-os-example-wifi", "github":"https://github.com/ARMmbed/mbed-os-example-wifi",
"mbed": [ "sub-repo-example": false,
], "subs": [],
"test-repo-source": "github",
"features" : [], "features" : [],
"targets" : [], "targets" : [],
"toolchains" : [], "toolchains" : [],
@ -135,8 +128,8 @@
{ {
"name": "nanostack-border-router", "name": "nanostack-border-router",
"github":"https://github.com/ARMmbed/nanostack-border-router", "github":"https://github.com/ARMmbed/nanostack-border-router",
"mbed": [], "sub-repo-example": false,
"test-repo-source": "github", "subs": [],
"features" : [], "features" : [],
"targets" : ["K66F", "NUCLEO_F429ZI"], "targets" : ["K66F", "NUCLEO_F429ZI"],
"toolchains" : [], "toolchains" : [],
@ -149,8 +142,8 @@
{ {
"name": "mbed-os-example-cellular", "name": "mbed-os-example-cellular",
"github":"https://github.com/ARMmbed/mbed-os-example-cellular", "github":"https://github.com/ARMmbed/mbed-os-example-cellular",
"mbed": [], "sub-repo-example": false,
"test-repo-source": "github", "subs": [],
"features" : [], "features" : [],
"targets" : ["MTS_DRAGONFLY_F411RE"], "targets" : ["MTS_DRAGONFLY_F411RE"],
"toolchains" : [], "toolchains" : [],
@ -163,8 +156,8 @@
{ {
"name": "mbed-os-example-lorawan", "name": "mbed-os-example-lorawan",
"github":"https://github.com/ARMmbed/mbed-os-example-lorawan", "github":"https://github.com/ARMmbed/mbed-os-example-lorawan",
"mbed": [], "sub-repo-example": false,
"test-repo-source": "github", "subs": [],
"features" : [], "features" : [],
"targets" : ["DISCO_L072CZ_LRWAN1", "MTB_MTS_XDOT", "MTS_MDOT_F411RE"], "targets" : ["DISCO_L072CZ_LRWAN1", "MTB_MTS_XDOT", "MTS_MDOT_F411RE"],
"toolchains" : [], "toolchains" : [],
@ -177,8 +170,8 @@
{ {
"name": "mbed-os-example-nvstore", "name": "mbed-os-example-nvstore",
"github":"https://github.com/ARMmbed/mbed-os-example-nvstore", "github":"https://github.com/ARMmbed/mbed-os-example-nvstore",
"mbed": [], "sub-repo-example": false,
"test-repo-source": "github", "subs": [],
"features" : [], "features" : [],
"targets" : ["K66F", "FVP_MPS2_M3"], "targets" : ["K66F", "FVP_MPS2_M3"],
"toolchains" : [], "toolchains" : [],
@ -193,8 +186,8 @@
{ {
"name": "mbed-os-example-devicekey", "name": "mbed-os-example-devicekey",
"github":"https://github.com/ARMmbed/mbed-os-example-devicekey", "github":"https://github.com/ARMmbed/mbed-os-example-devicekey",
"mbed": [], "sub-repo-example": false,
"test-repo-source": "github", "subs": [],
"features" : [], "features" : [],
"targets" : ["K66F"], "targets" : ["K66F"],
"toolchains" : [], "toolchains" : [],
@ -209,8 +202,8 @@
{ {
"name": "mbed-os-example-thread-statistics", "name": "mbed-os-example-thread-statistics",
"github":"https://github.com/ARMmbed/mbed-os-example-thread-statistics", "github":"https://github.com/ARMmbed/mbed-os-example-thread-statistics",
"mbed": [], "sub-repo-example": false,
"test-repo-source": "github", "subs": [],
"features" : [], "features" : [],
"targets" : ["K66F", "FVP_MPS2_M3"], "targets" : ["K66F", "FVP_MPS2_M3"],
"toolchains" : [], "toolchains" : [],
@ -225,8 +218,8 @@
{ {
"name": "mbed-os-example-sys-info", "name": "mbed-os-example-sys-info",
"github":"https://github.com/ARMmbed/mbed-os-example-sys-info", "github":"https://github.com/ARMmbed/mbed-os-example-sys-info",
"mbed": [], "sub-repo-example": false,
"test-repo-source": "github", "subs": [],
"features" : [], "features" : [],
"targets" : ["K64F", "FVP_MPS2_M3"], "targets" : ["K64F", "FVP_MPS2_M3"],
"toolchains" : [], "toolchains" : [],
@ -241,8 +234,8 @@
{ {
"name": "mbed-os-example-cpu-usage", "name": "mbed-os-example-cpu-usage",
"github":"https://github.com/ARMmbed/mbed-os-example-cpu-usage", "github":"https://github.com/ARMmbed/mbed-os-example-cpu-usage",
"mbed": [], "sub-repo-example": false,
"test-repo-source": "github", "subs": [],
"features" : [], "features" : [],
"targets" : ["K66F", "FVP_MPS2_M3"], "targets" : ["K66F", "FVP_MPS2_M3"],
"toolchains" : [], "toolchains" : [],
@ -257,8 +250,8 @@
{ {
"name": "mbed-os-example-cpu-stats", "name": "mbed-os-example-cpu-stats",
"github":"https://github.com/ARMmbed/mbed-os-example-cpu-stats", "github":"https://github.com/ARMmbed/mbed-os-example-cpu-stats",
"mbed": [], "sub-repo-example": false,
"test-repo-source": "github", "subs": [],
"features" : [], "features" : [],
"targets" : ["K64F", "FVP_MPS2_M3"], "targets" : ["K64F", "FVP_MPS2_M3"],
"toolchains" : [], "toolchains" : [],
@ -273,8 +266,8 @@
{ {
"name": "mbed-os-example-socket-stats", "name": "mbed-os-example-socket-stats",
"github":"https://github.com/ARMmbed/mbed-os-example-socket-stats", "github":"https://github.com/ARMmbed/mbed-os-example-socket-stats",
"mbed": [], "sub-repo-example": false,
"test-repo-source": "github", "subs": [],
"features" : [], "features" : [],
"targets" : ["K66F"], "targets" : ["K66F"],
"toolchains" : [], "toolchains" : [],
@ -289,8 +282,8 @@
{ {
"name": "mbed-os-example-error-handling", "name": "mbed-os-example-error-handling",
"github":"https://github.com/ARMmbed/mbed-os-example-error-handling", "github":"https://github.com/ARMmbed/mbed-os-example-error-handling",
"mbed": [], "sub-repo-example": false,
"test-repo-source": "github", "subs": [],
"features" : [], "features" : [],
"targets" : ["K64F", "FVP_MPS2_M3"], "targets" : ["K64F", "FVP_MPS2_M3"],
"toolchains" : [], "toolchains" : [],
@ -305,10 +298,8 @@
{ {
"name": "mbed-os-example-filesystem", "name": "mbed-os-example-filesystem",
"github":"https://github.com/ARMmbed/mbed-os-example-filesystem", "github":"https://github.com/ARMmbed/mbed-os-example-filesystem",
"mbed": [ "sub-repo-example": false,
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-filesystem" "subs": [],
],
"test-repo-source": "github",
"features" : [], "features" : [],
"targets" : ["K64F","K82F"], "targets" : ["K64F","K82F"],
"toolchains" : [], "toolchains" : [],
@ -323,10 +314,8 @@
{ {
"name": "mbed-os-example-mesh-minimal", "name": "mbed-os-example-mesh-minimal",
"github":"https://github.com/ARMmbed/mbed-os-example-mesh-minimal", "github":"https://github.com/ARMmbed/mbed-os-example-mesh-minimal",
"mbed": [ "sub-repo-example": false,
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-mesh-minimal" "subs": [],
],
"test-repo-source": "github",
"features" : [], "features" : [],
"targets" : ["DISCO_F469NI", "DISCO_F746NG", "K66F", "targets" : ["DISCO_F469NI", "DISCO_F746NG", "K66F",
"NUCLEO_F429ZI", "NUCLEO_F439ZI", "NUCLEO_F746ZG", "NUCLEO_F429ZI", "NUCLEO_F439ZI", "NUCLEO_F746ZG",
@ -342,10 +331,8 @@
{ {
"name": "mbed-os-example-bootloader", "name": "mbed-os-example-bootloader",
"github":"https://github.com/ARMmbed/mbed-os-example-bootloader", "github":"https://github.com/ARMmbed/mbed-os-example-bootloader",
"mbed": [ "sub-repo-example": false,
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-bootloader" "subs": [],
],
"test-repo-source": "github",
"features" : [], "features" : [],
"targets" : ["K64F", "NUCLEO_F429ZI", "UBLOX_EVK_ODIN_W2"], "targets" : ["K64F", "NUCLEO_F429ZI", "UBLOX_EVK_ODIN_W2"],
"toolchains" : [], "toolchains" : [],
@ -358,8 +345,8 @@
{ {
"name": "mbed-os-example-mbed-crypto", "name": "mbed-os-example-mbed-crypto",
"github":"https://github.com/ARMmbed/mbed-os-example-mbed-crypto", "github":"https://github.com/ARMmbed/mbed-os-example-mbed-crypto",
"mbed": [], "sub-repo-example": true,
"test-repo-source": "github", "subs": ["getting-started"],
"features" : [], "features" : [],
"targets" : ["K64F"], "targets" : ["K64F"],
"toolchains" : [], "toolchains" : [],
@ -374,10 +361,11 @@
{ {
"name": "mbed-os-example-nfc", "name": "mbed-os-example-nfc",
"github": "https://github.com/ARMmbed/mbed-os-example-nfc", "github": "https://github.com/ARMmbed/mbed-os-example-nfc",
"mbed": [ "sub-repo-example": true,
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-nfc-SmartPoster" "subs": [
"NFC_EEPROM",
"NFC_SmartPoster"
], ],
"test-repo-source": "mbed",
"features" : [], "features" : [],
"targets" : ["NUCLEO_F401RE", "DISCO_L475VG_IOT01A"], "targets" : ["NUCLEO_F401RE", "DISCO_L475VG_IOT01A"],
"toolchains" : [], "toolchains" : [],
@ -390,8 +378,8 @@
{ {
"name": "mbed-os-example-blockdevice", "name": "mbed-os-example-blockdevice",
"github":"https://github.com/armmbed/mbed-os-example-blockdevice", "github":"https://github.com/armmbed/mbed-os-example-blockdevice",
"mbed": [], "sub-repo-example": false,
"test-repo-source": "github", "subs": [],
"features" : [], "features" : [],
"targets" : ["K64F"], "targets" : ["K64F"],
"toolchains" : [], "toolchains" : [],
@ -406,8 +394,8 @@
{ {
"name": "mbed-os-example-kvstore", "name": "mbed-os-example-kvstore",
"github":"https://github.com/ARMmbed/mbed-os-example-kvstore", "github":"https://github.com/ARMmbed/mbed-os-example-kvstore",
"mbed": [], "sub-repo-example": false,
"test-repo-source": "github", "subs": [],
"features" : [], "features" : [],
"targets" : ["K64F", "FVP_MPS2_M3"], "targets" : ["K64F", "FVP_MPS2_M3"],
"toolchains" : [], "toolchains" : [],
@ -422,8 +410,8 @@
{ {
"name": "mbed-os-example-crash-reporting", "name": "mbed-os-example-crash-reporting",
"github":"https://github.com/ARMmbed/mbed-os-example-crash-reporting", "github":"https://github.com/ARMmbed/mbed-os-example-crash-reporting",
"mbed": [], "sub-repo-example": false,
"test-repo-source": "github", "subs": [],
"features" : [], "features" : [],
"targets" : ["K64F", "DISCO_L475VG_IOT01A"], "targets" : ["K64F", "DISCO_L475VG_IOT01A"],
"toolchains" : [], "toolchains" : [],
@ -438,8 +426,8 @@
{ {
"name": "mbed-os-example-sd-driver", "name": "mbed-os-example-sd-driver",
"github":"https://github.com/ARMmbed/mbed-os-example-sd-driver", "github":"https://github.com/ARMmbed/mbed-os-example-sd-driver",
"mbed": [], "sub-repo-example": false,
"test-repo-source": "github", "subs": [],
"features" : [], "features" : [],
"targets" : ["K64F"], "targets" : ["K64F"],
"toolchains" : [], "toolchains" : [],
@ -454,8 +442,8 @@
{ {
"name": "mbed-os-example-attestation", "name": "mbed-os-example-attestation",
"github": "https://github.com/ARMmbed/mbed-os-example-attestation", "github": "https://github.com/ARMmbed/mbed-os-example-attestation",
"mbed": [], "sub-repo-example": false,
"test-repo-source": "github", "subs": [],
"features" : [], "features" : [],
"targets" : ["CY8CKIT_062_WIFI_BT_PSA", "targets" : ["CY8CKIT_062_WIFI_BT_PSA",
"K64F", "K64F",