-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Zephyr project definitions for Libcaliptra.
This allows including Libcaliptra in a Zephyr project.
- Loading branch information
1 parent
c26d480
commit d06dd68
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Licensed under the Apache-2.0 license | ||
|
||
if (CONFIG_LIBCALIPTRA) | ||
|
||
zephyr_library() | ||
|
||
zephyr_library_include_directories(${ZEPHYR_CURRENT_MODULE_DIR}/inc) | ||
zephyr_library_include_directories(${ZEPHYR_CURRENT_MODULE_DIR}/src) | ||
|
||
# This is for caliptra_top_reg.h which has all of the register definitions for Caliptra. | ||
zephyr_library_include_directories(${ZEPHYR_CURRENT_MODULE_DIR}/../hw/latest/rtl/src/soc_ifc/rtl) | ||
|
||
zephyr_library_sources(${ZEPHYR_CURRENT_MODULE_DIR}/src/caliptra_api.c) | ||
|
||
endif() # CONFIG_LIBCALIPTRA |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Licensed under the Apache-2.0 license | ||
|
||
menuconfig LIBCALIPTRA | ||
bool "Enable Libcaliptra" | ||
help | ||
This is a library to help interface with Caliptra. | ||
|
||
if LIBCALIPTRA | ||
|
||
module = LIBCALIPTRA | ||
module-str = libcaliptra | ||
source "subsys/logging/Kconfig.template.log_config" | ||
|
||
endif # LIBCALIPTRA |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Zephyr Project Configuration | ||
|
||
This directory contains everything needed to include Libcaliptra as a library | ||
within a Zephyr project. | ||
|
||
It leaves the implementation for the functions in `caliptra_if.h` undefined. They | ||
will need to be defined external to this directory. | ||
|
||
The module is labeled `LIBCALIPTRA`. It can be added to your Zephyr project with | ||
`CONFIG_LIBCALIPTRA=y`. Be sure to add this directory to the list of | ||
`ZEPHYR_MODULES` in the build rules. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Licensed under the Apache-2.0 license | ||
|
||
build: | ||
cmake: zephyr | ||
kconfig: zephyr/Kconfig |