Created
January 31, 2020 18:44
-
-
Save mbolivar/614e9bb41c399a2b7a80616ddd5c7e9d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir -p template-module/zephyr | |
$ touch template-module/zephyr/{CMakeLists.txt,Kconfig} | |
$ cat zephyr/samples/hello_world/CMakeLists.txt | |
# SPDX-License-Identifier: Apache-2.0 | |
cmake_minimum_required(VERSION 3.13.1) | |
set(ZEPHYR_EXTRA_MODULES "/home/mbolivar/zp/template-module") | |
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) | |
project(hello_world) | |
target_sources(app PRIVATE src/main.c) | |
$ west build -b qemu_cortex_m3 -s zephyr/samples/hello_world/ >/dev/null | |
$ grep template build/zephyr_modules.txt | |
"template-module":"/home/mbolivar/zp/template-module/zephyr" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment