mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 21:56:42 +00:00
eglibc: convert to new package format
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
233dbefde2
commit
fd7c9c2fb8
218
packages/devel/eglibc/package.mk
Normal file
218
packages/devel/eglibc/package.mk
Normal file
@ -0,0 +1,218 @@
|
|||||||
|
################################################################################
|
||||||
|
# This file is part of OpenELEC - http://www.openelec.tv
|
||||||
|
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||||
|
#
|
||||||
|
# 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, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
#
|
||||||
|
# This Program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||||
|
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||||
|
# http://www.gnu.org/copyleft/gpl.html
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
PKG_NAME="eglibc"
|
||||||
|
PKG_VERSION="2.18-23911"
|
||||||
|
PKG_REV="1"
|
||||||
|
PKG_ARCH="any"
|
||||||
|
PKG_LICENSE="GPL"
|
||||||
|
PKG_SITE="http://www.eglibc.org/"
|
||||||
|
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||||
|
PKG_DEPENDS="timezone-data"
|
||||||
|
PKG_BUILD_DEPENDS_TARGET="ccache autotools autoconf-2.68 linux-headers gcc-core"
|
||||||
|
PKG_BUILD_DEPENDS_INIT="eglibc"
|
||||||
|
PKG_PRIORITY="optional"
|
||||||
|
PKG_SECTION="toolchain/devel"
|
||||||
|
PKG_SHORTDESC="eglibc: The Embedded GNU C library"
|
||||||
|
PKG_LONGDESC="The Embedded GLIBC (EGLIBC) is a variant of the GNU C Library (GLIBC) that is designed to work well on embedded systems. EGLIBC strives to be source and binary compatible with GLIBC. EGLIBC's goals include reduced footprint, configurable components, better support for cross-compilation and cross-testing. In contrast to what Ulrich Drepper makes out of GLIBC, in EGLIBC all patches assigned to the FSF will be considered regardless of individual or company affiliation and cooperation is encouraged, as well as communication, civility, and respect among developers."
|
||||||
|
|
||||||
|
PKG_IS_ADDON="no"
|
||||||
|
PKG_AUTORECONF="no"
|
||||||
|
|
||||||
|
if [ "$XBMCPLAYER_DRIVER" = "bcm2835-driver" ]; then
|
||||||
|
PKG_DEPENDS="$PKG_DEPENDS arm-mem"
|
||||||
|
PKG_DEPENDS_INIT="$PKG_DEPENDS_INIT arm-mem:init"
|
||||||
|
fi
|
||||||
|
|
||||||
|
PKG_CONFIGURE_OPTS_TARGET="--libexecdir=/usr/lib/eglibc \
|
||||||
|
--cache-file=config.cache \
|
||||||
|
--disable-profile \
|
||||||
|
--disable-sanity-checks \
|
||||||
|
--enable-add-ons \
|
||||||
|
--enable-bind-now \
|
||||||
|
--with-elf \
|
||||||
|
--with-tls \
|
||||||
|
--with-__thread \
|
||||||
|
--with-binutils=$BUILD/toolchain/bin \
|
||||||
|
--with-headers=$SYSROOT_PREFIX/usr/include \
|
||||||
|
--without-cvs \
|
||||||
|
--without-gd \
|
||||||
|
--enable-obsolete-rpc \
|
||||||
|
--disable-build-nscd \
|
||||||
|
--disable-nscd \
|
||||||
|
--enable-lock-elision"
|
||||||
|
|
||||||
|
if [ "$LINUX" = AMLm1 -o "$LINUX" = AMLm3 ]; then
|
||||||
|
PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_TARGET --enable-kernel=2.6.34"
|
||||||
|
else
|
||||||
|
PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_TARGET --enable-kernel=3.0.0"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$DEBUG" = yes ]; then
|
||||||
|
PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_TARGET --enable-debug"
|
||||||
|
else
|
||||||
|
PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_TARGET --disable-debug"
|
||||||
|
DEBUG_OPTIONS=" OPTION_EGLIBC_MEMUSAGE = n"
|
||||||
|
fi
|
||||||
|
|
||||||
|
NSS_CONF_DIR="$PKG_BUILD/nss"
|
||||||
|
|
||||||
|
EGLIBC_EXCLUDE_BIN="catchsegv getconf iconv iconvconfig ldconfig lddlibc4"
|
||||||
|
EGLIBC_EXCLUDE_BIN="$EGLIBC_EXCLUDE_BIN localedef makedb mtrace pcprofiledump"
|
||||||
|
EGLIBC_EXCLUDE_BIN="$EGLIBC_EXCLUDE_BIN pldd rpcgen sln sotruss sprof tzselect"
|
||||||
|
EGLIBC_EXCLUDE_BIN="$EGLIBC_EXCLUDE_BIN xtrace zdump zic"
|
||||||
|
|
||||||
|
pre_build_target() {
|
||||||
|
cd $PKG_BUILD
|
||||||
|
aclocal --force --verbose
|
||||||
|
autoconf-2.68 --force --verbose
|
||||||
|
cd -
|
||||||
|
}
|
||||||
|
|
||||||
|
pre_configure_target() {
|
||||||
|
# Fails to compile with GCC's link time optimization.
|
||||||
|
strip_lto
|
||||||
|
|
||||||
|
# eglibc dont support GOLD linker.
|
||||||
|
strip_gold
|
||||||
|
|
||||||
|
# Filter out some problematic *FLAGS
|
||||||
|
export CFLAGS=`echo $CFLAGS | sed -e "s|-ffast-math||g"`
|
||||||
|
export CFLAGS=`echo $CFLAGS | sed -e "s|-Ofast|-O2|g"`
|
||||||
|
export CFLAGS=`echo $CFLAGS | sed -e "s|-O.|-O2|g"`
|
||||||
|
|
||||||
|
export LDFLAGS=`echo $LDFLAGS | sed -e "s|-ffast-math||g"`
|
||||||
|
export LDFLAGS=`echo $LDFLAGS | sed -e "s|-Ofast|-O2|g"`
|
||||||
|
export LDFLAGS=`echo $LDFLAGS | sed -e "s|-O.|-O2|g"`
|
||||||
|
|
||||||
|
export LDFLAGS=`echo $LDFLAGS | sed -e "s|-Wl,--as-needed||"`
|
||||||
|
|
||||||
|
unset LD_LIBRARY_PATH
|
||||||
|
|
||||||
|
# set some CFLAGS we need
|
||||||
|
export CFLAGS="$CFLAGS -g -fno-stack-protector -fgnu89-inline"
|
||||||
|
|
||||||
|
# dont build parallel
|
||||||
|
export MAKEFLAGS=-j1
|
||||||
|
|
||||||
|
export BUILD_CC=$HOST_CC
|
||||||
|
export OBJDUMP_FOR_HOST=objdump
|
||||||
|
|
||||||
|
# create configuration
|
||||||
|
cat >option-groups.config <<EOF
|
||||||
|
|
||||||
|
OPTION_EGLIBC_ADVANCED_INET6 = n
|
||||||
|
|
||||||
|
# needed for connman:
|
||||||
|
OPTION_EGLIBC_BACKTRACE = y
|
||||||
|
|
||||||
|
OPTION_EGLIBC_BIG_MACROS = n
|
||||||
|
OPTION_EGLIBC_BSD = n
|
||||||
|
OPTION_EGLIBC_CATGETS = n
|
||||||
|
|
||||||
|
# libiconv replacement:
|
||||||
|
OPTION_EGLIBC_CHARSETS = y
|
||||||
|
|
||||||
|
OPTION_EGLIBC_DB_ALIASES = n
|
||||||
|
OPTION_EGLIBC_LOCALES = n
|
||||||
|
|
||||||
|
# needed for example with glib and Python:
|
||||||
|
OPTION_EGLIBC_LOCALE_CODE = y
|
||||||
|
|
||||||
|
# activeperl fails without libnsl. keep it enabled for now
|
||||||
|
OPTION_EGLIBC_NIS = y
|
||||||
|
OPTION_EGLIBC_NSSWITCH = y
|
||||||
|
OPTION_EGLIBC_RCMD = n
|
||||||
|
|
||||||
|
# needed by eglibc byself (todo):
|
||||||
|
OPTION_EGLIBC_RTLD_DEBUG = y
|
||||||
|
|
||||||
|
# needed for speed (optionally/todo)
|
||||||
|
OPTION_POSIX_REGEXP_GLIBC = y
|
||||||
|
|
||||||
|
# needed for PAM and Mysql:
|
||||||
|
OPTION_EGLIBC_GETLOGIN = y
|
||||||
|
|
||||||
|
# needed for systemd and dropbear:
|
||||||
|
OPTION_EGLIBC_UTMP = y
|
||||||
|
OPTION_EGLIBC_UTMPX = y
|
||||||
|
|
||||||
|
# debugging options:
|
||||||
|
$DEBUG_OPTIONS
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cat >config.cache <<EOF
|
||||||
|
ac_cv_header_cpuid_h=yes
|
||||||
|
libc_cv_forced_unwind=yes
|
||||||
|
libc_cv_c_cleanup=yes
|
||||||
|
libc_cv_gnu89_inline=yes
|
||||||
|
libc_cv_ssp=no
|
||||||
|
libc_cv_ctors_header=yes
|
||||||
|
EOF
|
||||||
|
|
||||||
|
echo "libdir=/usr/lib" >> configparms
|
||||||
|
echo "slibdir=/lib" >> configparms
|
||||||
|
echo "sbindir=/usr/bin" >> configparms
|
||||||
|
echo "rootsbindir=/usr/bin" >> configparms
|
||||||
|
}
|
||||||
|
|
||||||
|
post_makeinstall_target() {
|
||||||
|
# cleanup
|
||||||
|
for i in $EGLIBC_EXCLUDE_BIN; do
|
||||||
|
rm -rf $INSTALL/usr/bin/$i
|
||||||
|
done
|
||||||
|
rm -rf $INSTALL/usr/lib/audit
|
||||||
|
rm -rf $INSTALL/usr/lib/eglibc
|
||||||
|
rm -rf $INSTALL/usr/lib/libc_pic
|
||||||
|
rm -rf $INSTALL/usr/lib/*.o
|
||||||
|
rm -rf $INSTALL/usr/lib/*.map
|
||||||
|
rm -rf $INSTALL/var
|
||||||
|
|
||||||
|
# create default configs
|
||||||
|
mkdir -p $INSTALL/etc
|
||||||
|
cp $PKG_DIR/config/nsswitch.conf $INSTALL/etc
|
||||||
|
cp $PKG_DIR/config/host.conf $INSTALL/etc
|
||||||
|
cp $PKG_DIR/config/gai.conf $INSTALL/etc
|
||||||
|
|
||||||
|
if [ "$TARGET_ARCH" = "arm" -a "$TARGET_FLOAT" = "hard" ]; then
|
||||||
|
ln -sf ld.so $INSTALL/lib/ld-linux.so.3
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
configure_init() {
|
||||||
|
cd $ROOT/$PKG_BUILD
|
||||||
|
rm -rf $ROOT/$PKG_BUILD/.$TARGET_NAME-init
|
||||||
|
}
|
||||||
|
|
||||||
|
make_init() {
|
||||||
|
: # reuse make_target()
|
||||||
|
}
|
||||||
|
|
||||||
|
makeinstall_init() {
|
||||||
|
mkdir -p $INSTALL/lib
|
||||||
|
cp -PR $ROOT/$PKG_BUILD/.$TARGET_NAME/elf/ld*.so* $INSTALL/lib
|
||||||
|
cp $ROOT/$PKG_BUILD/.$TARGET_NAME/libc.so.6 $INSTALL/lib
|
||||||
|
cp $ROOT/$PKG_BUILD/.$TARGET_NAME/math/libm.so.6 $INSTALL/lib
|
||||||
|
cp $ROOT/$PKG_BUILD/.$TARGET_NAME/nptl/libpthread.so.0 $INSTALL/lib
|
||||||
|
|
||||||
|
if [ "$TARGET_ARCH" = "arm" -a "$TARGET_FLOAT" = "hard" ]; then
|
||||||
|
ln -sf ld.so $INSTALL/lib/ld-linux.so.3
|
||||||
|
fi
|
||||||
|
}
|
@ -1,35 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
|
||||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
|
||||||
#
|
|
||||||
# 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, or (at your option)
|
|
||||||
# any later version.
|
|
||||||
#
|
|
||||||
# This Program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
|
||||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
|
||||||
# http://www.gnu.org/copyleft/gpl.html
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
. config/options $1
|
|
||||||
|
|
||||||
EGLIBC_DIR="$BUILD/eglibc-*"
|
|
||||||
|
|
||||||
mkdir -p $INSTALL/lib
|
|
||||||
cp -PR $EGLIBC_DIR/objdir-eglibc/elf/ld*.so* $INSTALL/lib
|
|
||||||
cp $EGLIBC_DIR/objdir-eglibc/libc.so.6 $INSTALL/lib
|
|
||||||
cp $EGLIBC_DIR/objdir-eglibc/math/libm.so.6 $INSTALL/lib
|
|
||||||
cp $EGLIBC_DIR/objdir-eglibc/nptl/libpthread.so.0 $INSTALL/lib
|
|
||||||
|
|
||||||
if [ "$TARGET_ARCH" = "arm" -a "$TARGET_FLOAT" = "hard" ]; then
|
|
||||||
ln -sf ld.so $INSTALL/lib/ld-linux.so.3
|
|
||||||
fi
|
|
@ -1,40 +0,0 @@
|
|||||||
################################################################################
|
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
|
||||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
|
||||||
#
|
|
||||||
# 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, or (at your option)
|
|
||||||
# any later version.
|
|
||||||
#
|
|
||||||
# This Program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
|
||||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
|
||||||
# http://www.gnu.org/copyleft/gpl.html
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
PKG_NAME="eglibc-initramfs"
|
|
||||||
PKG_VERSION=""
|
|
||||||
PKG_REV="1"
|
|
||||||
PKG_ARCH="any"
|
|
||||||
PKG_LICENSE="GPL"
|
|
||||||
PKG_SITE="http://www.eglibc.org/"
|
|
||||||
PKG_URL=""
|
|
||||||
PKG_DEPENDS=""
|
|
||||||
PKG_BUILD_DEPENDS="eglibc"
|
|
||||||
PKG_PRIORITY="optional"
|
|
||||||
PKG_SECTION="initramfs/devel"
|
|
||||||
PKG_SHORTDESC="eglibc: The Embedded GNU C library"
|
|
||||||
PKG_LONGDESC="The Embedded GLIBC (EGLIBC) is a variant of the GNU C Library (GLIBC) that is designed to work well on embedded systems. EGLIBC strives to be source and binary compatible with GLIBC. EGLIBC's goals include reduced footprint, configurable components, better support for cross-compilation and cross-testing. In contrast to what Ulrich Drepper makes out of GLIBC, in EGLIBC all patches assigned to the FSF will be considered regardless of individual or company affiliation and cooperation is encouraged, as well as communication, civility, and respect among developers."
|
|
||||||
PKG_IS_ADDON="no"
|
|
||||||
|
|
||||||
PKG_AUTORECONF="no"
|
|
||||||
|
|
||||||
if [ "$XBMCPLAYER_DRIVER" = "bcm2835-driver" ]; then
|
|
||||||
PKG_DEPENDS="$PKG_DEPENDS arm-mem-initramfs"
|
|
||||||
fi
|
|
@ -25,8 +25,8 @@ PKG_ARCH="any"
|
|||||||
PKG_LICENSE="GPL"
|
PKG_LICENSE="GPL"
|
||||||
PKG_SITE="http://www.openelec.tv"
|
PKG_SITE="http://www.openelec.tv"
|
||||||
PKG_URL=""
|
PKG_URL=""
|
||||||
PKG_DEPENDS="eglibc-initramfs busybox-initramfs linux-initramfs plymouth-lite:init diskdev_cmds:init"
|
PKG_DEPENDS="eglibc:init busybox-initramfs linux-initramfs plymouth-lite:init diskdev_cmds:init"
|
||||||
PKG_BUILD_DEPENDS_TARGET="toolchain eglibc-initramfs busybox-initramfs"
|
PKG_BUILD_DEPENDS_TARGET="toolchain busybox-initramfs"
|
||||||
PKG_PRIORITY="optional"
|
PKG_PRIORITY="optional"
|
||||||
PKG_SECTION="virtual"
|
PKG_SECTION="virtual"
|
||||||
PKG_SHORTDESC="initramfs: Metapackage for installing initramfs"
|
PKG_SHORTDESC="initramfs: Metapackage for installing initramfs"
|
||||||
|
@ -1,158 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
|
||||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
|
||||||
#
|
|
||||||
# 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, or (at your option)
|
|
||||||
# any later version.
|
|
||||||
#
|
|
||||||
# This Program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
|
||||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
|
||||||
# http://www.gnu.org/copyleft/gpl.html
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
. config/options $1
|
|
||||||
|
|
||||||
if [ "$LINUX" = AMLm1 -o "$LINUX" = AMLm3 ]; then
|
|
||||||
KERNEL_VER="2.6.34"
|
|
||||||
else
|
|
||||||
KERNEL_VER="3.0.0"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Fails to compile with GCC's link time optimization.
|
|
||||||
strip_lto
|
|
||||||
|
|
||||||
# eglibc dont support GOLD linker.
|
|
||||||
strip_gold
|
|
||||||
|
|
||||||
# Filter out some problematic *FLAGS
|
|
||||||
CFLAGS=`echo $CFLAGS | sed -e "s|-ffast-math||g"`
|
|
||||||
CFLAGS=`echo $CFLAGS | sed -e "s|-Ofast|-O2|g"`
|
|
||||||
CFLAGS=`echo $CFLAGS | sed -e "s|-O.|-O2|g"`
|
|
||||||
|
|
||||||
LDFLAGS=`echo $LDFLAGS | sed -e "s|-ffast-math||g"`
|
|
||||||
LDFLAGS=`echo $LDFLAGS | sed -e "s|-Ofast|-O2|g"`
|
|
||||||
LDFLAGS=`echo $LDFLAGS | sed -e "s|-O.|-O2|g"`
|
|
||||||
|
|
||||||
LDFLAGS=`echo $LDFLAGS | sed -e "s|-Wl,--as-needed||"`
|
|
||||||
|
|
||||||
unset LD_LIBRARY_PATH
|
|
||||||
|
|
||||||
# set some CFLAGS we need
|
|
||||||
CFLAGS="$CFLAGS -g -fno-stack-protector -fgnu89-inline"
|
|
||||||
|
|
||||||
# dont build parallel
|
|
||||||
MAKEFLAGS=-j1
|
|
||||||
|
|
||||||
export BUILD_CC=$HOST_CC
|
|
||||||
export OBJDUMP_FOR_HOST=objdump
|
|
||||||
|
|
||||||
if [ "$DEBUG" = yes ]; then
|
|
||||||
DEBUG_CONFIG="--enable-debug"
|
|
||||||
else
|
|
||||||
DEBUG_CONFIG="--disable-debug"
|
|
||||||
DEBUG_OPTIONS=" OPTION_EGLIBC_MEMUSAGE = n"
|
|
||||||
fi
|
|
||||||
|
|
||||||
NSS_CONF_DIR=`ls -d $ROOT/$BUILD/eglibc*/nss`
|
|
||||||
|
|
||||||
cd $PKG_BUILD
|
|
||||||
|
|
||||||
aclocal --force --verbose
|
|
||||||
autoconf-2.68 --force --verbose
|
|
||||||
|
|
||||||
mkdir -p objdir-$1 && cd objdir-$1
|
|
||||||
|
|
||||||
# OPTION_EGLIBC_NSSWITCH_FIXED_CONFIG = $NSS_CONF_DIR/fixed-nsswitch.conf
|
|
||||||
# OPTION_EGLIBC_NSSWITCH_FIXED_FUNCTIONS = $NSS_CONF_DIR/fixed-nsswitch.functions
|
|
||||||
|
|
||||||
cat >option-groups.config <<EOF
|
|
||||||
|
|
||||||
OPTION_EGLIBC_ADVANCED_INET6 = n
|
|
||||||
|
|
||||||
# needed for connman:
|
|
||||||
OPTION_EGLIBC_BACKTRACE = y
|
|
||||||
|
|
||||||
OPTION_EGLIBC_BIG_MACROS = n
|
|
||||||
OPTION_EGLIBC_BSD = n
|
|
||||||
OPTION_EGLIBC_CATGETS = n
|
|
||||||
|
|
||||||
# libiconv replacement:
|
|
||||||
OPTION_EGLIBC_CHARSETS = y
|
|
||||||
|
|
||||||
OPTION_EGLIBC_DB_ALIASES = n
|
|
||||||
OPTION_EGLIBC_LOCALES = n
|
|
||||||
|
|
||||||
# needed for example with glib and Python:
|
|
||||||
OPTION_EGLIBC_LOCALE_CODE = y
|
|
||||||
|
|
||||||
# activeperl fails without libnsl. keep it enabled for now
|
|
||||||
OPTION_EGLIBC_NIS = y
|
|
||||||
OPTION_EGLIBC_NSSWITCH = y
|
|
||||||
OPTION_EGLIBC_RCMD = n
|
|
||||||
|
|
||||||
# needed by eglibc byself (todo):
|
|
||||||
OPTION_EGLIBC_RTLD_DEBUG = y
|
|
||||||
|
|
||||||
# needed for speed (optionally/todo)
|
|
||||||
OPTION_POSIX_REGEXP_GLIBC = y
|
|
||||||
|
|
||||||
# needed for PAM and Mysql:
|
|
||||||
OPTION_EGLIBC_GETLOGIN = y
|
|
||||||
|
|
||||||
# needed for systemd and dropbear:
|
|
||||||
OPTION_EGLIBC_UTMP = y
|
|
||||||
OPTION_EGLIBC_UTMPX = y
|
|
||||||
|
|
||||||
# debugging options:
|
|
||||||
$DEBUG_OPTIONS
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cat >config.cache <<EOF
|
|
||||||
ac_cv_header_cpuid_h=yes
|
|
||||||
libc_cv_forced_unwind=yes
|
|
||||||
libc_cv_c_cleanup=yes
|
|
||||||
libc_cv_gnu89_inline=yes
|
|
||||||
libc_cv_ssp=no
|
|
||||||
libc_cv_ctors_header=yes
|
|
||||||
EOF
|
|
||||||
|
|
||||||
echo "libdir=/usr/lib" >> configparms
|
|
||||||
echo "slibdir=/lib" >> configparms
|
|
||||||
echo "sbindir=/usr/bin" >> configparms
|
|
||||||
echo "rootsbindir=/usr/bin" >> configparms
|
|
||||||
|
|
||||||
../configure --host=$TARGET_NAME \
|
|
||||||
--build=$HOST_NAME \
|
|
||||||
--prefix=/usr \
|
|
||||||
--libexecdir=/usr/lib/eglibc \
|
|
||||||
--cache-file=config.cache \
|
|
||||||
--disable-profile \
|
|
||||||
--disable-sanity-checks \
|
|
||||||
--enable-add-ons \
|
|
||||||
--enable-bind-now \
|
|
||||||
--with-elf \
|
|
||||||
--with-tls \
|
|
||||||
--enable-kernel=$KERNEL_VER \
|
|
||||||
--with-__thread \
|
|
||||||
--with-binutils=$BUILD/toolchain/bin \
|
|
||||||
--with-headers=$SYSROOT_PREFIX/usr/include \
|
|
||||||
--without-cvs \
|
|
||||||
--without-gd \
|
|
||||||
--enable-obsolete-rpc \
|
|
||||||
--disable-build-nscd \
|
|
||||||
--disable-nscd \
|
|
||||||
--enable-lock-elision \
|
|
||||||
$DEBUG_CONFIG \
|
|
||||||
|
|
||||||
make
|
|
||||||
$MAKEINSTALL
|
|
@ -1,66 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
|
||||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
|
||||||
#
|
|
||||||
# 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, or (at your option)
|
|
||||||
# any later version.
|
|
||||||
#
|
|
||||||
# This Program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
|
||||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
|
||||||
# http://www.gnu.org/copyleft/gpl.html
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
. config/options $1
|
|
||||||
|
|
||||||
mkdir -p $INSTALL/lib
|
|
||||||
cp -P $PKG_BUILD/objdir-$1/elf/ld*.so* $INSTALL/lib
|
|
||||||
cp $PKG_BUILD/objdir-$1/libc.so.6 $INSTALL/lib
|
|
||||||
cp $PKG_BUILD/objdir-$1/math/libm.so.6 $INSTALL/lib
|
|
||||||
|
|
||||||
if [ "$TARGET_ARCH" = "arm" -a "$TARGET_FLOAT" = "hard" ]; then
|
|
||||||
ln -sf ld.so $INSTALL/lib/ld-linux.so.3
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p $INSTALL/usr/lib
|
|
||||||
cp $PKG_BUILD/objdir-$1/crypt/libcrypt.so.1 $INSTALL/usr/lib
|
|
||||||
cp $PKG_BUILD/objdir-$1/dlfcn/libdl.so.2 $INSTALL/usr/lib
|
|
||||||
cp $PKG_BUILD/objdir-$1/nis/libnsl.so.1 $INSTALL/usr/lib
|
|
||||||
cp $PKG_BUILD/objdir-$1/nis/libnss_compat.so.2 $INSTALL/usr/lib
|
|
||||||
cp $PKG_BUILD/objdir-$1/nss/libnss_files.so.2 $INSTALL/usr/lib
|
|
||||||
cp $PKG_BUILD/objdir-$1/resolv/libnss_dns.so.2 $INSTALL/usr/lib
|
|
||||||
cp $PKG_BUILD/objdir-$1/resolv/libresolv.so.2 $INSTALL/usr/lib
|
|
||||||
cp $PKG_BUILD/objdir-$1/rt/librt.so.1 $INSTALL/usr/lib
|
|
||||||
cp $PKG_BUILD/objdir-$1/nptl/libpthread.so.0 $INSTALL/usr/lib
|
|
||||||
cp $PKG_BUILD/objdir-$1/login/libutil.so.1 $INSTALL/usr/lib # e.g. for utmp support, needed by PAM_filter
|
|
||||||
|
|
||||||
|
|
||||||
[ "$DEVTOOLS" = yes ] && cp $PKG_BUILD/objdir-$1/nptl_db/libthread_db.so.1 $INSTALL/usr/lib # for GDB
|
|
||||||
|
|
||||||
mkdir -p $INSTALL/usr/bin
|
|
||||||
cp $PKG_BUILD/objdir-$1/elf/ldd $INSTALL/usr/bin
|
|
||||||
sed -i 's%/usr/bin/bash%/bin/sh%g' $INSTALL/usr/bin/ldd
|
|
||||||
|
|
||||||
cp $PKG_BUILD/objdir-$1/nss/getent $INSTALL/usr/bin
|
|
||||||
|
|
||||||
cp $PKG_BUILD/objdir-$1/locale/locale $INSTALL/usr/bin
|
|
||||||
|
|
||||||
# libiconv replacement:
|
|
||||||
mkdir -p $INSTALL/usr/lib/gconv
|
|
||||||
cp $PKG_BUILD/iconvdata/gconv-modules $INSTALL/usr/lib/gconv
|
|
||||||
cp $PKG_BUILD/objdir-$1/iconvdata/*.so $INSTALL/usr/lib/gconv
|
|
||||||
|
|
||||||
mkdir -p $INSTALL/etc
|
|
||||||
cp $PKG_DIR/config/nsswitch.conf $INSTALL/etc
|
|
||||||
cp $PKG_DIR/config/host.conf $INSTALL/etc
|
|
||||||
cp $PKG_DIR/config/gai.conf $INSTALL/etc
|
|
||||||
cp $PKG_BUILD/sunrpc/etc.rpc $INSTALL/etc/rpc
|
|
@ -1,40 +0,0 @@
|
|||||||
################################################################################
|
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
|
||||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
|
||||||
#
|
|
||||||
# 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, or (at your option)
|
|
||||||
# any later version.
|
|
||||||
#
|
|
||||||
# This Program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
|
||||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
|
||||||
# http://www.gnu.org/copyleft/gpl.html
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
PKG_NAME="eglibc"
|
|
||||||
PKG_VERSION="2.18-23911"
|
|
||||||
PKG_REV="1"
|
|
||||||
PKG_ARCH="any"
|
|
||||||
PKG_LICENSE="GPL"
|
|
||||||
PKG_SITE="http://www.eglibc.org/"
|
|
||||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
|
|
||||||
PKG_DEPENDS="timezone-data"
|
|
||||||
PKG_BUILD_DEPENDS="ccache autotools autoconf-2.68 linux-headers gcc-core"
|
|
||||||
PKG_PRIORITY="optional"
|
|
||||||
PKG_SECTION="toolchain/devel"
|
|
||||||
PKG_SHORTDESC="eglibc: The Embedded GNU C library"
|
|
||||||
PKG_LONGDESC="The Embedded GLIBC (EGLIBC) is a variant of the GNU C Library (GLIBC) that is designed to work well on embedded systems. EGLIBC strives to be source and binary compatible with GLIBC. EGLIBC's goals include reduced footprint, configurable components, better support for cross-compilation and cross-testing. In contrast to what Ulrich Drepper makes out of GLIBC, in EGLIBC all patches assigned to the FSF will be considered regardless of individual or company affiliation and cooperation is encouraged, as well as communication, civility, and respect among developers."
|
|
||||||
PKG_IS_ADDON="no"
|
|
||||||
|
|
||||||
PKG_AUTORECONF="no"
|
|
||||||
|
|
||||||
if [ "$XBMCPLAYER_DRIVER" = "bcm2835-driver" ]; then
|
|
||||||
PKG_DEPENDS="$PKG_DEPENDS arm-mem"
|
|
||||||
fi
|
|
Loading…
x
Reference in New Issue
Block a user