cookutils annotate cook.conf @ rev 382

Edit cross files
author Paul Issott <paul@slitaz.org>
date Sat May 12 22:03:46 2012 +0100 (2012-05-12)
parents e8c2be9bd8fe
children a20fac3c915f
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@310 30 # Cooker URL for RSS feed link (http://localhost/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@192 46 # Old way/tazwok compatibility.
pankso@192 47 BUILD_HOST="$HOST_SYSTEM"
pankso@192 48
pankso@184 49 # SliTaz optimisation flags - Wide compatibility & optimized for ARCH.
pankso@369 50 #
pankso@183 51 # With -O2: binutils: Produce 14.0M Packed 5.5M Compressed 1.2M
pankso@183 52 # With -Os: binutils: Produce 13.4M Packed 4.9M Compressed 1.1M
pankso@369 53 #
paul@382 54 # ARM: don't use -0s but -02
pankso@369 55 # ARM: -mcpu=name [arm9|xscale|...] or -march=name [armv4|armv6|...]
pankso@369 56 #
pankso@373 57 #MAKEFLAGS="-j$(($(grep processor /proc/cpuinfo | wc -l)+1))"
pankso@373 58 MAKEFLAGS="-j$(grep processor /proc/cpuinfo | wc -l)"
pankso@185 59 CFLAGS="-march=$ARCH -Os -pipe -fomit-frame-pointer"
pankso@2 60 CXXFLAGS="$CFLAGS"
pankso@2 61
paul@382 62 # Binutils 2.22 breaks many packages built without LDFLAGS set correctly.
pankso@358 63 #LDFLAGS="-Wl,--copy-dt-needed-entries -lXt"
pankso@358 64
pankso@184 65 # Default tool prefix for Binutils.
pankso@184 66 TOOLPREFIX="${HOST_SYSTEM}-"
pankso@2 67
paul@197 68 # Default arguments for GNU configure. CONFIGURE_ARGS is needed for some
pankso@184 69 # packages since --build and --host is not set at all by cook.site (bug ?).
pankso@2 70 CONFIG_SITE=/etc/slitaz/cook.site
pankso@184 71 CONFIGURE_ARGS="--build=$BUILD_SYSTEM --host=$HOST_SYSTEM"
pankso@2 72
pankso@2 73 # Mirrors URLs. To download sources near your location.
pankso@2 74 GNU_MIRROR="ftp://sunsite.cnlab-switch.ch/mirror/gnu"
pankso@2 75 SF_MIRROR="http://switch.dl.sourceforge.net/sourceforge"
pankso@2 76 XORG_MIRROR="ftp://ftp.solnet.ch/mirror/x.org/pub/individual"
pankso@2 77 GNOME_MIRROR="http://ftp.gnome.org/pub/GNOME/sources"
pankso@29 78
pankso@29 79 # List of packages installed by cook or the Cooker setup.
pankso@302 80 SETUP_PKGS="slitaz-toolchain pkg-config intltool gettext zlib-dev bzip2
pankso@357 81 aufs-utils aufs m4 syslinux-extra pcre pcre-dev bash xorg-dev"
pascal@287 82
pankso@358 83 # List of filesystems into the aufs chroot (to protect / against modifications)
pascal@293 84 # Default tank config:
pankso@369 85 AUFS_MOUNTS="/ /proc /sys /dev/shm /dev/pts /var/cache/tazpkg \
pankso@369 86 /home /home/slitaz/src /home/slitaz/packages"