HOWTO Make Snapshot Builds on the Developer Machine

From SDCC wiki
Revision as of 14:12, 3 March 2014 by MaartenBrock (Talk | contribs)

Jump to: navigation, search

I verified the following steps on Linux FC6 and Fedora 7 machines:

  • create the sdcc-builder account
  • log in as sdcc-builder
su -l sdcc-builder
  • checkout the sdcc-cf subproject to the sdcc-builder home directory:
svn checkout svn://svn.code.sf.net/p/sdcc/code/trunk/sdcc-cf ~
  • backup the original .profile:
mv ~/.profile ~/.profile.orig
  • add the line '. ~/.sdcc_builder/profile' at the end of ~/.profile file:
( echo; echo '. ~/.sdcc_builder/profile' ) | cat ~/.profile.orig - > ~/.profile
  • update the environment:
. .profile
  • install gputils in order to be able to compile pic and pic16 libraries: run make from ~/packages/build.gputils directory:
make -C ~/packages/build.gputils
  • create the build/sdcc-build directory
mkdir -p ~/build/sdcc-build
  • checkout sdcc-build subproject into it and make an executable copy of sdcc-build-bootstrap.sh:
svn checkout svn://svn.code.sf.net/p/sdcc/code/trunk/sdcc-build ~/build/sdcc-build/
cp ~/build/sdcc-build/sdcc-build-bootstrap.sh ~/build
chmod +x ~/build/sdcc-build-bootstrap.sh
  • create the local machine makefile in the ~/.sdcc-build/local directory, usually by copying and modifying one of the existing ~/build/sdcc-build/local/*.mk. The local machine makefile has to be named <hostname>.mk. The <hostname> is the string returned by the "hostname" command up to the (excluding) first dot.
mkdir -p ~/.sdcc_builder/local
cp ~/build/sdcc-build/local/<one of existing>.mk ~/.sdcc_builder/local/${HOSTNAME}.mk
  • run the sdcc-build/sdcc-build-bootstrap.sh script:
~/build/sdcc-build-bootstrap.sh crontab-spawn 2>&1 | tee ~/build/log.txt

or if you want to have a detailed log:

~/build/sdcc-build-bootstrap.sh crontab-spawn MAKESILENTFLAG="" 2>&1 | tee ~/build/log.txt
  • view ~/build/log.txt to see all the errors...

And where are the built packages? You'll find them in ~/build/htdocs/snapshots/<platform> directory. Regression test results are in ~/build/htdocs/regression_test_results/<platform> directory.

If you have additional questions / comments / improvements about the topic, please send a mail to sdcc-devel mailing list <sdcc-devel AT lists.sourceforge.net>.

Borut

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox