User:Jebba/Sbdmock
sbdmock
Build tool
- Install on topo
(05:44:08 PM) tbf: jebba: just make sure to always run the beast with "--debug" switch to see what breaks
maemo-fremantle-armel-extras-devel.cfg
#!/usr/bin/python -tt # Scratchbox target name config_opts['sbtarget'] = 'maemo5-arm' # Target settings. Used if invoked with -u flag config_opts['cputransparency-method'] = 'qemu-arm-sb' #qemu-arm-sb ?? #qemu-arm-0.8.2-sb2' #qemu-arm-cvs-m config_opts['compiler-name'] = 'cs2007q3-glibc2.5-arm7' config_opts['devkits'] = 'perl:debian-etch:qemu:doctools:svn:git' config_opts['dpkg-buildpackage'] = 'dpkg-buildpackage -rfakeroot -e"Automatic Builder <builder@maemo.org>" -sa -D' # Additional apt-get parameters config_opts['apt-get_options'] = '-o APT::Get::AllowUnauthenticated=1' # Command to run after rootstrap unpacking config_opts['after_rootstrap'] = 'fakeroot apt-get -y -q %s install maemo-optify' % config_opts['apt-get_options'] # Location of rootstrap # # You can specify local path to file # example 1: archive located in /scratchbox/packages or in user home directory: # config_opts['rootstrap']="maemo-sdk-rootstrap_4.0_armel.tgz" # # example 2: archive from original site # config_opts['rootstrap']="http://repository.maemo.org/stable/chinook/armel/maemo-sdk-rootstrap_4.0_armel.tgz" # # example 3: custom location inside scratchbox: # # config_opts['rootstrap']="/home/user/rootstraps/maemo-sdk-rootstrap_4.0_armel.tgz" # config_opts['rootstrap']="/scratchbox/packages/maemo-sdk-rootstrap_5.0_armel.tgz" config_opts['sources.list'] = """ # Official SDK repositories: deb http://repository.maemo.org/ fremantle/sdk free non-free deb http://repository.maemo.org/ fremantle/tools free non-free # Development Extras repositories: deb http://repository.maemo.org/extras-devel/ fremantle free non-free # Nokia binaries deb file:/scratchbox/packages/maemo-sdk-nokia-binaries_5_update1 fremantle explicit # Nokia Applications #deb file:/scratchbox/packages/applications_maemo_5_pr/ fremantle explicit """ # Following example should be safe for most cases (resolver*.opendns.com) # If not specified, content of host's /etc/resolv.conf used. #config_opts['files']['/etc/resolv.conf'] = """ #search maemo.org #nameserver 208.67.222.222 #nameserver 208.67.220.220 #""" # Special hacks to /host_usr/bin # This will automatically add "export PATH=/host_usr/bin:$PATH" # and redirection of binary from /usr/bin/binname to /host_usr/bin/binname config_opts['host_usr']['gconftool-2'] = """#!/bin/sh export SBOX_REDIRECT_IGNORE=/usr/bin/gconftool-2 export GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` /usr/bin/gconftool-2 --config-source $GCONF_CONFIG_SOURCE --direct "$@" """ config_opts['env']['DEB_BUILD_OPTIONS']="parallel=4" config_opts['env']['TMP']="/var/tmp" config_opts['env']['TEMP']="/var/tmp" config_opts['env']['TMPDIR']="/var/tmp" #config_opts['env']['http_proxy']="http://proxy.org:3128"