GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — circuitpython/.devcontainer at main · adafruit/circuitpython

Expand file tree

/

.devcontainer

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

.devcontainer

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
atmel-samd
atmel-samd
 
 
cxd56
cxd56
 
 
espressif
espressif
 
 
mimxrt10xx
mimxrt10xx
 
 
raspberrypi
raspberrypi
 
 
silabs
silabs
 
 
stm
stm
 
 
Readme.md
Readme.md
 
 
codespace_options.png
codespace_options.png
 
 
common_tools.sh
common_tools.sh
 
 
cortex-m-toolchain.sh
cortex-m-toolchain.sh
 
 
esp-idf-toolchain.sh
esp-idf-toolchain.sh
 
 
fetch-port-submodules.sh
fetch-port-submodules.sh
 
 
install_build_env.sh
install_build_env.sh
 
 
make-mpy-cross.sh
make-mpy-cross.sh
 
 
post_create.sh
post_create.sh
 
 

Readme.md

Build CircuitPython in a Github-Codespace

To build CircuitPython within a Github codespace, you need to perform the following steps.

  1. checkout the code to a codespace
  • click on the green "<> Code"-button
  • select the Codespaces-tab
  • choose "+ new with options..." from the "..."-menu
  • in the following screen select the branch and then
  • select the port instead of "Default project configuration" (unsupported: ports not using cortex-m or esp-idf)
  • update region as necessary
  • finally, click on the green "Create codespace" button
  1. Your codespace is created. Cloning the image and the repo is quite fast, but preparing it for CircuitPython-development takes about 10 minutes. But this is a one-time task: once created, your codespace exists until you explicitly delete it or until it times out (default: 30 days).
    (Technical note: due to a bug in codespace creation, the setup is triggered from $HOME/.bashrc and runs in the background).

  2. During creation, you can run the command tail -f /workspaces/install_build_env.log.active to see what is going on. Once finished the log file is available as /workspaces/install_build_env.log.

  3. To actually build CircuitPython, open a new terminal and run e.g.

    cd ports/raspberrypi
    make -j $(nproc) BOARD=whatever TRANSLATION=xx_XX
    

    This takes about 2m40s. The new terminal is necessary since the setup of the build environment also changes $HOME/.bashrc and sets important environment variables in that file.

As a normal user, you have 120 CPU-hours and 15GB per month free. Since the smallest machine has two CPUs, you effectively have 60 hours active time available.

All scripts are in circuitpython/.devcontainer and can also be executed manually which should usually not be necessary. With small changes, they should also work on a Linux-PC or laptop.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.