From cc06c58fb48253bcad3507ddd99620713e2e4efe Mon Sep 17 00:00:00 2001 From: Henny022p Date: Tue, 7 Jan 2025 22:55:58 +0100 Subject: [PATCH] add basic devcontainer setup --- .devcontainer/Containerfile | 21 +++++++++++++++++++++ .devcontainer/devcontainer.json | 6 ++++++ 2 files changed, 27 insertions(+) create mode 100644 .devcontainer/Containerfile create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Containerfile b/.devcontainer/Containerfile new file mode 100644 index 00000000..48fd6bae --- /dev/null +++ b/.devcontainer/Containerfile @@ -0,0 +1,21 @@ +FROM debian + +RUN apt update && apt upgrade && apt install -y --no-install-recommends \ + cmake \ + g++ \ + gcc \ + gcc-arm-none-eabi \ + libpng-dev \ + make \ + python3 \ + python3-pycparser \ + && rm -rf /var/lib/apt/lists/* + +ADD https://github.com/pret/agbcc.git /agbcc + +RUN cd /agbcc && \ + ./build.sh && \ + mkdir -p /agbcc-install && \ + ./install.sh /agbcc-install + +ENV AGBCC_PATH=/agbcc-install/tools/agbcc diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..52cc931e --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,6 @@ +{ + "name": "zeldaret/tmc-dev", + "build": { + "dockerfile": "Containerfile" + } +} \ No newline at end of file