mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
gcc, gcc-core, gcc-final, gcc-initramfs: convert to new package format
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
5a40ed915d
commit
19207cafa8
@ -27,7 +27,7 @@ PKG_SITE="http://www.eglibc.org/"
|
||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||
PKG_DEPENDS_TARGET="timezone-data"
|
||||
PKG_DEPENDS_INIT=""
|
||||
PKG_BUILD_DEPENDS_TARGET="ccache autotools autoconf-2.68 linux-headers gcc-core"
|
||||
PKG_BUILD_DEPENDS_TARGET="ccache autotools autoconf-2.68 linux-headers gcc:bootstrap"
|
||||
PKG_BUILD_DEPENDS_INIT="eglibc"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="toolchain/devel"
|
||||
|
@ -1,28 +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
|
||||
|
||||
GCC_DIR="$BUILD/gcc-*"
|
||||
|
||||
mkdir -p $INSTALL/lib
|
||||
cp -P $GCC_DIR/objdir-gcc-final/$TARGET_NAME/libgcc/libgcc_s.so* $INSTALL/lib
|
@ -1,36 +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="gcc-initramfs"
|
||||
PKG_VERSION=""
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://gcc.gnu.org/"
|
||||
PKG_URL=""
|
||||
PKG_DEPENDS=""
|
||||
PKG_BUILD_DEPENDS="gcc-final"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="initramfs/lang"
|
||||
PKG_SHORTDESC="gcc: The GNU Compiler Collection Version 4 (aka GNU C Compiler)"
|
||||
PKG_LONGDESC="This package contains the GNU Compiler Collection. It includes compilers for the languages C, C++, Objective C, Fortran 95, Java and others ... This GCC contains the Stack-Smashing Protector Patch which can be enabled with the -fstack-protector command-line option. More information about it ca be found at http://www.research.ibm.com/trl/projects/security/ssp/."
|
||||
PKG_IS_ADDON="no"
|
||||
|
||||
PKG_AUTORECONF="no"
|
190
packages/lang/gcc/package.mk
Normal file
190
packages/lang/gcc/package.mk
Normal file
@ -0,0 +1,190 @@
|
||||
################################################################################
|
||||
# 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="gcc"
|
||||
PKG_VERSION="4.7.3"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://gcc.gnu.org/"
|
||||
PKG_URL="ftp://ftp.gnu.org/gnu/gcc/$PKG_NAME-$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
||||
PKG_DEPENDS=""
|
||||
PKG_BUILD_DEPENDS="ccache autoconf-2.64 binutils gmp:host mpfr mpc cloog ppl:host"
|
||||
PKG_BUILD_DEPENDS_BOOTSTRAP="ccache autoconf-2.64 binutils gmp:host mpfr mpc cloog ppl:host"
|
||||
PKG_BUILD_DEPENDS_TARGET="gcc:host"
|
||||
PKG_BUILD_DEPENDS_HOST="ccache autoconf-2.64 binutils gmp:host mpfr mpc cloog ppl:host eglibc"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="lang"
|
||||
PKG_SHORTDESC="gcc: The GNU Compiler Collection Version 4 (aka GNU C Compiler)"
|
||||
PKG_LONGDESC="This package contains the GNU Compiler Collection. It includes compilers for the languages C, C++, Objective C, Fortran 95, Java and others ... This GCC contains the Stack-Smashing Protector Patch which can be enabled with the -fstack-protector command-line option. More information about it ca be found at http://www.research.ibm.com/trl/projects/security/ssp/."
|
||||
|
||||
PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="no"
|
||||
|
||||
BOOTSTRAP_CONFIGURE_OPTS="--host=$HOST_NAME \
|
||||
--build=$HOST_NAME \
|
||||
--target=$TARGET_NAME \
|
||||
--prefix=$ROOT/$TOOLCHAIN \
|
||||
--with-sysroot=$SYSROOT_PREFIX \
|
||||
--with-gmp=$ROOT/$TOOLCHAIN \
|
||||
--with-mpfr=$ROOT/$TOOLCHAIN \
|
||||
--with-mpc=$ROOT/$TOOLCHAIN \
|
||||
--with-ppl=$ROOT/$TOOLCHAIN \
|
||||
--disable-ppl-version-check \
|
||||
--with-cloog=$ROOT/$TOOLCHAIN \
|
||||
--with-gnu-as \
|
||||
--with-gnu-ld \
|
||||
--enable-languages=c \
|
||||
--disable-__cxa_atexit \
|
||||
--disable-libada \
|
||||
--disable-libmudflap \
|
||||
--disable-libatomic \
|
||||
--enable-gold \
|
||||
--enable-ld=default \
|
||||
--enable-plugin \
|
||||
--enable-lto \
|
||||
--disable-libquadmath \
|
||||
--disable-libssp \
|
||||
--disable-libgomp \
|
||||
--enable-cloog-backend=isl \
|
||||
--disable-shared \
|
||||
--disable-multilib \
|
||||
--disable-threads \
|
||||
--without-headers \
|
||||
--with-newlib \
|
||||
--disable-decimal-float \
|
||||
$GCC_OPTS \
|
||||
--disable-nls"
|
||||
|
||||
PKG_CONFIGURE_OPTS_HOST="--target=$TARGET_NAME \
|
||||
--with-sysroot=$SYSROOT_PREFIX \
|
||||
--with-gmp=$ROOT/$TOOLCHAIN \
|
||||
--with-mpfr=$ROOT/$TOOLCHAIN \
|
||||
--with-mpc=$ROOT/$TOOLCHAIN \
|
||||
--with-ppl=$ROOT/$TOOLCHAIN \
|
||||
--disable-ppl-version-check \
|
||||
--with-cloog=$ROOT/$TOOLCHAIN \
|
||||
--enable-languages=${TOOLCHAIN_LANGUAGES} \
|
||||
--with-gnu-as \
|
||||
--with-gnu-ld \
|
||||
--enable-__cxa_atexit \
|
||||
--disable-libada \
|
||||
--enable-decimal-float \
|
||||
--disable-libmudflap \
|
||||
--disable-libssp \
|
||||
--disable-multilib \
|
||||
--disable-libatomic \
|
||||
--enable-gold \
|
||||
--enable-ld=default \
|
||||
--enable-plugin \
|
||||
--enable-lto \
|
||||
--disable-libquadmath \
|
||||
--enable-cloog-backend=isl \
|
||||
--enable-tls \
|
||||
--enable-shared \
|
||||
--enable-c99 \
|
||||
--enable-long-long \
|
||||
--enable-threads=posix \
|
||||
--disable-libstdcxx-pch \
|
||||
--enable-clocale=gnu \
|
||||
$GCC_OPTS \
|
||||
--disable-nls"
|
||||
|
||||
pre_configure_bootstrap() {
|
||||
setup_toolchain host
|
||||
}
|
||||
|
||||
makeinstall_bootstrap() {
|
||||
make install
|
||||
}
|
||||
|
||||
post_make_host() {
|
||||
# fix wrong link
|
||||
rm -rf $TARGET_NAME/libgcc/libgcc_s.so
|
||||
ln -sf libgcc_s.so.1 $TARGET_NAME/libgcc/libgcc_s.so
|
||||
|
||||
if [ ! "$DEBUG" = yes ]; then
|
||||
$TARGET_STRIP $TARGET_NAME/libgcc/libgcc_s.so*
|
||||
$TARGET_STRIP $TARGET_NAME/libgomp/.libs/libgomp.so*
|
||||
$TARGET_STRIP $TARGET_NAME/libitm/.libs/libitm.so*
|
||||
$TARGET_STRIP $TARGET_NAME/libstdc++-v3/src/.libs/libstdc++.so*
|
||||
fi
|
||||
}
|
||||
|
||||
post_makeinstall_host() {
|
||||
cp -PR $TARGET_NAME/libstdc++-v3/src/.libs/libstdc++.so* $SYSROOT_PREFIX/usr/lib
|
||||
|
||||
GCC_VERSION=`$ROOT/$TOOLCHAIN/$TARGET_NAME/bin/gcc -dumpversion`
|
||||
DATE="0501`echo $GCC_VERSION | sed 's/\([0-9]\)/0\1/g' | sed 's/\.//g'`"
|
||||
CROSS_CC=$TARGET_CC-$GCC_VERSION
|
||||
CROSS_CXX=$TARGET_CXX-$GCC_VERSION
|
||||
|
||||
rm -f $TARGET_CC
|
||||
|
||||
cat > $TARGET_CC <<EOF
|
||||
#!/bin/sh
|
||||
$ROOT/$TOOLCHAIN/bin/ccache $CROSS_CC "\$@"
|
||||
EOF
|
||||
|
||||
chmod +x $TARGET_CC
|
||||
|
||||
# To avoid cache trashing
|
||||
touch -c -t $DATE $CROSS_CC
|
||||
|
||||
[ ! -f "$CROSS_CXX" ] && mv $TARGET_CXX $CROSS_CXX
|
||||
|
||||
cat > $TARGET_CXX <<EOF
|
||||
#!/bin/sh
|
||||
$ROOT/$TOOLCHAIN/bin/ccache $CROSS_CXX "\$@"
|
||||
EOF
|
||||
|
||||
chmod +x $TARGET_CXX
|
||||
|
||||
# To avoid cache trashing
|
||||
touch -c -t $DATE $CROSS_CXX
|
||||
}
|
||||
|
||||
configure_target() {
|
||||
: # reuse configure_host()
|
||||
}
|
||||
|
||||
make_target() {
|
||||
: # reuse make_host()
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
mkdir -p $INSTALL/usr/lib
|
||||
cp -P $ROOT/$PKG_BUILD/.$HOST_NAME/$TARGET_NAME/libgcc/libgcc_s.so* $INSTALL/usr/lib
|
||||
cp -P $ROOT/$PKG_BUILD/.$HOST_NAME/$TARGET_NAME/libgomp/.libs/libgomp.so* $INSTALL/usr/lib
|
||||
cp -P $ROOT/$PKG_BUILD/.$HOST_NAME/$TARGET_NAME/libstdc++-v3/src/.libs/libstdc++.so* $INSTALL/usr/lib
|
||||
}
|
||||
|
||||
configure_init() {
|
||||
: # reuse configure_host()
|
||||
}
|
||||
|
||||
make_init() {
|
||||
: # reuse make_host()
|
||||
}
|
||||
|
||||
makeinstall_init() {
|
||||
mkdir -p $INSTALL/lib
|
||||
cp -P $ROOT/$PKG_BUILD/.$HOST_NAME/$TARGET_NAME/libgcc/libgcc_s.so* $INSTALL/lib
|
||||
}
|
@ -25,7 +25,7 @@ PKG_ARCH="i386 x86_64"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://dev.gentoo.org/~spock/projects/uvesafb/"
|
||||
PKG_URL="http://dev.gentoo.org/~spock/projects/uvesafb/archive/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
||||
PKG_DEPENDS=""
|
||||
PKG_DEPENDS_INIT="gcc:init"
|
||||
PKG_BUILD_DEPENDS_INIT="toolchain"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="system"
|
||||
|
@ -1,70 +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
|
||||
|
||||
$SCRIPTS/unpack gcc
|
||||
|
||||
setup_toolchain host
|
||||
|
||||
cd $BUILD/gcc*
|
||||
|
||||
#autoconf-2.64
|
||||
|
||||
mkdir -p objdir-$1 && cd objdir-$1
|
||||
../configure --host=$HOST_NAME \
|
||||
--build=$HOST_NAME \
|
||||
--target=$TARGET_NAME \
|
||||
--prefix=$ROOT/$TOOLCHAIN \
|
||||
--with-sysroot=$SYSROOT_PREFIX \
|
||||
--with-gmp=$ROOT/$TOOLCHAIN \
|
||||
--with-mpfr=$ROOT/$TOOLCHAIN \
|
||||
--with-mpc=$ROOT/$TOOLCHAIN \
|
||||
--with-ppl=$ROOT/$TOOLCHAIN \
|
||||
--disable-ppl-version-check \
|
||||
--with-cloog=$ROOT/$TOOLCHAIN \
|
||||
--with-gnu-as \
|
||||
--with-gnu-ld \
|
||||
--enable-languages=c \
|
||||
--disable-__cxa_atexit \
|
||||
--disable-libada \
|
||||
--disable-libmudflap \
|
||||
--disable-libatomic \
|
||||
--enable-gold \
|
||||
--enable-ld=default \
|
||||
--enable-plugin \
|
||||
--enable-lto \
|
||||
--disable-libquadmath \
|
||||
--disable-libssp \
|
||||
--disable-libgomp \
|
||||
--enable-cloog-backend=isl \
|
||||
--disable-shared \
|
||||
--disable-multilib \
|
||||
--disable-threads \
|
||||
--without-headers \
|
||||
--with-newlib \
|
||||
--disable-decimal-float \
|
||||
$GCC_OPTS \
|
||||
--disable-nls
|
||||
|
||||
make
|
||||
make install
|
@ -1,36 +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="gcc-core"
|
||||
PKG_VERSION=""
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://gcc.gnu.org/"
|
||||
PKG_URL=""
|
||||
PKG_DEPENDS=""
|
||||
PKG_BUILD_DEPENDS="ccache autoconf-2.64 binutils gmp:host mpfr mpc cloog ppl:host"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="toolchain/lang"
|
||||
PKG_SHORTDESC="gcc: The GNU Compiler Collection Version 4 (aka GNU C Compiler)"
|
||||
PKG_LONGDESC="This package contains the GNU Compiler Collection. It includes compilers for the languages C, C++, Objective C, Fortran 95, Java and others ... This GCC contains the Stack-Smashing Protector Patch which can be enabled with the -fstack-protector command-line option. More information about it ca be found at http://www.research.ibm.com/trl/projects/security/ssp/."
|
||||
PKG_IS_ADDON="no"
|
||||
|
||||
PKG_AUTORECONF="no"
|
@ -1,107 +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
|
||||
|
||||
$SCRIPTS/unpack gcc
|
||||
|
||||
setup_toolchain host
|
||||
|
||||
cd $BUILD/gcc*
|
||||
mkdir -p objdir-$1 && cd objdir-$1
|
||||
../configure --host=$HOST_NAME \
|
||||
--build=$HOST_NAME \
|
||||
--target=$TARGET_NAME \
|
||||
--prefix=$ROOT/$TOOLCHAIN \
|
||||
--with-sysroot=$SYSROOT_PREFIX \
|
||||
--with-gmp=$ROOT/$TOOLCHAIN \
|
||||
--with-mpfr=$ROOT/$TOOLCHAIN \
|
||||
--with-mpc=$ROOT/$TOOLCHAIN \
|
||||
--with-ppl=$ROOT/$TOOLCHAIN \
|
||||
--disable-ppl-version-check \
|
||||
--with-cloog=$ROOT/$TOOLCHAIN \
|
||||
--enable-languages=${TOOLCHAIN_LANGUAGES} \
|
||||
--with-gnu-as \
|
||||
--with-gnu-ld \
|
||||
--enable-__cxa_atexit \
|
||||
--disable-libada \
|
||||
--enable-decimal-float \
|
||||
--disable-libmudflap \
|
||||
--disable-libssp \
|
||||
--disable-multilib \
|
||||
--disable-libatomic \
|
||||
--enable-gold \
|
||||
--enable-ld=default \
|
||||
--enable-plugin \
|
||||
--enable-lto \
|
||||
--disable-libquadmath \
|
||||
--enable-cloog-backend=isl \
|
||||
--enable-tls \
|
||||
--enable-shared \
|
||||
--enable-c99 \
|
||||
--enable-long-long \
|
||||
--enable-threads=posix \
|
||||
--disable-libstdcxx-pch \
|
||||
--enable-clocale=gnu \
|
||||
$GCC_OPTS \
|
||||
--disable-nls
|
||||
|
||||
make
|
||||
|
||||
# fix wrong link
|
||||
rm -rf $TARGET_NAME/libgcc/libgcc_s.so
|
||||
ln -sf libgcc_s.so.1 $TARGET_NAME/libgcc/libgcc_s.so
|
||||
|
||||
if [ ! "$DEBUG" = yes ]; then
|
||||
$TARGET_STRIP $TARGET_NAME/libgcc/libgcc_s.so*
|
||||
$TARGET_STRIP $TARGET_NAME/libgomp/.libs/libgomp.so*
|
||||
$TARGET_STRIP $TARGET_NAME/libitm/.libs/libitm.so*
|
||||
$TARGET_STRIP $TARGET_NAME/libstdc++-v3/src/.libs/libstdc++.so*
|
||||
fi
|
||||
|
||||
make install
|
||||
cp -PR $TARGET_NAME/libstdc++-v3/src/.libs/libstdc++.so* $SYSROOT_PREFIX/usr/lib
|
||||
|
||||
GCC_VERSION=`$ROOT/$TOOLCHAIN/$TARGET_NAME/bin/gcc -dumpversion`
|
||||
DATE="0501`echo $GCC_VERSION | sed 's/\([0-9]\)/0\1/g' | sed 's/\.//g'`"
|
||||
CROSS_CC=$TARGET_CC-$GCC_VERSION
|
||||
CROSS_CXX=$TARGET_CXX-$GCC_VERSION
|
||||
|
||||
rm -f $TARGET_CC
|
||||
cat > $TARGET_CC <<EOF
|
||||
#!/bin/sh
|
||||
$ROOT/$TOOLCHAIN/bin/ccache $CROSS_CC "\$@"
|
||||
EOF
|
||||
chmod +x $TARGET_CC
|
||||
|
||||
# To avoid cache trashing
|
||||
touch -c -t $DATE $CROSS_CC
|
||||
|
||||
[ ! -f "$CROSS_CXX" ] && mv $TARGET_CXX $CROSS_CXX
|
||||
cat > $TARGET_CXX <<EOF
|
||||
#!/bin/sh
|
||||
$ROOT/$TOOLCHAIN/bin/ccache $CROSS_CXX "\$@"
|
||||
EOF
|
||||
chmod +x $TARGET_CXX
|
||||
|
||||
# To avoid cache trashing
|
||||
touch -c -t $DATE $CROSS_CXX
|
@ -1,28 +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/usr/lib
|
||||
cp -P $BUILD/gcc*/objdir-$1*/$TARGET_NAME/libgcc/libgcc_s.so* $INSTALL/usr/lib
|
||||
cp -P $BUILD/gcc*/objdir-$1*/$TARGET_NAME/libgomp/.libs/libgomp.so* $INSTALL/usr/lib
|
||||
cp -P $BUILD/gcc*/objdir-$1*/$TARGET_NAME/libstdc++-v3/src/.libs/libstdc++.so* $INSTALL/usr/lib
|
@ -1,36 +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="gcc-final"
|
||||
PKG_VERSION=""
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://gcc.gnu.org/"
|
||||
PKG_URL=""
|
||||
PKG_DEPENDS=""
|
||||
PKG_BUILD_DEPENDS="ccache autoconf-2.64 binutils gmp:host mpfr mpc cloog ppl:host eglibc"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="toolchain/lang"
|
||||
PKG_SHORTDESC="gcc: The GNU Compiler Collection Version 4 (aka GNU C Compiler)"
|
||||
PKG_LONGDESC="This package contains the GNU Compiler Collection. It includes compilers for the languages C, C++, Objective C, Fortran 95, Java and others ... This GCC contains the Stack-Smashing Protector Patch which can be enabled with the -fstack-protector command-line option. More information about it ca be found at http://www.research.ibm.com/trl/projects/security/ssp/."
|
||||
PKG_IS_ADDON="no"
|
||||
|
||||
PKG_AUTORECONF="no"
|
@ -1,36 +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="gcc"
|
||||
PKG_VERSION="4.7.3"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://gcc.gnu.org/"
|
||||
PKG_URL="ftp://ftp.gnu.org/gnu/gcc/$PKG_NAME-$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
||||
PKG_DEPENDS=""
|
||||
PKG_BUILD_DEPENDS="ccache"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="toolchain/lang"
|
||||
PKG_SHORTDESC="gcc: The GNU Compiler Collection Version 4 (aka GNU C Compiler)"
|
||||
PKG_LONGDESC="This package contains the GNU Compiler Collection. It includes compilers for the languages C, C++, Objective C, Fortran 95, Java and others ... This GCC contains the Stack-Smashing Protector Patch which can be enabled with the -fstack-protector command-line option. More information about it ca be found at http://www.research.ibm.com/trl/projects/security/ssp/."
|
||||
PKG_IS_ADDON="no"
|
||||
|
||||
PKG_AUTORECONF="no"
|
@ -27,7 +27,7 @@ PKG_SITE="http://www.openelec.tv"
|
||||
PKG_URL=""
|
||||
PKG_DEPENDS=""
|
||||
#PKG_BUILD_DEPENDS="make xz sed pkg-config autotools gcc-final bison:host flex cmake jam scons yasm nasm"
|
||||
PKG_BUILD_DEPENDS="make xz sed pkg-config autotools gcc-final bison:host flex cmake scons yasm nasm"
|
||||
PKG_BUILD_DEPENDS="make xz sed pkg-config autotools gcc:host bison:host flex cmake scons yasm nasm"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="toolchain/devel"
|
||||
PKG_SHORTDESC="toolchain: OpenELEC.tv' toolchain"
|
||||
|
@ -25,7 +25,7 @@ PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://www.meego.com"
|
||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
||||
PKG_DEPENDS_INIT="gcc-initramfs zlib:init"
|
||||
PKG_DEPENDS_INIT="gcc:init zlib:init"
|
||||
PKG_BUILD_DEPENDS_INIT="toolchain zlib:init libpng"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="tools"
|
||||
|
@ -105,7 +105,7 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION"
|
||||
|
||||
# Basissystem...
|
||||
$SCRIPTS/install eglibc
|
||||
$SCRIPTS/install gcc-final
|
||||
$SCRIPTS/install gcc
|
||||
$SCRIPTS/install linux system
|
||||
$SCRIPTS/install busybox
|
||||
$SCRIPTS/install util-linux
|
||||
|
Loading…
x
Reference in New Issue
Block a user