Build Custom LunaSysMgr for OWO
Revision as of 07:36, 16 December 2012 by Scoutcamper (talk | contribs) (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...")
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 working knowledge of linux
Setup
Add the following to the bottom of conf/local-build.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/locla.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 root@192.168.7.2 'stop LunaSysMgr' scp ~/luna-sysmgr/release-tuna/LunaSysMgr root@192.168.7.2:/usr/bin/ ssh root@192.168.7.2 'start LunaSysMgr'
chmod +x build-luna.sh