Skip to content

Yocto deb repository

vraevsky edited this page Feb 25, 2024 · 8 revisions

Build Machine (Repository Server)

conf/local.conf changes

PACKAGE_CLASSES = "package_rpm package_deb"
EXTRA_IMAGE_FEATURES += " package-management "
PACKAGE_FEED_URIS = "http://build-host:5678"

bitbake command to issue

bitbake package-index

Start http server

cd tmp/deploy/deb
python -m http.server 5678

Create yocto.list

ls tmp/deploy/deb | awk '($0="deb [trusted=yes] http://build-host:5678/"$0" /")' > /tmp/yocto.list

Client Machine

Copy the yocto.list from the build machine

scp user@builhost:/tmp/yocto.list /etc/apt/sources.list.d/

Sample yocto.list

deb [trusted=yes] http://build-host:5678/aarch64 /
deb [trusted=yes] http://build-host:5678/aarch64-mx8mq /
deb [trusted=yes] http://build-host:5678/cl_som_imx8 /