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.
128 lines
3.1 KiB
128 lines
3.1 KiB
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
# |
|
# Filename: package/.../uclibc/uclibc.conf |
|
# Copyright (C) 2006 - 2007 The OpenSDE Project |
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
# |
|
# More information can be found in the files COPYING and README. |
|
# |
|
# 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; version 2 of the License. A copy of the |
|
# GNU General Public License can be found in the file COPYING. |
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
. $confdir/conffiles-functions.in |
|
|
|
# generated set |
|
var_append conffiles ' ' $builddir/.config |
|
# add custom/target configuration from $targetdir |
|
if [ -e $targetdir/uclibc.config ] ; then |
|
var_append conffiles ' ' $targetdir/uclibc.config |
|
fi |
|
|
|
default_config() { |
|
local uC_arch="$1" |
|
echo "X TARGET_$uC_arch" |
|
|
|
if [ "$arch_bigendian" = "yes" ]; then |
|
echo "X ARCH_BIG_ENDIAN" |
|
echo "X ARCH_WANTS_BIG_ENDIAN" |
|
else |
|
echo "X ARCH_LITTLE_ENDIAN" |
|
echo "X ARCH_WANTS_LITTLE_ENDIAN" |
|
fi |
|
|
|
# PREFIX |
|
if atstage toolchain; then |
|
echo "X KERNEL_SOURCE \"$base/build/$SDECFG_ID/usr\"" |
|
else |
|
echo "X KERNEL_SOURCE \"$root/usr\"" |
|
fi |
|
echo "X RUNTIME_PREFIX \"/\"" |
|
echo "X DEVEL_PREFIX \"/usr\"" |
|
|
|
if [ "$SDECFG_STATIC" = 0 ]; then |
|
echo "X SHARED_LIB_LOADER_PREFIX \"/lib\"" |
|
|
|
# ld.so preload |
|
echo "X LDSO_PRELOAD_FILE_SUPPORT" |
|
else |
|
echo "O HAVE_SHARED" |
|
fi |
|
|
|
# locale |
|
if [ "$SDECFG_DISABLE_NLS" = "0" ]; then |
|
echo "X UCLIBC_HAS_LOCALE" |
|
fi |
|
# turning off locale will break ncurses |
|
|
|
# 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 reiserfsprogs happy |
|
echo "X UCLIBC_HAS_GLIBC_CUSTOM_PRINTF" |
|
# to make sed happy |
|
echo "X UCLIBC_HAS_WCHAR" |
|
|
|
# I want V6 |
|
echo "X UCLIBC_HAS_IPV6" |
|
|
|
# needed for attr |
|
echo "X UCLIBC_HAS_FTW" |
|
|
|
# needed for acl (among others) |
|
echo "X UCLIBC_HAS_GETTEXT_AWARENESS" |
|
|
|
# make make happy :) |
|
echo "X MALLOC_GLIBC_COMPAT" |
|
|
|
echo "X UCLIBC_HAS_GNU_GETOPT" |
|
echo "X UCLIBC_HAS_GLOB" |
|
echo "X UCLIBC_HAS_FLOATS" |
|
} |
|
|
|
runconf=0 |
|
hook_add premake 5 "uclibc_config" |
|
uclibc_config() { |
|
local uC_arch=$( echo $arch | arch2uname ) |
|
|
|
# generate default_config |
|
default_config $uC_arch > $builddir/.config |
|
|
|
eval $MAKE defconfig ARCH=$uC_arch |
|
conffiles_loop 2 TARGET_ARCH=$uC_arch |
|
} |
|
|
|
var_remove_regex makeopt ' ' 'prefix=[^ ]*' |
|
if atstage toolchain; then |
|
var_append makeopt ' ' PREFIX=$base/build/$SDECFG_ID |
|
else |
|
var_append makeopt ' ' "PREFIX=$root" |
|
fi |
|
makeinstopt="$makeopt -j 1" |
|
var_append makeopt ' ' "CROSS=${archprefix}" |
|
|
|
if atstage toolchain; then |
|
var_append makeopt ' ' "headers" |
|
|
|
var_append makeinstopt ' ' "install_dev" |
|
else |
|
var_append makeopt ' ' "pregen" |
|
var_append makeopt ' ' "all" |
|
var_append makeopt ' ' "utils" |
|
|
|
var_append makeinstopt ' ' "install_dev" |
|
var_append makeinstopt ' ' "install_runtime" |
|
var_append makeinstopt ' ' "install_utils" |
|
fi |
|
|
|
hook_add postdoc 5 'cp -v .config .config.* $root/$docdir/' |
|
|
|
|