Initial import of firmware and host projects
This commit is contained in:
20
sysbuild/CMakeLists.txt
Normal file
20
sysbuild/CMakeLists.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
# Copyright (c) 2026
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set(IP5306_LOCAL_MODULE "${APP_DIR}/modules/ip5306")
|
||||
set(IP5306_EXTERNAL_MODULE "E:/extra/modules/ip5306")
|
||||
set(extra_zephyr_modules "$CACHE{ZEPHYR_EXTRA_MODULES}")
|
||||
|
||||
if(EXISTS "${IP5306_LOCAL_MODULE}/zephyr/module.yml")
|
||||
list(APPEND extra_zephyr_modules "${IP5306_LOCAL_MODULE}")
|
||||
elseif(EXISTS "${IP5306_EXTERNAL_MODULE}/zephyr/module.yml")
|
||||
list(APPEND extra_zephyr_modules "${IP5306_EXTERNAL_MODULE}")
|
||||
endif()
|
||||
|
||||
list(REMOVE_DUPLICATES extra_zephyr_modules)
|
||||
set(ZEPHYR_EXTRA_MODULES "${extra_zephyr_modules}" CACHE STRING "Extra Zephyr modules" FORCE)
|
||||
|
||||
find_package(Sysbuild REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
|
||||
project(sysbuild LANGUAGES)
|
||||
Reference in New Issue
Block a user