Skip to content

Commit 7f9be54

Browse files
krish2718dleach02
authored andcommitted
Revert "drivers: nrfwifi: Fix rebuilding when FW blobs are changes"
This reverts commit e2e96ac. This will be properly fixes by adding a target for nRF70.bin and removing INCBIN approach. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 6ec8a53 commit 7f9be54

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

drivers/wifi/nrfwifi/CMakeLists.txt

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# SPDX-License-Identifier: Apache-2.0
55
#
66

7-
zephyr_library_named(nrfwifi)
7+
zephyr_library()
88

99
set(OS_AGNOSTIC_BASE ${ZEPHYR_HAL_NORDIC_MODULE_DIR}/drivers/nrf_wifi)
1010
set(FW_BINS_BASE ${ZEPHYR_HAL_NORDIC_MODULE_DIR}/zephyr/blobs/wifi_fw_bins)
@@ -169,22 +169,6 @@ else()
169169
zephyr_compile_definitions(
170170
-DCONFIG_NRF_WIFI_FW_BIN=${NRF70_PATCH}
171171
)
172-
173-
# Rebuild fw_load.c whenever the firmware binary changes
174-
# a bit crude way to do it, but it works
175-
add_custom_command(
176-
OUTPUT ${CMAKE_SOURCE_DIR}/src/fw_load.c
177-
COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_SOURCE_DIR}/src/fw_load.c
178-
DEPENDS ${NRF70_PATCH}
179-
COMMENT "Checking firmware blobs ${NRF70_PATCH}"
180-
)
181-
182-
add_custom_target(
183-
check_firmware_blobs ALL
184-
DEPENDS ${CMAKE_SOURCE_DIR}/src/fw_load.c
185-
)
186-
187-
add_dependencies(nrfwifi check_firmware_blobs)
188172
endif()
189173

190174

0 commit comments

Comments
 (0)