Skip to content

Commit 26f851d

Browse files
committed
Revert "[nrf noup] cmake: automatically change board from xxx_ns to xxxx"
This reverts commit ce36b1d. Will be applied again after the upmerge. Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent 223f44d commit 26f851d

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

cmake/app/boilerplate.cmake

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -258,23 +258,7 @@ else() # NOT FIRST_BOILERPLATE_EXECUTION
258258

259259
# Have the child image select the same BOARD that was selected by
260260
# the parent.
261-
# Unless parent was "ns" in which case we assume that the child images are
262-
# all secure, and should be build using the secure version of the board.
263-
# It is assumed that only the root app will be built as non-secure.
264-
# This is not a valid assumption as there might be multiple non-secure
265-
# images defined. With this technique, it is not possible to have multiple
266-
# images defined as non-secure.
267-
# TODO: Allow multiple non-secure images by using Kconfig to set the
268-
# secure/non-secure property rather than using a separate board definition.
269-
if(${BOARD} STREQUAL nrf9160_pca10090ns)
270-
set(BOARD nrf9160_pca10090)
271-
message("Changed board to secure nrf9160_pca10090 (NOT NS)")
272-
endif()
273-
274-
if(${BOARD} STREQUAL nrf9160_pca20035ns)
275-
set(BOARD nrf9160_pca20035)
276-
message("Changed board to secure nrf9160_pca20035 (NOT NS)")
277-
endif()
261+
set(BOARD ${CACHED_BOARD})
278262

279263
unset(${IMAGE}DTC_OVERLAY_FILE)
280264
if(EXISTS ${APPLICATION_SOURCE_DIR}/${BOARD}.overlay)

0 commit comments

Comments
 (0)