mirror of
https://github.com/micropython/micropython.git
synced 2026-01-09 13:40:31 +01:00
zephyr: Use cmake find_package to locate zephyr.
Updates the zephyr port to use the ZEPHYR_BASE environment variable only to locate the zephyr cmake package, allowing cmake to cache the variable.
This commit is contained in:
committed by
Damien George
parent
b1651ff092
commit
1ae861819d
@@ -1,6 +1,6 @@
|
||||
cmake_minimum_required(VERSION 3.13.1)
|
||||
|
||||
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
||||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
project(NONE)
|
||||
|
||||
target_sources(app PRIVATE src/zephyr_start.c src/zephyr_getchar.c)
|
||||
|
||||
Reference in New Issue
Block a user