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