TipsAndTricks/DeployWithLocalPackageServer

From Yocto Project
Revision as of 10:38, 22 February 2020 by Rpurdie (talk | contribs) (Created page with "Imagine you want to test some changes to a piece of software and already have an image you've built running on the target. You can set: PACKAGE_FEED_URIS = "http://<ip-addres...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Imagine you want to test some changes to a piece of software and already have an image you've built running on the target. You can set:

PACKAGE_FEED_URIS = "http://<ip-address>:8000" PRSERV_HOST = "localhost:0"

which sets up the image to refer to that package feed and ensures package versions increment.

Update the index with:

bitbake package-index

Start an http server with:

python3 -mhttp.server /path/to/deploy/rpms

Then you can do something like:

"bitbake <recipe> -C compile; bitbake package-index"

to cause recipe to recompile and then be available to update on the target using the package manager of choice (should work for opkg or dnf).