mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

129 lines
3.7 KiB

# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/mnemoc/uclibc/uclibc.conf
# ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
. $confdir/functions.in
uclibc_preparelocale() {
find ./charmaps -name "*.pairs" > codesets.txt
cp LOCALES locales.txt
}
uclibc_kernellinks() {
ln -svf $root/include/linux include/linux
ln -svf $root/include/asm include/asm
ln -svf $root/include/scsi include/scsi
}
if [ $ROCKCFG_CROSSBUILD = 1 ]; then
$(SED) "s,^CROSS=.*,CROSS=$bindir/${arch_target}-,g" Rules.mak
fi
# rulesets
var_append conffiles ' ' $confdir/clean_arch.config
var_append conffiles ' ' /tmp/$$.config
# i'll use this file for the generated rules
rm -f /tmp/$$.config
{
# TARGET_ARCH
cpu="`echo "$arch_machine" | sed -e s/i.86/i386/ `"
echo "X TARGET_$cpu"
echo "X TARGET_ARCH \"$cpu\""
if [ "$arch_bigendian" = "yes" ]; then
echo "X ARCH_BIG_ENDIAN"
else
echo "X ARCH_LITTLE_ENDIAN"
fi
# CONFIG_
if [ "$arch" == "x86" ]; then
case "$ROCKCFG_X86_OPT" in
generic) echo "X CONFIG_GENERIC_386" ;;
i386) echo "X CONFIG_386" ;;
i486) echo "X CONFIG_486" ;;
pentium) echo "X CONFIG_586" ;;
pentium-mmx) echo "X CONFIG_586MMX" ;;
pentiumpro|pentium2)
echo "X CONFIG_686" ;;
pentium3) echo "X CONFIG_PENTIUMIII" ;;
pentium4) echo "X CONFIG_PENTIUM4" ;;
k6*) echo "X CONFIG_K6" ;;
athlon*) echo "X CONFIG_K7" ;;
via-c3*) echo "X CONFIG_CYRIXIII" ;;
esac
fi
# PREFIX
echo "X KERNEL_SOURCE \"$root/usr/src/linux\""
echo "X RUNTIME_PREFIX \"/\""
echo "X DEVEL_PREFIX \"/usr\""
# locale
if [ "$ROCKCFG_DISABLE_NLS" = "0" ]; then
echo "X UCLIBC_HAS_LOCALE"
fi
# util-linux needs it to build some mounts
# FIXME: this has to be done in the oposite way (disable those mounts
# if libc doesn't have support)
echo "X UCLIBC_HAS_RPC"
# echo "X UCLIBC_HAS_FULL_RPC"
# to get rint (iproute2)
echo "X DO_C99_MATH"
# to make sed happy
echo "X ULIBC_HAS_WCHAR"
} > /tmp/$$.config
if [ "$ROCKCFG_DISABLE_NLS" = "0" ]; then
hook_add preconf 5 '( cd extra/locale; uclibc_preparelocale )'
var_append patchfiles ' ' $confdir/make_locale_after_headers.diff
fi
var_append makeopt ' ' "PREFIX=$root"
var_append makeopt ' ' "RUNTIME_PREFIX=/ DEVEL_PREFIX=/usr/"
runconf=0
makeinstopt="$makeopt"
if [ $stagelevel -eq 0 ]; then
var_append patchfiles ' ' $confdir/dont_validate_kernelsource_on_stage0.diff
# FIXME: i don't know why, but if i split this hook, the second disapears
# i wanted the var append at premake-9
hook_add premake 1 "auto_config 2; var_append makeopt ' ' headers"
var_append makeinstopt ' ' install_dev
else
hook_add premake 1 'auto_config 2'
var_append makeinstopt ' ' install
# remove symlinks to avoid shares (install_dev)
hook_add inmake 9 'rm -v include/{asm,linux,scsi}'
# utils (ldd, ldconfig )
hook_add postmake 5 'uclibc_kernellinks'
hook_add postmake 6 'eval "$MAKE $makeopt utils install_utils"'
fi
var_append flist''del '|' "usr/include"