{"id":15394708,"url":"https://github.com/bensuperpc/docker-yocto","last_synced_at":"2026-04-16T18:01:58.940Z","repository":{"id":107273617,"uuid":"597400952","full_name":"bensuperpc/docker-yocto","owner":"bensuperpc","description":"Yocto in Docker","archived":false,"fork":false,"pushed_at":"2024-01-13T21:16:31.000Z","size":96,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T23:44:14.769Z","etag":null,"topics":["cooker","debian","docker","linux","yocto"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bensuperpc.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"bensuperpc"}},"created_at":"2023-02-04T12:42:11.000Z","updated_at":"2024-01-29T11:37:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"2d48399a-a050-4b1f-9634-ade0d97e5331","html_url":"https://github.com/bensuperpc/docker-yocto","commit_stats":{"total_commits":38,"total_committers":2,"mean_commits":19.0,"dds":0.02631578947368418,"last_synced_commit":"5e3f46abaafd9ca965ce7aedc1ff4e15175ca476"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bensuperpc/docker-yocto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensuperpc%2Fdocker-yocto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensuperpc%2Fdocker-yocto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensuperpc%2Fdocker-yocto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensuperpc%2Fdocker-yocto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bensuperpc","download_url":"https://codeload.github.com/bensuperpc/docker-yocto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensuperpc%2Fdocker-yocto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31897870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T17:33:00.867Z","status":"ssl_error","status_checked_at":"2026-04-16T17:32:57.401Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cooker","debian","docker","linux","yocto"],"created_at":"2024-10-01T15:24:16.346Z","updated_at":"2026-04-16T18:01:58.902Z","avatar_url":"https://github.com/bensuperpc.png","language":"Makefile","funding_links":["https://github.com/sponsors/bensuperpc"],"categories":[],"sub_categories":[],"readme":"# docker-yocto\n\n## _Yocto in docker_\n\nYou can build images with yocto in docker.\n\n\n## Features\n\n- Build image in docker with yocto, no need to install yocto (and all dependencies) on your host\n- Multiple layers (In submodules)\n- Easy to use (Makefile)\n\n## Requirements\n\n### Software requirements\n\n| Software | Minimum | Recommended |\n| ------ | ------ | ------ |\n| Linux | Any | Any |\n| Docker | 19.x | 20.x |\n| Make | 4.x | 4.x |\n| Time | x hours | x hours |\n\n### Hardware requirements\n\n| Hardware | Minimum | Recommended |\n| ------ | ------ | ------ |\n| CPU | 2 cores | 8 cores |\n| GPU | - | - |\n| Disk space | HDD 50 GB | SSD 300 GB |\n| Internet | 10 Mbps | 100 Mbps |\n\n### Tested on\n\nWith this configuration, you can build a core-image-full-cmdline for intel-corei7-64 in 1h30-2h00.\n\n- AMD Ryzen 7 5800H (8 cores/16 threads at 3.2 GHz/4.4 GHz)\n- 32 GB RAM\n- 1 TB SSD NVMe Samsung 980 Pro\n- 100 Mbps internet\n- Manjaro Linux\n- Yocto 4.2 beta (02/2023)\n\n## How to use docker-yocto\n\nClone this repository\n\n```bash\ngit clone https://github.com/bensuperpc/docker-yocto.git\n```\n\nIf you want to use submodules, you can clone with submodules.\n\n```bash\ngit clone --recurse-submodules --remote-submodules https://github.com/bensuperpc/docker-yocto.git\n``` \n\n### Build with docker\n\n```bash\nmake build\n```\n\n### Start the container\n\nNow you can start the container, it will mount the current directory in the container.\n\n```bash\nmake bookworm.run\n```\n\nThe table below shows the available debian versions.\nbuster bullseye bookworm:\n\n| Debian | Makefile target |\n| ------ | ------ |\n| Bookworm | bookworm |\n| bullseye | bullseye |\n| buster | buster |\n\n### Build image (With cooker)\n\nNow you are in the container, you can build image with yocto.\nYou can use cooker to build image, it easy to use.\nWe target *base-raspberrypi4-64* build from *raspberrypi4-64.json* file.\n\n```bash\ncooker cook raspberrypi4-64.json base-raspberrypi4-64\n```\n\nYou can use some options with cooker: \n\n| Option | Description |\n| ------ | ------ |\n| --download | Only download the sources and not build the image |\n| --sdk | Build the SDK after the image |\n| --keepgoing | Continue as much as possible after an error |\n| --version | Show the version of cooker |\n\n### Build image (With bitbake)\n\nIf you want to use bitbake, you can use it. (**You need submodules**)\n\nCheckout the branch you want (**For each submodules/layers**).\n**All branches must be the same version on poky/openembedded-core and other submodules/layers.**\n\n```bash\ngit branch -a # show all branches on submodules/layers or poky/openembedded-core\ngit checkout -t origin/kirkstone -b my-kirkstone # checkout the branch and create a new branch\n```\n\nWith openembedded-core :\n\n```bash\nsource layers/openembedded-core/oe-init-build-env base-raspberrypi4-64\n```\n\n**Or** with poky :\n\n```bash\nsource layers/poky/oe-init-build-env base-raspberrypi4-64 \n```\n\nAdd meta layer :\n\n```bash\nbitbake-layers add-layer ../meta\n```\n\nAdd meta-poky layer :\n\n```bash\nbitbake-layers add-layer ../meta-poky\n```\n\nAdd meta-oe layer :\n\n```bash\nbitbake-layers add-layer ../openembedded-core/meta-oe\n```\n\nAdd meta-raspberrypi layer :\n\n```bash\nbitbake-layers add-layer ../layers/meta-raspberrypi\n```\n\nShow layers if you want :\n\n```bash\nbitbake-layers show-layers\n```\n\nChange the MACHINE in conf/local.conf :\n\n```bash\nMACHINE = \"raspberrypi4-64\"\n```\n\nChange the DISTRO in conf/local.conf :\n\n```bash\nDISTRO = \"poky\"\n```\n\nNow you can build the image :\n\n```bash\nbitbake core-image-base\n```\n\nNow you can exit the container when the build is finished.\n\n```bash\nexit\n```\n\nAll the build is in the **\"builds\"** directory.\n\n## Update submodules and base debian image\n\n```bash\nmake update\n```\n\n## Useful links\n\n- [Layerindex](https://layers.openembedded.org/layerindex/branch/master/layers/)\n- [Yocto Project Reference Manual](https://docs.yoctoproject.org/ref-manual/)\n- [Cooker](https://www.blaess.fr/christophe/2022/01/13/yocto-cooker-1-3/)\n- [yocto](https://www.yoctoproject.org)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbensuperpc%2Fdocker-yocto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbensuperpc%2Fdocker-yocto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbensuperpc%2Fdocker-yocto/lists"}