From be4165920ca5e19a62b4c96681986cccc370cf0c Mon Sep 17 00:00:00 2001 From: Bhargav Das Date: Sun, 18 Jan 2026 21:31:34 +0530 Subject: [PATCH 1/3] Add config distro poky for setting up raspberry-pi workspace Signed-off-by: Bhargav Das --- configurations/poky-rpi-master.conf.json | 90 ++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 configurations/poky-rpi-master.conf.json diff --git a/configurations/poky-rpi-master.conf.json b/configurations/poky-rpi-master.conf.json new file mode 100644 index 00000000..c4770619 --- /dev/null +++ b/configurations/poky-rpi-master.conf.json @@ -0,0 +1,90 @@ +{ + "description": "Poky - The Yocto Project testing distribution configurations and hardware test platforms", + "sources": { + "bitbake": { + "git-remote": { + "remotes": { + "origin": { + "uri": "https://git.openembedded.org/bitbake" + } + }, + "branch": "master", + "rev": "master" + } + }, + "openembedded-core": { + "git-remote": { + "remotes": { + "origin": { + "uri": "https://git.openembedded.org/openembedded-core" + } + }, + "branch": "master", + "rev": "master" + } + }, + "meta-yocto": { + "git-remote": { + "remotes": { + "origin": { + "uri": "https://git.yoctoproject.org/meta-yocto" + } + }, + "branch": "master", + "rev": "master" + } + }, + "meta-openembedded": { + "git-remote": { + "remotes": { + "origin": { + "uri": "http://git.openembedded.org/meta-openembedded" + } + }, + "branch": "master", + "rev": "master" + } + }, + "meta-raspberrypi": { + "git-remote": { + "remotes": { + "origin": { + "uri": "https://github.com/agherzan/meta-raspberrypi.git" + } + }, + "branch": "master", + "rev": "master" + } + } + }, + "bitbake-setup": { + "configurations": [ + { + "bb-layers": ["openembedded-core/meta","meta-yocto/meta-yocto-bsp","meta-yocto/meta-poky", "meta-openembedded/meta-oe","meta-openembedded/meta-python","meta-openembedded/meta-networking","meta-openembedded/meta-perl", "meta-raspberrypi"], + "setup-dir-name": "$distro-rpi-master", + "oe-fragments-one-of": { + "machine": { + "description": "Target machines", + "options" : ["machine/raspberrypi-armv7", "machine/raspberrypi-armv8", "machine/raspberrypi-cm", "machine/raspberrypi-cm3", "machine/raspberrypi-cm5-io-board", "machine/raspberrypi", "machine/raspberrypi0-2w-64", "machine/raspberrypi0-2w", "machine/raspberrypi0-wifi", "machine/raspberrypi0", "machine/raspberrypi2-64", "machine/raspberrypi2", "machine/raspberrypi3-64", "machine/raspberrypi3", "machine/raspberrypi4-64", "machine/raspberrypi4", "machine/raspberrypi5"] + }, + "distro": { + "description": "Distribution configuration variants", + "options" : ["distro/poky", "distro/poky-altcfg", "distro/poky-tiny"] + } + }, + "configurations": [ + { + "name": "poky", + "description": "Poky - The Yocto Project testing distribution" + }, + { + "name": "poky-with-sstate", + "description": "Poky - The Yocto Project testing distribution with internet sstate acceleration. Use with caution as it requires a completely robust local network with sufficient bandwidth.", + "oe-fragments": ["core/yocto/sstate-mirror-cdn"] + } + ] + } + ] + }, + "version": "1.0" +} From aecb1c6c71ba3055831f115eba7f6f28380c2bc1 Mon Sep 17 00:00:00 2001 From: Bhargav Das Date: Fri, 23 Jan 2026 20:15:47 +0530 Subject: [PATCH 2/3] Add config oe-nodistro for setting up raspberry-pi workspace Signed-off-by: Bhargav Das --- .../oe-nodistro-rpi-master.conf.json | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 configurations/oe-nodistro-rpi-master.conf.json diff --git a/configurations/oe-nodistro-rpi-master.conf.json b/configurations/oe-nodistro-rpi-master.conf.json new file mode 100644 index 00000000..5bc4538d --- /dev/null +++ b/configurations/oe-nodistro-rpi-master.conf.json @@ -0,0 +1,77 @@ +{ + "description": "OpenEmbedded - 'nodistro' basic configuration", + "sources": { + "bitbake": { + "git-remote": { + "remotes": { + "origin": { + "uri": "https://git.openembedded.org/bitbake" + } + }, + "branch": "master", + "rev": "master" + } + }, + "openembedded-core": { + "git-remote": { + "remotes": { + "origin": { + "uri": "https://git.openembedded.org/openembedded-core" + } + }, + "branch": "master", + "rev": "master" + } + }, + "meta-yocto": { + "git-remote": { + "remotes": { + "origin": { + "uri": "https://git.yoctoproject.org/meta-yocto" + } + }, + "branch": "master", + "rev": "master" + } + }, + "meta-openembedded": { + "git-remote": { + "remotes": { + "origin": { + "uri": "http://git.openembedded.org/meta-openembedded" + } + }, + "branch": "master", + "rev": "master" + } + }, + "meta-raspberrypi": { + "git-remote": { + "remotes": { + "origin": { + "uri": "https://github.com/agherzan/meta-raspberrypi.git" + } + }, + "branch": "master", + "rev": "master" + } + } + }, + "bitbake-setup": { + "configurations": [ + { + "name": "nodistro", + "description": "OpenEmbedded 'nodistro'", + "setup-dir-name": "oe-nodistro-rpi-master", + "bb-layers": ["openembedded-core/meta","meta-yocto/meta-yocto-bsp","meta-yocto/meta-poky", "meta-openembedded/meta-oe","meta-openembedded/meta-python","meta-openembedded/meta-networking","meta-openembedded/meta-perl", "meta-raspberrypi"], + "oe-fragments-one-of": { + "machine": { + "description": "Target machines", + "options" : ["machine/raspberrypi-armv7", "machine/raspberrypi-armv8", "machine/raspberrypi-cm", "machine/raspberrypi-cm3", "machine/raspberrypi-cm5-io-board", "machine/raspberrypi", "machine/raspberrypi0-2w-64", "machine/raspberrypi0-2w", "machine/raspberrypi0-wifi", "machine/raspberrypi0", "machine/raspberrypi2-64", "machine/raspberrypi2", "machine/raspberrypi3-64", "machine/raspberrypi3", "machine/raspberrypi4-64", "machine/raspberrypi4", "machine/raspberrypi5"] + } + } + } + ] + }, + "version": "1.0" +} From 8bbd9841969943a54ba4a2fa058f27a18880bace Mon Sep 17 00:00:00 2001 From: Bhargav Das Date: Sun, 18 Jan 2026 22:23:44 +0530 Subject: [PATCH 3/3] README.md: Add bitbake-setup usage guide Signed-off-by: Bhargav Das --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 06767dcd..dd080a2a 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,25 @@ And the same for the `distro`. For further information, you can read more at +## Quick Start with bitbake-setup +1. Initialize the setup, +``` +bitbake/bin/bitbake-setup init meta-raspberrypi/configurations/poky-rpi-master.conf.json + +or + +bitbake/bin/bitbake-setup init https://raw.githubusercontent.com/agherzan/meta-raspberrypi/bitbake-setup/configurations/poky-rpi-master.conf.json +``` +2. Select the required configurations. +3. Source init-build-env from `bitbake-builds/oe-nodistro-rpi-master/build`. +4. bitbake core-image-base +5. Use bmaptool to copy the generated wic image to SD card +6. Boot your RPI + +Currently following 2 configs are available, +1. poky-rpi-master.conf.json +2. oe-nodistro-rpi-master.conf.json + ## Contributing You can send patches using the GitHub pull request process or/and through the