Adding packages to the Openmoko image
Here’s a pretty trivial script I wrote to inject packages into the openmoko images. sed does all the dirty work for me. I was feeling pretty lazy to edit the task-openmoko.bb each and everytime after it gets reverted after an svn update. So came up with this hack.
The trick is, task-openmoko.bb in oe/packages/tasks contains the list of the apps that will be included in the final image. If your app name is not present in it, your recipe will be parsed correctly and your app will build, but it wont make it to the final image.
Note: Bump up PR in task-openmoko.bb before using the script.
# Sudharshan "Sup3rkiddo" S
# inject, script that injects packages into the OpenMoko standard,
# The sed line does all the stuff, nothing elite...
# The package is grouped under TASK_OPENMOKO_LINUX..after rsync
# The bitbake recipes should be present in the proper place. OE docs for info
if [ $# -ne "$ARGS" ]
echo "Usage: inject "
mv task-openmoko.bb task-openmoko.bb_bakup
# search for rsync and append the package name after it..[KIDDISH HACK]
sed '/rsync \\/ a\ '$1' \\' >task-openmoko.bb
mv task-openmoko.bb_bakup ~/
echo "Done injection..muhahah"
You still have to make sure you have the bitbake recipes in the proper place. As always I am not responsible for dead kittens caused due to the usage of the above script ;)