You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a new community devcontainer feature yoctoproject.org that installs bitbake — the core build tool of the Yocto Project and OpenEmbedded.
Approach
Since the Yocto Project publishes no pre-built binaries, bitbake is installed from the openembedded/bitbake source archive (tagged yocto-X.Y.Z). The script self-patches the lib/ path via __file__ resolution in the Python entry point, so a simple shell wrapper suffices — no PYTHONPATH manipulation needed.
Changes
src/yoctoproject.org/install.sh — resolves the latest version from GitHub tags (yocto-X.Y.Z), downloads the tarball, extracts to /opt/bitbake/, creates a wrapper at /usr/local/bin/bitbake, ensures python3 is present
src/yoctoproject.org/devcontainer-feature.json — feature metadata, version 1.0.0, version option defaulting to latest
Fixed in commit 1d6343c. The root cause was that bitbake calls locale.setlocale(locale.LC_CTYPE, ("en_US", "UTF-8")) at startup and exits if the locale isn't available. Minimal debian:latest and ubuntu:latest images don't have locales configured, so the install.sh now installs the locales package and runs locale-gen en_US.UTF-8.
Fixed in commit 4016a40. The issue was that locale-gen en_US.UTF-8 ran silently without generating the locale on Debian 13 (trixie) — when called with an argument, it produced no output and didn't populate the locale archive. The fix uses the standard Debian pattern: echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && locale-gen, which explicitly registers the locale in /etc/locale.gen before generating it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new community devcontainer feature
yoctoproject.orgthat installsbitbake— the core build tool of the Yocto Project and OpenEmbedded.Approach
Since the Yocto Project publishes no pre-built binaries,
bitbakeis installed from theopenembedded/bitbakesource archive (taggedyocto-X.Y.Z). The script self-patches thelib/path via__file__resolution in the Python entry point, so a simple shell wrapper suffices — noPYTHONPATHmanipulation needed.Changes
src/yoctoproject.org/install.sh— resolves the latest version from GitHub tags (yocto-X.Y.Z), downloads the tarball, extracts to/opt/bitbake/, creates a wrapper at/usr/local/bin/bitbake, ensurespython3is presentsrc/yoctoproject.org/devcontainer-feature.json— feature metadata, version1.0.0,versionoption defaulting tolatestsrc/yoctoproject.org/NOTES.md— project link, description, install methodtest/yoctoproject.org/test.sh— verifiesbitbake --versionemitsBitBakeREADME.md— new row inserted alphabetically betweenyakitrak/notesmd-cliandyqUsage
Works on both
amd64andarm64— no architecture-specific binaries involved.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
downloads.yoctoproject.org/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
yoctoproject.org#228💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.