open_source:ccgx:bitbake
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| open_source:ccgx:bitbake [2019-01-22 10:43] – external edit 127.0.0.1 | open_source:ccgx:bitbake [2019-06-22 15:50] (current) – removed mvader | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Bitbake: making and managing recipes for CCGX ====== | ||
| - | |||
| - | To build all the CCGX rootfs or images with all the existing recipes, see instructions here: https:// | ||
| - | |||
| - | Below guide is an introduction on how to add recipes and create/ | ||
| - | |||
| - | Start bitbake: | ||
| - | make bb | ||
| - | |||
| - | Build a single recipe: | ||
| - | bitbake -b dbus-modbustcp_0.7.2.bb | ||
| - | |||
| - | That probably didn't work, because dependencies are missing. To build the recipe including dependencies, | ||
| - | bitbake dbus-modbustcp | ||
| - | |||
| - | when changing the source code that is fetched by the recipe, make sure to do a cleanall before running the recipe again (note I changed from the dbus-modbustcp example to vrmportal: | ||
| - | bitbake -c cleanall vrmportal | ||
| - | |||
| - | To see what happened, and where all the source files are, see here (replace vrmportal with the recipe you are working on): | ||
| - | / | ||
| - | |||
| - | After successfully building a package, it is somewhere in the deploy folder. In above case it is here: | ||
| - | < | ||
| - | matthijs@matthijs-VirtualBox:/ | ||
| - | -rw-r--r-- 1 matthijs matthijs 18381088 sep 20 13:19 vrmportal_0.01-r0_armv7a-vfp-neon.ipk | ||
| - | -rw-r--r-- 1 matthijs matthijs | ||
| - | -rw-r--r-- 1 matthijs matthijs | ||
| - | </ | ||
| - | |||
| - | As you can see there is a dbg and dev as well, see internet for more explanation on those. Now, to test the package on a ccgx, copy the package to it: | ||
| - | scp vrmportal_0.01-r0_armv7a-vfp-neon.ipk root@192.168.51.67: | ||
| - | |||
| - | and then login with ssh and install it: | ||
| - | root@ccgx: | ||
| - | | ||
| - | some more tips and trick I wish that I knew before hand: | ||
| - | * use bitbake -k [packagename] when building packages with lots of dependencies. It will then continue instead of stopping on the first error. | ||
| - | * after pressing ctrl-c once, wait to bitbake to finish the remaining tasks. Instead of being impatient and pressing it again immediately. It will mess up the cache causing errors on your next build. | ||
| - | * there are several ways/levels of cleaning up: | ||
| - | * bitbake -c clean [packagename] | ||
| - | * bitbake -c cleansstate [packagename] | ||
| - | * bitbake -c cleanall [packagename] | ||
| - | * and to clean everything, exit bitbake and do a make clean in the root folder of venus | ||
| - | |||
| - | === running local pkg repo === | ||
| - | instead of testing with manually installing a package, which is nice to test a single install, the other way to test if all the R-numbers and dependencies are done in the right way is to host them yourself. | ||
| - | |||
| - | see here for instructions: | ||
| - | http:// | ||
open_source/ccgx/bitbake.1548150223.txt.gz · Last modified: by 127.0.0.1