DeployingAPackage
Jump to navigation
Jump to search
Yocto-Danny[edit | edit source]
Release an existing package[edit | edit source]
ssh embedded-dev -l venture cd /home/yocto-danny/poky/
setup build environment
. oe-init-build-env
Edit bitbake file to update revision
vi ../meta-venture/recipes-venture/vrfrv2-linux/vrfrv2-linux-event-beta.bb MACHINE=vrreader-am35 bitbake vrfrv2-linux-event-beta ./update-feed.sh
Create a new package[edit | edit source]
NEW Style (Yocto)[edit | edit source]
For an existing package from the old openembedded layout[edit | edit source]
- copy the old .bb file and the related files/ or <package name>/ directory to the new location in /home/yocto/poky/meta-venture/recipes-venture/
- add some new Yocto things, like the LIC_FILES_CHKSUM and LICENSE variable, also some of the distro fields (DESCRIPTION,HOMEPAGE) need to be set (see vrfrv2-linux_*.bb for example)
- go to the YOCTO build folder /home/yocto/poky/build with the YOCTO stuff sourced (
cd /home/yocto/poky && source oe-init-build-env) or switch to the screen terminal that has the yocto prompt already
MACHINE=vrreader-am35 bitbake <package>
Testing a package using 'devshell'[edit | edit source]
you will need to have built the package once to get the run.do_configure script (even if configure fails)
MACHINE=vrreader-om37 bitbake vrfrv2-linux-event -c devshell
then inside the devshell...
../temp/run.do_configure.5839 # (for example, to run oe's configure) ../temp/run.do_compile.* # (for example, to run oe's compile) or just make, make clean, etc.
OLD Style (ASD, som9g45)[edit | edit source]
Basic steps:
- go to /opt/oe/emac-oe-2009-stable directory.
- Modify code/bitbake files. Make sure to bump the PR (package rev) to have units in the field update with an ipkg upgrade.
- if it is local svn stuff (aka, forkliftreader_linux code,) then
update SRCREV=> latest svn rev & PR => +1 (make sure to check everything in before hand) in the following bb file:
/opt/oe/venture-stable-2009/recipes/vrfrv2-linux/vrfrv2-linux_5.0.bb
do this to force a rebuild:
./oe-run.sh vrfrv2-linux -f -c fetch
- then, run (substitute the package you are building for <package>, i.e. vrfrv2-linux)
./oe-run.sh <package>
- to update units in the field/upgrade using ipkg, also run the update-feed script
./update-feed.sh
Then units in the field can run ipkg update / ipkg install <package> to get the latest package.