From 30d68924779d18359ec499b0497c5521567f4cb4 Mon Sep 17 00:00:00 2001 From: David Lenfesty Date: Fri, 16 Jun 2023 14:45:25 -0600 Subject: [PATCH] add privileged flag to devcontainer, to flash from vscode --- .devcontainer/devcontainer.json | 13 +++++++++++++ BUILDING.md | 3 --- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..2f9e7be --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,13 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile +{ + "name": "sonar_fpga", + "build": { + // Sets the run context to one level up instead of the .devcontainer folder. + "context": "..", + // Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. + "dockerfile": "../Dockerfile" + }, + + "runArgs": ["--privileged"] +} diff --git a/BUILDING.md b/BUILDING.md index 2292070..6edf336 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -7,9 +7,6 @@ The recommended dev flow if you want to make changes is to use VSCode with remot it's the easiest way to get the toolchain up and running, and to fix the issues encountered with migen. -*Note: I currently do not know how to run the dev container with --privileged, so you'll need -to flash by manually running it* - Recommended extensions: - Pylance