HOWTO Make Snapshot Builds on the Developer Machine - roybaer/sdcc-wiki GitHub Wiki
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></hostname>.mk. The <hostname></hostname> is the string returned by the "hostname" command up to the (excluding) first dot. If the system also builds a cross-compiled set, you should also copy the accompanying <hostname></hostname>*mingw*.mk file.
mkdir &amp;&#35;45&#59;p ~/.sdcc_builder/local cp ~/build/sdcc&amp;&#35;45&#59;build/local/&amp;lt&#59;one of existing&amp;gt&#59;.mk ~/.sdcc_builder/local/$&amp;&#35;123&#59;HOSTNAME&amp;&#35;125&#59;.mk
- run the sdcc-build/sdcc-build-bootstrap.sh script:
~/build/sdcc&amp;&#35;45&#59;build&amp;&#35;45&#59;bootstrap.sh crontab&amp;&#35;45&#59;spawn 2&amp;gt&#59;&amp;amp&#59;1 &amp;&#35;124&#59; tee ~/build/log.txtor if you want to have a detailed log:
~/build/sdcc&amp;&#35;45&#59;build&amp;&#35;45&#59;bootstrap.sh crontab&amp;&#35;45&#59;spawn MAKESILENTFLAG&amp;&#35;61&#59;&amp;quot&#59;&amp;quot&#59; 2&amp;gt&#59;&amp;amp&#59;1 &amp;&#35;124&#59; tee ~/build/log.txt
- view ~/build/log.txt to see all the errors...
If you have additional questions / comments / improvements about the topic, please send a mail to sdcc-devel mailing list <sdcc-devel></sdcc-devel>.
Additional packages can be build.
Documentation:
~/build/sdcc&amp;amp&#59;amp&amp;&#35;59&#59;amp&amp;amp&#59;&amp;&#35;35&#59;59&amp;&#35;59&#59;&amp;amp&#59;amp&amp;&#35;59&#59;&amp;amp&#59;&amp;&#35;35&#59;35&amp;&#35;59&#59;35&amp;amp&#59;&amp;&#35;35&#59;59&amp;&#35;59&#59;45&amp;amp&#59;amp&amp;&#35;59&#59;&amp;amp&#59;&amp;&#35;35&#59;35&amp;&#35;59&#59;59&amp;amp&#59;&amp;&#35;35&#59;59&amp;&#35;59&#59;build&amp;amp&#59;amp&amp;&#35;59&#59;amp&amp;amp&#59;&amp;&#35;35&#59;59&amp;&#35;59&#59;&amp;amp&#59;amp&amp;&#35;59&#59;&amp;amp&#59;&amp;&#35;35&#59;35&amp;&#35;59&#59;35&amp;amp&#59;&amp;&#35;35&#59;59&amp;&#35;59&#59;45&amp;amp&#59;amp&amp;&#35;59&#59;&amp;amp&#59;&amp;&#35;35&#59;35&amp;&#35;59&#59;59&amp;amp&#59;&amp;&#35;35&#59;59&amp;&#35;59&#59;bootstrap.sh build&amp;amp&#59;amp&amp;&#35;59&#59;amp&amp;amp&#59;&amp;&#35;35&#59;59&amp;&#35;59&#59;&amp;amp&#59;amp&amp;&#35;59&#59;&amp;amp&#59;&amp;&#35;35&#59;35&amp;&#35;59&#59;35&amp;amp&#59;&amp;&#35;35&#59;59&amp;&#35;59&#59;45&amp;amp&#59;amp&amp;&#35;59&#59;&amp;amp&#59;&amp;&#35;35&#59;35&amp;&#35;59&#59;59&amp;amp&#59;&amp;&#35;35&#59;59&amp;&#35;59&#59;doc&amp;amp&#59;amp&amp;&#35;59&#59;amp&amp;amp&#59;&amp;&#35;35&#59;59&amp;&#35;59&#59;&amp;amp&#59;amp&amp;&#35;59&#59;&amp;amp&#59;&amp;&#35;35&#59;35&amp;&#35;59&#59;35&amp;amp&#59;&amp;&#35;35&#59;59&amp;&#35;59&#59;45&amp;amp&#59;amp&amp;&#35;59&#59;&amp;amp&#59;&amp;&#35;35&#59;35&amp;&#35;59&#59;59&amp;amp&#59;&amp;&#35;35&#59;59&amp;&#35;59&#59;archive