cookutils annotate cook.conf @ rev 410

More x86_64 support and show custom configure args in logs
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 14 11:39:33 2012 +0200 (2012-05-14)
parents 95ba9a892bb4
children 71450d322f7b
rev   line source
pankso@2 1 # Cook packages builder configuration file
pankso@2 2 #
pankso@2 3
pankso@2 4 # SliTaz working directory
pankso@314 5 SLITAZ="/home/slitaz"
pankso@2 6
pankso@185 7 # Directory paths for cookutils DB and files.
pankso@2 8 WOK="$SLITAZ/wok"
pankso@2 9 PKGS="$SLITAZ/packages"
pankso@2 10 SRC="$SLITAZ/src"
pankso@2 11 CACHE="$SLITAZ/cache"
pankso@2 12 LOGS="$SLITAZ/log"
pankso@310 13 FEEDS="$SLITAZ/xml"
pankso@2 14 DATA="/usr/share/cook"
pankso@2 15
pankso@185 16 # System packages DB.
pankso@2 17 DB="/var/lib/tazpkg"
pankso@2 18 INSTALLED="$DB/installed"
pankso@2 19
pankso@9 20 # Quality Assurance (empty to disable receipt_quality).
pankso@9 21 QA="0"
pankso@9 22
pankso@204 23 # Automatically cook missing build dependencies (empty to disable).
pankso@204 24 AUTO_COOK=""
pankso@204 25
pankso@2 26 # Hg wok for setup and flavors URL for the Cooker.
pankso@2 27 WOK_URL="http://hg.slitaz.org/wok"
pankso@2 28 FLAVORS_URL="http://hg.slitaz.org/flavors"
pankso@2 29
pankso@405 30 # Cooker URL for RSS feed link (http://localhost/cgi-bin/cooker/cooker.cgi)
pankso@310 31 COOKER_URL="http://cook.slitaz.org/"
pankso@310 32
pankso@2 33 # Translation files to be included in packages.
pankso@183 34 LOCALE=""
pankso@2 35
paul@197 36 # Target host architecture type (Glibc doesn't support i386 anymore).
pankso@183 37 ARCH="i486"
pankso@2 38
pankso@184 39 # Build and host. These options are for cross-compiling. If you specify
pankso@184 40 # both options and BUILD_SYSTEM is different from HOST_SYSTEM, configure
pankso@184 41 # will prepare to cross-compile from BUILD_SYSTEM to be used on HOST_SYSTEM.
pankso@216 42 #BUILD_SYSTEM="$(uname -m)-slitaz-linux"
pankso@216 43 BUILD_SYSTEM="$ARCH-slitaz-linux"
pankso@185 44 HOST_SYSTEM="$ARCH-slitaz-linux"
pankso@2 45
pankso@405 46 # Cross compilation settings. Cross sysroot is used by cross-tools to
pankso@405 47 # set the system. SliTaz standard is to point sysroot to the directory
pankso@405 48 # of the cross toolchain. Example: SYSROOT="/usr/$HOST_SYSTEM"
pankso@405 49 SYSROOT=""
pankso@192 50
pankso@184 51 # SliTaz optimisation flags - Wide compatibility & optimized for ARCH.
pankso@369 52 #
pankso@183 53 # With -O2: binutils: Produce 14.0M Packed 5.5M Compressed 1.2M
pankso@183 54 # With -Os: binutils: Produce 13.4M Packed 4.9M Compressed 1.1M
pankso@369 55 #
paul@382 56 # ARM: don't use -0s but -02
pankso@369 57 # ARM: -mcpu=name [arm9|xscale|...] or -march=name [armv4|armv6|...]
pankso@369 58 #
pankso@373 59 #MAKEFLAGS="-j$(($(grep processor /proc/cpuinfo | wc -l)+1))"
pankso@373 60 MAKEFLAGS="-j$(grep processor /proc/cpuinfo | wc -l)"
pankso@185 61 CFLAGS="-march=$ARCH -Os -pipe -fomit-frame-pointer"
pankso@2 62 CXXFLAGS="$CFLAGS"
pankso@2 63
paul@382 64 # Binutils 2.22 breaks many packages built without LDFLAGS set correctly.
pankso@358 65 #LDFLAGS="-Wl,--copy-dt-needed-entries -lXt"
pankso@358 66
pankso@184 67 # Default tool prefix for Binutils.
pankso@184 68 TOOLPREFIX="${HOST_SYSTEM}-"
pankso@2 69
paul@197 70 # Default arguments for GNU configure. CONFIGURE_ARGS is needed for some
pankso@184 71 # packages since --build and --host is not set at all by cook.site (bug ?).
pankso@2 72 CONFIG_SITE=/etc/slitaz/cook.site
pankso@184 73 CONFIGURE_ARGS="--build=$BUILD_SYSTEM --host=$HOST_SYSTEM"
pankso@2 74
pankso@2 75 # Mirrors URLs. To download sources near your location.
pankso@2 76 GNU_MIRROR="ftp://sunsite.cnlab-switch.ch/mirror/gnu"
pankso@2 77 SF_MIRROR="http://switch.dl.sourceforge.net/sourceforge"
pankso@2 78 XORG_MIRROR="ftp://ftp.solnet.ch/mirror/x.org/pub/individual"
pankso@2 79 GNOME_MIRROR="http://ftp.gnome.org/pub/GNOME/sources"
pankso@29 80
pankso@29 81 # List of packages installed by cook or the Cooker setup.
pankso@302 82 SETUP_PKGS="slitaz-toolchain pkg-config intltool gettext zlib-dev bzip2
pankso@357 83 aufs-utils aufs m4 syslinux-extra pcre pcre-dev bash xorg-dev"
pascal@287 84
pankso@358 85 # List of filesystems into the aufs chroot (to protect / against modifications)
pascal@293 86 # Default tank config:
pankso@369 87 AUFS_MOUNTS="/ /proc /sys /dev/shm /dev/pts /var/cache/tazpkg \
pankso@369 88 /home /home/slitaz/src /home/slitaz/packages"
pankso@405 89
pankso@405 90 # Old way/tazwok compatibility.
pankso@405 91 BUILD_HOST="$HOST_SYSTEM"