1# SPDX-License-Identifier: Apache-2.0 2 3zephyr_library() 4zephyr_library_sources(pinmux.c) 5 6if(CONFIG_BOARD_MPS2_AN521_CPU1 AND NOT CONFIG_OPENAMP) 7 # Building a firmware image for CPU1: this requires a binary 8 # for CPU0, which will boot the device and wake up CPU1. 9 # However, if building with OPENAMP, there is no need to build 10 # any binary for CPU0, as this is built by the dual core sample. 11 set(CPU0_BINARY_DIR ${BOARD_DIR}/empty_cpu0-prefix/src/empty-cpu0-build/zephyr) 12 13 include(ExternalProject) 14 15 ExternalProject_Add( 16 empty_cpu0 17 SOURCE_DIR ${BOARD_DIR}/empty_cpu0 18 INSTALL_COMMAND "" 19 CMAKE_CACHE_ARGS -DBOARD:STRING=${BOARD}/an521/cpu0 20 BUILD_BYPRODUCTS "${CPU0_BINARY_DIR}/${KERNEL_BIN_NAME}" 21 BUILD_ALWAYS True 22 ) 23endif() 24