cookutils view cook.conf @ rev 425

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