Remove All Ads from XDA

[PORT] [ROM] WebOS Port - Build Setup

3,056 posts
Thanks Meter: 819
Post Reply Email Thread

The following steps will help you to setup a complete build environment for the webos-ports project.
WE DO NOT CURRENTLY SUPPORT webos-image PLEASE BUILD webos-dev-image
Setup the build environment

 $ sudo apt-get install gawk         
 $ sudo apt-get install diffstat         
 $ sudo apt-get install chrpath         
 $ sudo apt-get install texinfo (if not on Ubuntu or Debian it will be makinfo instead of texinfo)
 $ cd into-your-build-directory
 $ mkdir webos-ports && cd webos-ports
 $ wget
 $ sudo sh
 $ wget
 $ make setup-webos-ports
Before you can build, you will need some tools. If you try to build without them, bitbake will fail a sanity check and tell you about what's missing, but not really how to get the missing pieces.
This has been tested on Gentoo (shr-chroot) and Ubuntu-12.04 amd64 and should work almost everywhere where valid toolchain is provided.

You need a lot of RAM to link webkit-webos, make sure you have at least 6GB (it's OK when some of that is swap, because it's used only for short part of build).
Webkit needs so much ram to link because it's linking with debug symbols (huge files) which are stripped later in do_package after creating -dbg packages.
You can add extra 2GB of swap file like this:
$ dd if=/dev/zero of=swap_2gb.img bs=1024k count=2048
$ mkswap swap_2gb.img
$ sudo swapon swap_2gb.img
If you want it permanently add it to your /etc/fstab.


To configure to build for tuna (notice '.' which is actually bash 'source' command):
 $ cd into-your-build-directory/webos-ports/webos-ports
 $ . ./setup-env
To update metadata
 $ make update
 # or if it shows warning about different bblayers.conf or layers.txt
 $ make update-conffiles && make update
 # you can also add UPDATE_CONFFILES_ENABLED = 1 to
 # if you never want to have any uncommited changes in your checkouts RESET_ENABLED = 1 in
To build the webos-image for the gnex device:
$ MACHINE=tuna bb webos-ports-image
 # or for the webos development image
$ MACHINE=tuna bb webos-ports-dev-image
If you get an error about missing qmake-palm, try this:
$ MACHINE=tuna bitbake -c cleansstate -f qt4-webos
If you get an error about missing QtWebKit #261, try this:
$ MACHINE=tuna bitbake -c cleansstate -f webkit-webos
If you get an error "The BBPATH variable is not set", then you forgot to call:
$ . setup-env
After the build completes, you will find your image in <build env>/tmp-eglibc/deploy/images/tuna/
==Speeding up the build==

You can tune bitbake to use more of your processor. Edit webos-ports/conf/local.conf and uncomment the PARALLEL_MAKE and BB_NUMBER_THREADS lines. PARALLEL_MAKE should be set to the number of processor cores you have (or the number you have made available to the VM in the case of a VM) and BB_NUMBER_THREADS can be set from one to two times that, depending upon RAM, processor speed, other tasks running and Hyper-threading support. Example values:

I'm not in charge of this port. This thread is just here to help you, and discuss about this port made by team WEBOS-PORT.
Thanks for their work.

Installing and running the image
Once you have built the image, you'll likely want to install it and run it on your Nexus. See Testing Gnex for further details on that process.
Source and updates :
The Following 32 Users Say Thank You to imfloflo For This Useful Post: [ View ] Gift imfloflo Ad-Free
5th October 2012, 10:18 AM |#2  
imfloflo's Avatar
OP Retired Moderator
Flag Clermont-Ferrand, France
Thanks Meter: 819
Donate to Me


More Pictures :
The Following 10 Users Say Thank You to imfloflo For This Useful Post: [ View ] Gift imfloflo Ad-Free
5th October 2012, 11:54 AM |#3  
MadCobbler's Avatar
Recognized Contributor / Themer
Flag Sheffield
Thanks Meter: 6,741
Thanks for this, just having a go at this now

Edit: Damn it seems it doesn't like Ubuntu 10.10

Suppose I needed an excuse to update........
The Following 2 Users Say Thank You to MadCobbler For This Useful Post: [ View ] Gift MadCobbler Ad-Free
5th October 2012, 02:38 PM |#4  
tyraelasd's Avatar
Senior Member
Flag Concepcion
Thanks Meter: 477
It would be pretty cool to have web os as a port for the Nexus. Wish you all the best

Sent from my Galaxy Nexus using Tapatalk 2
5th October 2012, 03:34 PM |#5  
XDA Portal Team / Retired Forum Moderator
Thanks Meter: 875
Thumbs up
Nice, I hope webOS will be a succes on our Galaxy Nexuses!

Good luck!
5th October 2012, 04:17 PM |#6  
munchy_cool's Avatar
Senior Member
Flag void (0)
Thanks Meter: 3,023
Donate to Me
nice work there ...
6th October 2012, 07:26 AM |#7  
Senior Member
Flag Mumbai
Thanks Meter: 195
Donate to Me
Really excited about this. Can't wait for a relatively stable port of the WebOS
6th October 2012, 08:30 AM |#8  
overthinkingme's Avatar
Senior Member
Flag Los Angeles
Thanks Meter: 50
So awesome, can't wait to see how this progresses.

Sent from my Galaxy Nexus using Tapatalk 2
6th October 2012, 11:40 AM |#9  
Thatgrass's Avatar
Senior Member
Thanks Meter: 545
Donate to Me
The source was specified for Gnex, wasn't it?

Sent from my Galaxy Nexus using xda app-developers app
6th October 2012, 03:29 PM |#10  
Senior Member
Thanks Meter: 72
Donate to Me
woot woot. niceeeee
6th October 2012, 08:03 PM |#11  
Junior Member
Thanks Meter: 0
Sound good....

Sent from my Galaxy Nexus using xda app-developers app
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes