Difference between revisions of "Building Apps and Kernels"
Jump to navigation
Jump to search
(→Apps) |
(→Setup) |
||
Line 15: | Line 15: | ||
</pre> | </pre> | ||
− | After you have the source, you need to build the toolchain — this can take some time | + | After you have the source, you need to build the toolchain — this can take some time or if you already have the toolchain installed, please see below |
<pre> | <pre> | ||
cd build | cd build | ||
make toolchain | make toolchain | ||
+ | </pre> | ||
+ | |||
+ | if you already have the correct version of the toolchain installed for the device you are targeting you can symlink it to the proper location | ||
+ | ie the touchpad needs the Sourcery G++ Lite 2009q1-203 toolchain. if it is already installed you can symlink it to | ||
+ | <pre> | ||
+ | cd toolchain/cs09q1armel | ||
+ | mkdir build | ||
+ | cd build | ||
+ | ln -s <location of toolchain> arm-2009q1 | ||
</pre> | </pre> | ||
Revision as of 06:35, 28 August 2011
If you are looking for instructions for building apps and kernels for WebOS, you have come to the right place. If you have not run through the WebOS Internals PDK wiki page, you should start there.
Setup
Create the directory structure for the source:
sudo mkdir -p /srv/preware cd /srv/preware sudo chmod 777 .
Pull down the app source with git.
git clone git://git.webos-internals.org/preware/build.git
After you have the source, you need to build the toolchain — this can take some time or if you already have the toolchain installed, please see below
cd build make toolchain
if you already have the correct version of the toolchain installed for the device you are targeting you can symlink it to the proper location ie the touchpad needs the Sourcery G++ Lite 2009q1-203 toolchain. if it is already installed you can symlink it to
cd toolchain/cs09q1armel mkdir build cd build ln -s <location of toolchain> arm-2009q1
Apps
Package up preware.
cd /srv/preware/build/apps/preware make package
Kernels
Package up UberKernel.
cd /srv/preware/kernels/uber-kernel-touchpad make package