Building a component in OE

For a core system developer it will be required to rebuild some of the system components for the target device. This page describes all necessary steps.

Setup
Assumptions


 * You have a local copy of the component repo in path/to/ (only required in case we have an own repo and not following upstream directly!)
 * You have a working OE build dir in /srv/webos-ports (To set this up, start here: )
 * You have a working knowledge of linux
 * You have the Android SDK Setup

Configuration When it's a component for which we have our own repo: Add the following to the bottom of conf/local.conf

S_pn- = "path/to/ "

Otherwise you can just update the recipe directly.

Building
Now you can build the component from your OE environment by

$ MACHINE= bb -c compile -f

The output is hidden inside the build tree. Look into the path

tmp-glibc/work/armv7a-vfp-neon-webos-linux-gnueabi/ / /build

or

tmp-glibc/work/ -webos-linux-gnueabi/ / /build

for the binary you have built and transfer it to the device to the right location. For example use adb

$ adb push tmp-glibc/work/armv7a-vfp-neon-webos-linux-gnueabi/luna-webappmanager/0.2.0-8+gitAUTOINC+5344f19613-r0/build/src/LunaWebAppManager /usr/sbin/