From f0af1c6b5ddd45694674c81b08142aa91de1acf6 Mon Sep 17 00:00:00 2001 From: Mohamad EL CHAMAA Date: Thu, 2 Jul 2026 16:47:04 +0200 Subject: [PATCH] container/gitignore --- .devcontainer/devcontainer.json | 25 +++++++++++++++++++++++-- .gitignore | 16 ++++++++++++++++ 2 files changed, 39 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3a1c2f054..575d848ef 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -5,7 +5,23 @@ "ghcr.io/devcontainers/features/node:1": {}, "ghcr.io/rocker-org/devcontainer-features/apt-packages:1": { "packages": [ - "sudo" + "sudo", + // Zephyr / nRF Connect SDK host build dependencies + "git", + "cmake", + "ninja-build", + "gperf", + "ccache", + "dfu-util", + "device-tree-compiler", + "wget", + "xz-utils", + "file", + "make", + "libsdl2-dev", + "libmagic1", + "python3-venv", + "python3-dev" ] } }, @@ -20,7 +36,12 @@ ], "postCreateCommand": { "platformio": "pipx install platformio", - "opencode": "curl -fsSL https://opencode.ai/install | bash" + "opencode": "curl -fsSL https://opencode.ai/install | bash", + // HEAVY (multi-GB, slow first run). Comment this out and run the script + // manually (`bash .devcontainer/setup-zephyr.sh`) if you'd rather not pay + // the cost on every container (re)create. Non-fatal: PlatformIO still works + // even if this fails. + "zephyr": "bash .devcontainer/setup-zephyr.sh || echo 'Zephyr setup skipped/failed; run .devcontainer/setup-zephyr.sh manually'" }, "customizations": { "vscode": { diff --git a/.gitignore b/.gitignore index a0ad5f6ea..5e3bc9f71 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,19 @@ compile_commands.json .venv/ venv/ platformio.local.ini + +# --- nRF54L15/Zephyr port: keep generated artifacts & local junk out of git --- +# large reference binaries (datasheets) — keep locally, not in git +*.pdf + +# python caches +__pycache__/ +*.pyc +# arduino-cli build artifacts — regenerated by tools/*/build.sh (curated lib + assembled sketch dirs) +tools/*/libs/ +tools/*/mc_*/ +tools/*/sketch/ +tools/*/mc_xiao/ +# Zephyr out-of-tree build dirs (we build to /tmp, but ignore any local build/) +build/ +zephyr-port/*/build/