Skip to content

Commit 99570ee

Browse files
danieldegrassedleach02
authored andcommitted
zephyr: enable CONFIG_NXP_WIFI_BUILD_ONLY_MODE
Add support for CONFIG_NXP_WIFI_BUILD_ONLY_MODE, which enables the NXP WiFi driver to be built by CI without binary blobs Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 1710cc6 commit 99570ee

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

zephyr/src/rw61x/CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@ if(CONFIG_NXP_MONOLITHIC_WIFI OR CONFIG_NXP_MONOLITHIC_BT OR CONFIG_NXP_MONOLITH
3737
foreach(i RANGE ${count})
3838
list(GET signed_binary_blobs_list ${i} signed_binary_blob)
3939
if(EXISTS ${signed_binary_blob})
40-
set(binary_blob ${signed_binary_blob})
40+
list(APPEND binary_blobs_list ${signed_binary_blob})
41+
elseif(CONFIG_NXP_WIFI_BUILD_ONLY_MODE)
42+
message(WARNING "Couldn't find signed firmware ! ${signed_binary_blob}")
43+
list(APPEND binary_blobs_list "NOTFOUND")
4144
else()
4245
message(FATAL_ERROR "Couldn't find signed firmware ! ${signed_binary_blob}")
4346
endif()
4447

45-
list(APPEND binary_blobs_list ${binary_blob})
4648
endforeach()
4749

4850
list(LENGTH binary_blobs_list count)
@@ -51,6 +53,10 @@ if(CONFIG_NXP_MONOLITHIC_WIFI OR CONFIG_NXP_MONOLITHIC_BT OR CONFIG_NXP_MONOLITH
5153
list(GET binary_blobs_list ${i} binary_blob)
5254
list(GET output_includes_list ${i} output_include)
5355
message(STATUS " generate include of binary blob: ${binary_blob}")
54-
generate_inc_file_for_target(${ZEPHYR_CURRENT_LIBRARY} ${binary_blob} ${output_include})
56+
if(${binary_blob} STREQUAL "NOTFOUND")
57+
file(TOUCH ${output_include})
58+
else()
59+
generate_inc_file_for_target(${ZEPHYR_CURRENT_LIBRARY} ${binary_blob} ${output_include})
60+
endif()
5561
endforeach()
5662
endif()

0 commit comments

Comments
 (0)