Skip to content

Commit

Permalink
Zephyr manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
tannewt committed Jan 28, 2025
1 parent 9320b52 commit e895adb
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 15 deletions.
1 change: 1 addition & 0 deletions .github/actions/deps/ports/zephyr-cp/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ runs:
- name: Setup Zephyr project
uses: zephyrproject-rtos/action-zephyr-setup@v1
with:
app-path: ports/zephyr-cp/zephyr-config
toolchains: arm-zephyr-eabi
4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,3 @@
[submodule "ports/analog/msdk"]
path = ports/analog/msdk
url = https://github.com/analogdevicesinc/msdk.git
[submodule "lib/zephyr"]
path = ports/zephyr-cp/lib/zephyr
url = https://github.com/adafruit/zephyr.git
branch = circuitpython
2 changes: 2 additions & 0 deletions ports/zephyr-cp/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ bootloader
build
modules
tools
zephyr
.west
9 changes: 0 additions & 9 deletions ports/zephyr-cp/.west/config

This file was deleted.

2 changes: 1 addition & 1 deletion ports/zephyr-cp/cptools/build_circuitpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# Path to where CMake puts Zephyr's build output.
zephyrbuilddir = builddir / ".." / ".." / ".." / "zephyr"

sys.path.append(str(portdir / "lib/zephyr/scripts/dts/python-devicetree/src/"))
sys.path.append(str(portdir / "zephyr/scripts/dts/python-devicetree/src/"))
from devicetree import dtlib

compiler = cpbuild.Compiler(srcdir, builddir, cmake_args)
Expand Down
2 changes: 1 addition & 1 deletion ports/zephyr-cp/supervisor/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <zephyr/sys/reboot.h>

#include "lib/tlsf/tlsf.h"
#include "ports/zephyr-cp/lib/zephyr/include/zephyr/device.h"
#include <zephyr/device.h>

static tlsf_t heap;

Expand Down
7 changes: 7 additions & 0 deletions ports/zephyr-cp/zephyr-config/west.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
manifest:
projects:
- name: zephyr
url: https://github.com/adafruit/zephyr
revision: circuitpython
clone-depth: 100
import: true

0 comments on commit e895adb

Please sign in to comment.