Skip to content

Commit 0a04022

Browse files
committed
wip
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent 2874a1d commit 0a04022

4 files changed

Lines changed: 63 additions & 4 deletions

File tree

CMakeLists.txt renamed to CMakeLists.txt.jinja

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,9 @@ zephyr_syscall_include_directories(include)
1111

1212
zephyr_include_directories(include)
1313

14+
{% if include_drivers %}
1415
add_subdirectory(drivers)
16+
{% endif %}
17+
{% if include_lib %}
1518
add_subdirectory(lib)
19+
{% endif %}

README.md renamed to README.md.jinja

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
<img alt="API Documentation" src="https://img.shields.io/badge/API-documentation-3D578C?logo=c&logoColor=white">
1414
</a>
1515

16-
This repository contains a Zephyr example application. The main purpose of this
17-
repository is to serve as a reference on how to structure Zephyr-based
18-
applications. Some of the features demonstrated in this example are:
16+
{{ project_description }}
1917

2018
- Basic [Zephyr application][app_dev] skeleton
2119
- [Zephyr workspace applications][workspace_app]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
cmake_minimum_required(VERSION 3.13.1)
88
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
99

10-
project(app LANGUAGES C)
10+
project({{ project_name }} LANGUAGES C)
1111

1212
target_sources(app PRIVATE src/main.c)

copier.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
_min_copier_version: "9.0.0"
2+
3+
4+
project_name:
5+
type: str
6+
help: What is the name of your project? (use a slug, e.g. my-app)
7+
default: my-zephyr-app
8+
9+
project_description:
10+
type: str
11+
help: Provide a short description of your project.
12+
default: A custom Zephyr application.
13+
14+
author_name:
15+
type: str
16+
help: Who is the author?
17+
default: Zephyr Developer
18+
19+
board:
20+
type: str
21+
help: Which board are you targeting?
22+
default: native_sim
23+
24+
include_ci:
25+
type: bool
26+
help: Do you want to include GitHub Actions CI?
27+
default: true
28+
29+
include_docs:
30+
type: bool
31+
help: Do you want to include documentation setup?
32+
default: true
33+
34+
include_drivers:
35+
type: bool
36+
help: Do you want to include example drivers?
37+
default: true
38+
39+
include_lib:
40+
type: bool
41+
help: Do you want to include example libraries?
42+
default: true
43+
44+
include_tests:
45+
type: bool
46+
help: Do you want to include example tests?
47+
default: true
48+
49+
_exclude:
50+
- "copier.yml"
51+
- ".git"
52+
- ".copier-answers.yml"
53+
- "{% if not include_ci %}.github{% endif %}"
54+
- "{% if not include_docs %}doc{% endif %}"
55+
- "{% if not include_drivers %}drivers{% endif %}"
56+
- "{% if not include_lib %}lib{% endif %}"
57+
- "{% if not include_tests %}tests{% endif %}"

0 commit comments

Comments
 (0)