Difference between revisions of "Build Custom LunaSysMgr for OWO"

From WebOS-Ports
Jump to navigation Jump to search
(Created page with "==Setup local-build.inc== '''Assumptions''' You have a local copy of luna-sysmgr repo in ~/luna-sysmgr You have a working OE build dir in /srv/webos-ports-env You have a work...")
 
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
<big> '''Please note that WebOS Ports DOESN'T use LunaSysMgr from Open webOS anymore, but uses it's own [[Luna_Next|Luna Next]] which is a rewrite of LunaSysMgr using the latest techologies (QT5, WebKit2, Wayland etc).''' </big>
 +
 +
 
==Setup local-build.inc==
 
==Setup local-build.inc==
  
Line 5: Line 8:
 
You have a local copy of luna-sysmgr repo in ~/luna-sysmgr
 
You have a local copy of luna-sysmgr repo in ~/luna-sysmgr
  
You have a working OE build dir in /srv/webos-ports-env
+
You have a working OE build dir in /srv/webos-ports-env (To set this up, start here: [http://www.webos-ports.org/wiki/Galaxy_Nexus_Build_Setup])
  
 
You have a working knowledge of linux
 
You have a working knowledge of linux
 +
 +
You have the Android SDK Setup
 +
 +
You have your galaxy nexus rndis setup and working.
  
 
'''Setup'''
 
'''Setup'''
  
Add the following to the bottom of conf/local-build.inc  
+
Add the following to the bottom of conf/local-builds.inc  
  
 
<pre>
 
<pre>
Line 24: Line 31:
 
Replace <pre><username></pre> with your username
 
Replace <pre><username></pre> with your username
  
Then, uncomment the following line in conf/locla.conf
+
Then, uncomment the following line in conf/local.conf
  
 
<pre>require local-builds.inc</pre>
 
<pre>require local-builds.inc</pre>
  
 
see the automated sh file for the rest of the steps.
 
see the automated sh file for the rest of the steps.
 +
 
==sh file to automate binary generation and push to device==
 
==sh file to automate binary generation and push to device==
  
Line 42: Line 50:
 
</pre>
 
</pre>
  
chmod +x build-luna.sh
+
Then run
 +
 
 +
<pre>chmod +x build-luna.sh</pre>
 +
 
 +
Finally, to trigger the build,do the following
 +
 
 +
<pre>./build-luna.sh <Branch name to build></pre>

Latest revision as of 15:30, 17 January 2014

Please note that WebOS Ports DOESN'T use LunaSysMgr from Open webOS anymore, but uses it's own Luna Next which is a rewrite of LunaSysMgr using the latest techologies (QT5, WebKit2, Wayland etc).


Setup local-build.inc

Assumptions

You have a local copy of luna-sysmgr repo in ~/luna-sysmgr

You have a working OE build dir in /srv/webos-ports-env (To set this up, start here: [1])

You have a working knowledge of linux

You have the Android SDK Setup

You have your galaxy nexus rndis setup and working.

Setup

Add the following to the bottom of conf/local-builds.inc

SRC_URI_pn-luna-sysmgr = "git:///home/<username>/luna-sysmgr;branch=webOS-ports/master;protocol=file"
S_pn-luna-sysmgr = "/home/<username>/luna-sysmgr"
B_pn-luna-sysmgr = "/home/<username>/luna-sysmgr"

SRCREV_pn-luna-sysmgr = "${AUTOREV}"
PV_pn-luna-sysmgr = "gitr${SRCPV}+1.0"

Replace

<username>

with your username

Then, uncomment the following line in conf/local.conf

require local-builds.inc

see the automated sh file for the rest of the steps.

sh file to automate binary generation and push to device

Put the following into build-luna.sh

#!/bin/sh
cd ~/luna-sysmgr && git pull origin $1
cd /srv/webos-ports-env/webos-ports && . ./setup-env && MACHINE=tuna bitbake -Dv luna-sysmgr -c compile
ssh [email protected] 'stop LunaSysMgr'
scp ~/luna-sysmgr/release-tuna/LunaSysMgr [email protected]:/usr/bin/
ssh [email protected] 'start LunaSysMgr'

Then run

chmod +x build-luna.sh

Finally, to trigger the build,do the following

./build-luna.sh <Branch name to build>