File tree Expand file tree Collapse file tree 7 files changed +14
-5
lines changed
samples/bluetooth/central_ht
scripts/pylib/build_helpers Expand file tree Collapse file tree 7 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 9
9
- nrf51dk/nrf51822
10
10
- nrf52dk/nrf52832
11
11
tags : bluetooth
12
+ sysbuild : true
12
13
integration_platforms :
13
14
- qemu_cortex_m3
14
15
sample.bluetooth.central_ht.nxp :
Original file line number Diff line number Diff line change
1
+ SB_CONFIG_HARNESS_APPS="samples/bluetooth/peripheral_ht"
Original file line number Diff line number Diff line change 40
40
build_dir:
41
41
required: true
42
42
type: str
43
+ app_type:
44
+ required: false
45
+ type: str
43
46
flash_order:
44
47
required: false
45
48
type: seq
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ set(domains_yaml "${domains_yaml}\ndomains:")
10
10
foreach (image ${IMAGES} )
11
11
set (domains_yaml "${domains_yaml} \n - name: ${image} " )
12
12
set (domains_yaml "${domains_yaml} \n build_dir: $<TARGET_PROPERTY:${image} ,_EP_BINARY_DIR>" )
13
+ set (domains_yaml "${domains_yaml} \n app_type: $<TARGET_PROPERTY:${image} ,APP_TYPE>" )
13
14
endforeach ()
14
15
set (domains_yaml "${domains_yaml} \n flash_order:" )
15
16
foreach (image ${IMAGES_FLASHING_ORDER} )
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ endfunction()
216
216
# and debugging.
217
217
#
218
218
function (ExternalZephyrProject_Add )
219
- set (app_types MAIN BOOTLOADER )
219
+ set (app_types MAIN BOOTLOADER HARNESS )
220
220
cmake_parse_arguments (ZBUILD "" "APPLICATION;BOARD;BOARD_REVISION;SOURCE_DIR;APP_TYPE;BUILD_ONLY" "" ${ARGN} )
221
221
222
222
if (ZBUILD_UNPARSED_ARGUMENTS )
@@ -387,6 +387,10 @@ function(ExternalZephyrProject_Add)
387
387
set (image_default "${CMAKE_SOURCE_DIR} /image_configurations/ALL_image_default.cmake" )
388
388
389
389
if (DEFINED ZBUILD_APP_TYPE )
390
+ # reuse image_configurations for HARNESS APPLICATION
391
+ if ("${ZBUILD_APP_TYPE} " STREQUAL "HARNESS" )
392
+ set (ZBUILD_APP_TYPE "MAIN" )
393
+ endif ()
390
394
list (APPEND image_default "${CMAKE_SOURCE_DIR} /image_configurations/${ZBUILD_APP_TYPE} _image_default.cmake" )
391
395
endif ()
392
396
Original file line number Diff line number Diff line change @@ -40,16 +40,15 @@ sysbuild_add_subdirectory(soc)
40
40
if (SB_CONFIG_HARNESS_APPS )
41
41
string (REPLACE "," ";" items "${SB_CONFIG_HARNESS_APPS} " )
42
42
message ("SB_CONFIG_HARNESS_APPS: ${SB_CONFIG_HARNESS_APPS} " )
43
- message ("items: ${items} " )
44
43
45
44
foreach (item IN LISTS items )
46
- message ("item: ${item} " )
45
+ message ("Adding Zephyr Project: ${item} as HARNESS " )
47
46
string (REPLACE "/" "_" app_name ${item} )
48
- message ("app_name: ${app_name} " )
49
47
ExternalZephyrProject_Add (
50
48
APPLICATION ${app_name}
51
49
SOURCE_DIR ${ZEPHYR_BASE} /${item}
52
50
BOARD ${BOARD}
51
+ APP_TYPE HARNESS
53
52
)
54
53
endforeach ()
55
54
endif ()
Original file line number Diff line number Diff line change @@ -8,4 +8,4 @@ rsource "bootloader/Kconfig"
8
8
config HARNESS_APPS
9
9
string "List of harness apps"
10
10
help
11
- List of harness apps to be built.
11
+ List of harness apps to be built.
You can’t perform that action at this time.
0 commit comments