From: Doddridge, L. S C. N. C. M. <lan...@na...> - 2008-06-12 18:35:51
|
I should have said 'scp' instead of 'ssh', but you probably figured that out anyway. Lance -----Original Message----- From: jmust [mailto:jmu...@co...] Sent: Thursday, June 12, 2008 9:35 To: gum...@li... Subject: Re: [Gumstix-users] How To BitBake XL6P Gumstix Executable Codew/oPackaging Lance, It looks like really good information. I am going to study this approach right after lunch... Thanks. Doddridge, Lance S CIV NSWC Corona, MS32 wrote: > > When you use bitbake, it creates a 'temporary' directory where it > stores all the files that go into the package. However, the > directories persist even after the packaging is finished. I use > bitbake, then copy just the executable from the temporary directory to > the gumstix (I have a verdex XL6P) via ssh. I don't have to install > any packages to the verdex. It's handy when making small changes to > the executable and you want to test it quickly. I put all the > operations in a script and just run the script in a terminal window. > My executable to be cross-compiled is called 'lcs'. This is what my script looks like: > > clear > echo "PRELIMINARY CLEANUP OPERATIONS" > echo "==============================" > echo "removing lcs from /home/lance" > rm /home/lance/lcs > echo "rm ./lcs/bblcs.log" > rm ./lcs/bblcs.log > echo "removing previous installation package (lcs)" > rm > /home/lance/gumstix/gumstix-oe/tmp/deploy/glibc/ipk/armv5te/lcs_1.0-r0 > _a > rmv5te.ipk > echo " " > echo "STARTING BITBAKE" > echo "==============================" > echo "bitbake -c rebuild lcs >> ./lcs/bblcs.log" > bitbake -c rebuild lcs >> ./lcs/bblcs.log echo "*** RESULTS ***" > cat ./lcs/bblcs.log | more > echo " " > echo "Copying executable to /home/lance" > cp > /home/lance/gumstix/gumstix-oe/tmp/work/armv5te-angstrom-linux-gnueabi > /l cs-1.0-r0/install/lcs/usr/bin/lcs /home/lance/lcs echo " " > echo "==============================" > echo "FINISHED" > > > After running this script, I just ssh the executable 'lcs' to my > verdex, but you can also send it over through the serial port. > > > Lance > Naval Surface Warfare Center Corona Division > -- View this message in context: http://www.nabble.com/How-To-BitBake-XL6P-Gumstix-Executable-Code-w-o-Pa ckaging-tp17801270p17804252.html Sent from the Gumstix mailing list archive at Nabble.com. |