cookutils annotate cook.conf @ rev 580

cook: loglimit can be disabled (thanks ernia)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 31 08:53:36 2013 +0100 (2013-01-31)
parents c3e5084142d5
children f66c5d0bbc67
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
pankso@449 36 # List of packages installed in build chroot by cook or the Cooker setup.
pankso@449 37 SETUP_PKGS="slitaz-toolchain pkg-config intltool gettext zlib-dev bzip2
mojo@510 38 aufs-utils aufs m4 syslinux-extra pcre pcre-dev bash xorg-dev mercurial"
pankso@449 39
paul@197 40 # Target host architecture type (Glibc doesn't support i386 anymore).
pankso@183 41 ARCH="i486"
pankso@2 42
pankso@184 43 # Build and host. These options are for cross-compiling. If you specify
pankso@184 44 # both options and BUILD_SYSTEM is different from HOST_SYSTEM, configure
pankso@184 45 # will prepare to cross-compile from BUILD_SYSTEM to be used on HOST_SYSTEM.
pankso@216 46 #BUILD_SYSTEM="$(uname -m)-slitaz-linux"
pankso@216 47 BUILD_SYSTEM="$ARCH-slitaz-linux"
pankso@185 48 HOST_SYSTEM="$ARCH-slitaz-linux"
pankso@2 49
paul@455 50 # SliTaz uses the sysroot method, this tells GCC to consider dir as the root
pankso@441 51 # of a tree that contains a (subset of) the root filesystem of the target
pankso@441 52 # operating system. Target system headers, libraries and run-time object
pankso@441 53 # files will be searched in there. Cook will use the tools and sysroot in
pankso@441 54 # the CROSS_TREE for cross compiling. Example: CROSS_TREE="/cross/$ARCH"
pankso@441 55 CROSS_TREE=""
pankso@192 56
pankso@449 57 # List of packages installed in chroot by cook or the Cooker setup.
pankso@449 58 # When cross compiling we need some build system tools installed and
pankso@449 59 # some cross-compiled bdeps installed in: $PREFIX (cross host root)
pankso@449 60 CROSS_SETUP="slitaz-toolchain zlib-dev bzip2 aufs-utils aufs bash m4 \
pankso@449 61 autoconf automake libtool gettext"
pankso@449 62
pankso@184 63 # SliTaz optimisation flags - Wide compatibility & optimized for ARCH.
pankso@369 64 #
pankso@183 65 # With -O2: binutils: Produce 14.0M Packed 5.5M Compressed 1.2M
pankso@183 66 # With -Os: binutils: Produce 13.4M Packed 4.9M Compressed 1.1M
pankso@369 67 #
paul@382 68 # ARM: don't use -0s but -02
pankso@369 69 # ARM: -mcpu=name [arm9|xscale|...] or -march=name [armv4|armv6|...]
pankso@441 70 # x86_64: CFLAGS="-march=nocona -Os -pipe"
pankso@369 71 #
pankso@373 72 #MAKEFLAGS="-j$(($(grep processor /proc/cpuinfo | wc -l)+1))"
pankso@373 73 MAKEFLAGS="-j$(grep processor /proc/cpuinfo | wc -l)"
pankso@185 74 CFLAGS="-march=$ARCH -Os -pipe -fomit-frame-pointer"
pankso@2 75 CXXFLAGS="$CFLAGS"
pankso@2 76
paul@382 77 # Binutils 2.22 breaks many packages built without LDFLAGS set correctly.
pankso@358 78 #LDFLAGS="-Wl,--copy-dt-needed-entries -lXt"
pankso@358 79
pankso@184 80 # Default tool prefix for Binutils.
pankso@184 81 TOOLPREFIX="${HOST_SYSTEM}-"
pankso@2 82
paul@197 83 # Default arguments for GNU configure. CONFIGURE_ARGS is needed for some
pankso@184 84 # packages since --build and --host is not set at all by cook.site (bug ?).
pankso@2 85 CONFIG_SITE=/etc/slitaz/cook.site
pankso@184 86 CONFIGURE_ARGS="--build=$BUILD_SYSTEM --host=$HOST_SYSTEM"
pankso@2 87
pankso@2 88 # Mirrors URLs. To download sources near your location.
pankso@2 89 GNU_MIRROR="ftp://sunsite.cnlab-switch.ch/mirror/gnu"
pankso@2 90 SF_MIRROR="http://switch.dl.sourceforge.net/sourceforge"
pankso@2 91 XORG_MIRROR="ftp://ftp.solnet.ch/mirror/x.org/pub/individual"
pankso@2 92 GNOME_MIRROR="http://ftp.gnome.org/pub/GNOME/sources"
pankso@29 93
pankso@358 94 # List of filesystems into the aufs chroot (to protect / against modifications)
pascal@293 95 # Default tank config:
pankso@369 96 AUFS_MOUNTS="/ /proc /sys /dev/shm /dev/pts /var/cache/tazpkg \
pankso@369 97 /home /home/slitaz/src /home/slitaz/packages"
pankso@405 98
pankso@405 99 # Old way/tazwok compatibility.
pankso@405 100 BUILD_HOST="$HOST_SYSTEM"
pankso@421 101 SOURCES_REPOSITORY=$SRC
pascal@580 102
pascal@580 103 # Maximum log size in MB per receipt function call (unset it to disable)
pascal@580 104 DEFAULT_LOG_LIMIT=50