Vorbereitung zur Version V963. Einarbeitung des neuesen CLFS Books
git-svn-id: svn://svn.compuextreme.de/Viitor/V963/ViitorMake@5987 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
75976b053e
commit
4a6def9649
@ -72,12 +72,9 @@ SRCPATH=Base/Utilities
|
|||||||
|
|
||||||
(( MKPKG = $MKPKG | 8 ))
|
(( MKPKG = $MKPKG | 8 ))
|
||||||
(( MKPKG = $MKPKG | 16 ))
|
(( MKPKG = $MKPKG | 16 ))
|
||||||
(( MKPKG = $MKPKG | 128 ))
|
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
SrcPatch $MAKEDIR/binutils* $LFSSOURCE/$SRCPATH/binutils-*-posix*.patch*
|
echo "Nothing to do for premk()"
|
||||||
SrcPatch $MAKEDIR/binutils* $LFSSOURCE/$SRCPATH/binutils-*-branch_update-*.patch*
|
|
||||||
SrcPatch $MAKEDIR/binutils* $LFSSOURCE/$SRCPATH/binutils-*-genscripts_multilib-*.patch*
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
@ -92,6 +89,7 @@ mk() {
|
|||||||
--enable-shared \
|
--enable-shared \
|
||||||
--enable-64-bit-bfd
|
--enable-64-bit-bfd
|
||||||
make -j $NUMCPU configure-host
|
make -j $NUMCPU configure-host
|
||||||
|
sed -i "s/\(^MAKEINFO = \).*$/\1\/usr\/bin\/makeinfo/" Makefile
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
make -j $NUMCPU install
|
make -j $NUMCPU install
|
||||||
cp -v ../binutils*/include/libiberty.h /tools/include
|
cp -v ../binutils*/include/libiberty.h /tools/include
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
||||||
#dieses Framework wird im CVS Repository
|
#dieses Framework wird im CVS Repository
|
||||||
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
|
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
|
||||||
#
|
#
|
||||||
#Lage dieser Datei im Archiv: $HeadURL$
|
#Lage dieser Datei im Archiv: $HeadURL: svn://www.compuextreme.de/Viitor/V962/ViitorMake/BaseBuild/Basesys/gmp $
|
||||||
#
|
#
|
||||||
#(c) 2003 Harald Kueller, Germany
|
#(c) 2003 Harald Kueller, Germany
|
||||||
#This program is free software; you can redistribute it and/or
|
#This program is free software; you can redistribute it and/or
|
||||||
@ -55,96 +55,52 @@
|
|||||||
# Wichtig bei packeten mit postinstallroutine, die software aus dem
|
# Wichtig bei packeten mit postinstallroutine, die software aus dem
|
||||||
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
||||||
# 64 : sourcetree aufräumen nach packeterstellung unterbinden.
|
# 64 : sourcetree aufräumen nach packeterstellung unterbinden.
|
||||||
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
#
|
||||||
# kümmern
|
#Module zur Erstellung des Packetes: cloog-ppl
|
||||||
|
#Quelle der Source Archive: http://cloog.org
|
||||||
#Module zur Erstellung des Packetes:
|
|
||||||
#Quelle der Source Archive:
|
|
||||||
#Kurzbeschreibung:
|
#Kurzbeschreibung:
|
||||||
|
#Polyhedra support Funktionen.
|
||||||
#
|
#
|
||||||
#
|
#Letzte Änderung von: $Author: kueller $
|
||||||
#Letzte Änderung von: $Author$
|
#Datum der letzten Änderung: $Date: 2008-05-02 13:13:24 +0000 (Fr, 02 Mai 2008) $
|
||||||
#Datum der letzten Änderung: $Date$
|
#Version der Datei: $Revision: 4220 $
|
||||||
#Version der Datei: $Revision$
|
|
||||||
#
|
#
|
||||||
|
|
||||||
|
#Pfad zum Basis-Sourcetree :
|
||||||
SRCPATH=Base/Lib
|
SRCPATH=Base/Lib
|
||||||
|
|
||||||
(( MKPKG = $MKPKG | 8 ))
|
(( MKPKG = $MKPKG | 8 ))
|
||||||
(( MKPKG = $MKPKG | 16 ))
|
(( MKPKG = $MKPKG | 16 ))
|
||||||
|
|
||||||
premk() {
|
#Wenn das usgepackte Verzeichnis vom Paketnamen unterschiedlich ist
|
||||||
ARCH=`echo $TARGET|cut -d"-" -f 1`
|
#SRCDIR=<PFAD>
|
||||||
ARCH32=`echo $TARGET32|cut -d"-" -f 1`
|
|
||||||
mkdir ../build-glibc
|
|
||||||
cd ../build-glibc
|
|
||||||
}
|
|
||||||
|
|
||||||
mk32() {
|
|
||||||
echo "libc_cv_forced_unwind=yes" > config.cache
|
premk() {
|
||||||
echo "libc_cv_c_cleanup=yes" >> config.cache
|
cp -v configure{,.orig}
|
||||||
echo "libc_cv_gnu99_inline=yes" >> config.cache
|
sed -e "/LD_LIBRARY_PATH=/d" \
|
||||||
BUILD_CC="gcc" \
|
configure.orig >configure
|
||||||
CC="${TARGET}-gcc ${BUILDOPTIONS32}" \
|
|
||||||
AR="${TARGET}-ar" \
|
|
||||||
RANLIB="${TARGET}-ranlib" \
|
|
||||||
CFLAGS="-march=$ARCH32 -mtune=generic -g -O2" \
|
|
||||||
../glibc*/configure --prefix=/tools \
|
|
||||||
--host=$TARGET32 \
|
|
||||||
--build=$TARGET \
|
|
||||||
--disable-profile \
|
|
||||||
--enable-add-ons \
|
|
||||||
--with-tls \
|
|
||||||
--enable-kernel=2.6.0 \
|
|
||||||
--with-__thread \
|
|
||||||
--with-binutils=/cross-tools/bin \
|
|
||||||
--with-headers=/tools/include \
|
|
||||||
--cache-file=config.cache
|
|
||||||
sed -i "s/\(^MAKEINFO = makeinfo\)/\1 --force/" config.make
|
|
||||||
make -j $NUMCPU
|
|
||||||
make -j $NUMCPU install
|
|
||||||
make install
|
|
||||||
cd ../glibc*
|
|
||||||
rm -r ../build-glibc/
|
|
||||||
mkdir ../build-glibc
|
|
||||||
cd ../build-glibc
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
echo "libc_cv_forced_unwind=yes" > config.cache
|
LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
|
||||||
echo "libc_cv_c_cleanup=yes" >> config.cache
|
./configure --prefix=/cross-tools \
|
||||||
echo "libc_cv_gnu99_inline=yes" >> config.cache
|
--enable-shared \
|
||||||
if [ ${MK64BIT} == "true" ]; then
|
--with-bits=gmp \
|
||||||
if echo $ARCH|grep -q sparc; then
|
--with-gmp=/cross-tools \
|
||||||
echo "libc_cv_sparc64_tls=yes" >>config.cache
|
--with-ppl=/cross-tools
|
||||||
fi
|
|
||||||
else
|
CheckError "Configurescript failed !" 1
|
||||||
BUILDOPTIONS=$BUILDOPTIONS" -march=i486"
|
|
||||||
fi
|
# Make-Optionen eintragen
|
||||||
echo "slibdir=/tools/$LIBDIR" >> configparms
|
|
||||||
BUILD_CC="gcc" \
|
|
||||||
CC="${TARGET}-gcc ${BUILDOPTIONS}" \
|
|
||||||
AR="${TARGET}-ar" \
|
|
||||||
RANLIB="${TARGET}-ranlib" \
|
|
||||||
../glibc*/configure --prefix=/tools \
|
|
||||||
--host=$TARGET \
|
|
||||||
--build=$HOSTSYS \
|
|
||||||
--libdir=/tools/$LIBDIR \
|
|
||||||
--disable-profile \
|
|
||||||
--enable-add-ons \
|
|
||||||
--with-tls \
|
|
||||||
--enable-kernel=2.6.0 \
|
|
||||||
--with-__thread \
|
|
||||||
--with-binutils=/cross-tools/bin \
|
|
||||||
--with-headers=/tools/include \
|
|
||||||
--cache-file=config.cache
|
|
||||||
sed -i "s/\(^MAKEINFO = makeinfo\)/\1 --force/" config.make
|
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
|
CheckError "Makeprocess failed !" 1
|
||||||
|
|
||||||
|
# Make install Optionen eintragen
|
||||||
make -j $NUMCPU install
|
make -j $NUMCPU install
|
||||||
make install
|
CheckError "Make install process failed !" 1
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
cd ../glibc*
|
echo "Nothing to do for postmk()"
|
||||||
rm -r ../build-glibc
|
|
||||||
}
|
}
|
@ -3,7 +3,10 @@
|
|||||||
16 crosschain/ncurses
|
16 crosschain/ncurses
|
||||||
16 crosschain/gmp
|
16 crosschain/gmp
|
||||||
16 crosschain/mpfr
|
16 crosschain/mpfr
|
||||||
|
16 crosschain/mpc
|
||||||
|
16 crosschain/ppl
|
||||||
|
16 crosschain/cloog-ppl
|
||||||
16 crosschain/binutils
|
16 crosschain/binutils
|
||||||
17 crosschain/gcc
|
17 crosschain/gcc
|
||||||
16 crosschain/glibc
|
16 crosschain/eglibc
|
||||||
16 crosschain/gcc
|
16 crosschain/gcc
|
||||||
|
@ -72,11 +72,12 @@ SRCPATH=Base/Lib
|
|||||||
|
|
||||||
(( MKPKG = $MKPKG | 8 ))
|
(( MKPKG = $MKPKG | 8 ))
|
||||||
(( MKPKG = $MKPKG | 16 ))
|
(( MKPKG = $MKPKG | 16 ))
|
||||||
(( MKPKG = $MKPKG | 128 ))
|
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
ARCH=`echo $TARGET|cut -d"-" -f 1`
|
ARCH=`echo $TARGET|cut -d"-" -f 1`
|
||||||
ARCH32=`echo $TARGET32|cut -d"-" -f 1`
|
ARCH32=`echo $TARGET32|cut -d"-" -f 1`
|
||||||
|
echo "Using ARCH=$ARCH and ARCH32=$ARCH32"
|
||||||
|
read
|
||||||
cp -v Makeconfig{,.orig}
|
cp -v Makeconfig{,.orig}
|
||||||
sed -e 's/-lgcc_eh//g' Makeconfig.orig >Makeconfig
|
sed -e 's/-lgcc_eh//g' Makeconfig.orig >Makeconfig
|
||||||
mkdir ../build-eglibc
|
mkdir ../build-eglibc
|
||||||
@ -88,6 +89,7 @@ mk32() {
|
|||||||
libc_cv_forced_unwind=yes
|
libc_cv_forced_unwind=yes
|
||||||
libc_cv_c_cleanup=yes
|
libc_cv_c_cleanup=yes
|
||||||
libc_cv_gnu89_inline=yes
|
libc_cv_gnu89_inline=yes
|
||||||
|
libc_cv_ssp=no
|
||||||
EOF
|
EOF
|
||||||
BUILD_CC="gcc" CC="${TARGET}-gcc ${BUILDOPTIONS32}" \
|
BUILD_CC="gcc" CC="${TARGET}-gcc ${BUILDOPTIONS32}" \
|
||||||
AR="${TARGET}-ar" \
|
AR="${TARGET}-ar" \
|
||||||
@ -105,7 +107,11 @@ EOF
|
|||||||
--with-headers=/tools/include \
|
--with-headers=/tools/include \
|
||||||
--cache-file=config.cache
|
--cache-file=config.cache
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
|
sed -i "s/\(^MAKEINFO =.*$\)/\1 --force/" config.make
|
||||||
make -j $NUMCPU install
|
make -j $NUMCPU install
|
||||||
|
make -j $NUMCPU install
|
||||||
|
echo "32Bit Build Ready"
|
||||||
|
read
|
||||||
cd ../eglibc*
|
cd ../eglibc*
|
||||||
rm -r ../build-eglibc/
|
rm -r ../build-eglibc/
|
||||||
mkdir ../build-eglibc
|
mkdir ../build-eglibc
|
||||||
@ -117,11 +123,14 @@ mk() {
|
|||||||
libc_cv_forced_unwind=yes
|
libc_cv_forced_unwind=yes
|
||||||
libc_cv_c_cleanup=yes
|
libc_cv_c_cleanup=yes
|
||||||
libc_cv_gnu89_inline=yes
|
libc_cv_gnu89_inline=yes
|
||||||
|
libc_cv_ssp=no
|
||||||
EOF
|
EOF
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
if [ "$MK64BIT" == "true" ]; then
|
||||||
echo "slibdir=/tools/lib64" >>configparms
|
echo "slibdir=/tools/lib64" >>configparms
|
||||||
ADDOPTIONS="--libdir=/tools/lib64"
|
ADDOPTIONS="--libdir=/tools/lib64"
|
||||||
fi
|
fi
|
||||||
|
echo "Using ARCH=$ARCH and ARCH32=$ARCH32"
|
||||||
|
read
|
||||||
BUILD_CC="gcc" CC="${TARGET}-gcc ${BUILDOPTIONS}" \
|
BUILD_CC="gcc" CC="${TARGET}-gcc ${BUILDOPTIONS}" \
|
||||||
AR="${TARGET}-ar" \
|
AR="${TARGET}-ar" \
|
||||||
RANLIB="${TARGET}-ranlib" \
|
RANLIB="${TARGET}-ranlib" \
|
||||||
@ -138,10 +147,14 @@ EOF
|
|||||||
--with-headers=/tools/include \
|
--with-headers=/tools/include \
|
||||||
--cache-file=config.cache
|
--cache-file=config.cache
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
|
sed -i "s/\(^MAKEINFO =.*$\)/\1 --force/" config.make
|
||||||
|
make -j $NUMCPU install
|
||||||
make -j $NUMCPU install
|
make -j $NUMCPU install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
|
echo "build ready"
|
||||||
|
read
|
||||||
cd ../eglibc*
|
cd ../eglibc*
|
||||||
rm -r ../build-eglibc
|
rm -r ../build-eglibc
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,6 @@ SRCPATH=Base/Development
|
|||||||
|
|
||||||
(( MKPKG = $MKPKG | 8 ))
|
(( MKPKG = $MKPKG | 8 ))
|
||||||
(( MKPKG = $MKPKG | 16 ))
|
(( MKPKG = $MKPKG | 16 ))
|
||||||
(( MKPKG = $MKPKG | 128 ))
|
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
if [ ${MK64BIT} == "true" ]; then
|
if [ ${MK64BIT} == "true" ]; then
|
||||||
@ -81,16 +80,13 @@ premk() {
|
|||||||
LIBDIR=lib
|
LIBDIR=lib
|
||||||
fi
|
fi
|
||||||
ARCH=`echo $TARGET|cut -d"-" -f 1`
|
ARCH=`echo $TARGET|cut -d"-" -f 1`
|
||||||
SrcPatch $MAKEDIR/gcc* $LFSSOURCE/$SRCPATH/gcc-*-branch_update-*.patch*
|
|
||||||
SrcPatch $MAKEDIR/gcc* $LFSSOURCE/$SRCPATH/gcc-*-specs-*.patch*
|
|
||||||
SrcPatch $MAKEDIR/gcc* $LFSSOURCE/$SRCPATH/gcc-*-posix-*.patch*
|
|
||||||
if [ "$ARCH" == "sparc64" ]; then
|
if [ "$ARCH" == "sparc64" ]; then
|
||||||
OUTFILE="gcc/config/sparc/linux.h gcc/config/sparc/linux64.h"
|
OUTFILE="gcc/config/sparc/linux.h gcc/config/sparc/linux64.h"
|
||||||
else
|
else
|
||||||
OUTFILE="gcc/config/linux.h"
|
OUTFILE="gcc/config/linux.h"
|
||||||
fi
|
fi
|
||||||
for i in $OUTFILE; do
|
for i in $OUTFILE; do
|
||||||
echo -en '\n#undef STANDARD_INCLUDE_DIR\n#define STANDARD_INCLUDE_DIR "/tools/include/" \n\n' >>$i
|
echo -en '#undef STANDARD_INCLUDE_DIR\n#define STANDARD_INCLUDE_DIR "/tools/include/" \n\n' >>$i
|
||||||
echo -en '\n#undef STANDARD_STARTFILE_PREFIX_1\n#define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/"\n' >>$i
|
echo -en '\n#undef STANDARD_STARTFILE_PREFIX_1\n#define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/"\n' >>$i
|
||||||
echo -en '\n#undef STANDARD_STARTFILE_PREFIX_2\n#define STANDARD_STARTFILE_PREFIX_2 ""\n' >>$i
|
echo -en '\n#undef STANDARD_STARTFILE_PREFIX_2\n#define STANDARD_STARTFILE_PREFIX_2 ""\n' >>$i
|
||||||
done
|
done
|
||||||
@ -122,6 +118,8 @@ mk() {
|
|||||||
--disable-shared \
|
--disable-shared \
|
||||||
--with-mpfr=/cross-tools \
|
--with-mpfr=/cross-tools \
|
||||||
--with-gmp=/cross-tools \
|
--with-gmp=/cross-tools \
|
||||||
|
--with-ppl=/cross-tools \
|
||||||
|
--with-cloog=/cross-tools \
|
||||||
--without-headers \
|
--without-headers \
|
||||||
--with-newlib \
|
--with-newlib \
|
||||||
--disable-decimal-float \
|
--disable-decimal-float \
|
||||||
@ -130,8 +128,8 @@ mk() {
|
|||||||
--disable-libssp \
|
--disable-libssp \
|
||||||
--disable-threads \
|
--disable-threads \
|
||||||
--enable-languages=c
|
--enable-languages=c
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU all-gcc all-target-libgcc
|
||||||
make -j $NUMCPU install
|
make -j $NUMCPU install-gcc install-target-libgcc
|
||||||
else
|
else
|
||||||
AR=ar \
|
AR=ar \
|
||||||
LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
|
LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
|
||||||
@ -148,6 +146,8 @@ mk() {
|
|||||||
--with-mpfr=/cross-tools \
|
--with-mpfr=/cross-tools \
|
||||||
--with-gmp=/cross-tools \
|
--with-gmp=/cross-tools \
|
||||||
--enable-c99 \
|
--enable-c99 \
|
||||||
|
--with-ppl=/cross-tools \
|
||||||
|
--with-cloog=/cross-tools \
|
||||||
--enable-long-long \
|
--enable-long-long \
|
||||||
--enable-threads=posix
|
--enable-threads=posix
|
||||||
make -j $NUMCPU AS_FOR_TARGET="${TARGET}-as" \
|
make -j $NUMCPU AS_FOR_TARGET="${TARGET}-as" \
|
||||||
|
@ -82,12 +82,9 @@ premk() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
CPPFLAGS=-fexceptions \
|
||||||
CXX="g++ ${BUILDOPTIONS}" \
|
./configure --prefix=/cross-tools \
|
||||||
./configure --host=$TARGET \
|
--enable-cxx
|
||||||
--prefix=/cross-tools \
|
|
||||||
--enable-cxx \
|
|
||||||
--enable-mpbsd
|
|
||||||
|
|
||||||
CheckError "Configurescript failed !" 1
|
CheckError "Configurescript failed !" 1
|
||||||
|
|
||||||
|
103
BaseBuild/crosschain/mpc
Normal file
103
BaseBuild/crosschain/mpc
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
||||||
|
#dieses Framework wird im CVS Repository
|
||||||
|
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
|
||||||
|
#
|
||||||
|
#Lage dieser Datei im Archiv: $HeadURL: svn://www.compuextreme.de/Viitor/V962/ViitorMake/BaseBuild/Basesys/gmp $
|
||||||
|
#
|
||||||
|
#(c) 2003 Harald Kueller, Germany
|
||||||
|
#This program is free software; you can redistribute it and/or
|
||||||
|
#modify ist 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.
|
||||||
|
#
|
||||||
|
#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 this program; if not write to the Free Software Foundation,
|
||||||
|
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
#
|
||||||
|
#Dies ist ein Module zur Verwendung mit genpkg. Die Erzeugung eines
|
||||||
|
#Viitor Linux Packetes wird über die Funktionen premk, mk und postmk
|
||||||
|
#gesteuert. premk() dient zur Vorbereitung des Sourcecodes. Hier können
|
||||||
|
#diverse Änderungen am sourcecode (mit awk/sed usw.) vorgenommen werden
|
||||||
|
#mk() umfasst die source Konfiguration und das Übersetzten des source
|
||||||
|
#codes. Auch die Installation muß von mk erledigt werden. Hier gild dass
|
||||||
|
#die Installation immer nach $TMPROOT erfolgen soll (meisst kann das mit
|
||||||
|
#"make DESTDIR=$TMPROOT install" angestossen werden). postmk kann
|
||||||
|
#vor der packeterstellung noch einiges am installationtree ändern. postmk
|
||||||
|
#läuft nachdem die Packetabhängigkeiten erstellt wurden.
|
||||||
|
#Das Verhalten von genpkg kann über die Variable MKPKG gesteuert werden.
|
||||||
|
#Hier müssen FLAGS zur Steuerung gesetzt werden. Folgende Flags werden
|
||||||
|
#erkannt:
|
||||||
|
#
|
||||||
|
# 1 : Package Erzeugung erzwingen. Packet wird, auch wenn es schon
|
||||||
|
# vorhanden ist, ohne weitere rückfragen neu Erzeugt.
|
||||||
|
# 2 : Package Installation erzwingen. Installpkg wird mit -f aufgerufen.
|
||||||
|
# Das bewirkt, das installpkg keine rückfragen bei der installation
|
||||||
|
# Stellt, und das packet in jedemfall (neu) installiert.
|
||||||
|
# 4 : Sourcepacket nicht nach MAKEDIR entpacken. Ist dieses Flag gesetzt
|
||||||
|
# muss sich das Module selber um das Entpacken der sourcedateien kümmern.
|
||||||
|
# vor allem wichtig bei Packeten, für die es keine source.tgz gibt
|
||||||
|
# (z.B. aus dem CVS generierte Packete).
|
||||||
|
# 8 : Erstellung des Packetes aus $TMPROOT wird unterdrückt. Dies ist bei
|
||||||
|
# manchen Sonderfällen möglich - wenn sich z.B. der Packetnamen nicht
|
||||||
|
# aus dem Namen des sourcearchives ableiten lässt. Packet sollte in
|
||||||
|
# so einem Fall in der postmk() Funktion erstellt werden.
|
||||||
|
# 16 : Packet wird nicht installiert. Bei Packeten wie tar oder bash kann
|
||||||
|
# die installation mittelst installpkg probleme machen.
|
||||||
|
# 32 : Dependics File so erzeugen, das die Abhängigkeiten bei der installation
|
||||||
|
# erfüllt sein müssen. installpkg bricht in so einem fall bei fehlenden
|
||||||
|
# packeten die installation ab, und gibt nicht "nur" warnmeldungen aus.
|
||||||
|
# Wichtig bei packeten mit postinstallroutine, die software aus dem
|
||||||
|
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
||||||
|
# 64 : sourcetree aufräumen nach packeterstellung unterbinden.
|
||||||
|
#
|
||||||
|
#Module zur Erstellung des Packetes: mpc
|
||||||
|
#Quelle der Source Archive: http://www.multiprecision.org/
|
||||||
|
#Kurzbeschreibung:
|
||||||
|
#Library zur Berechnung von Komplexen Zahlen mit hoher präzition und
|
||||||
|
#korrekter rundung
|
||||||
|
#
|
||||||
|
#Letzte Änderung von: $Author: kueller $
|
||||||
|
#Datum der letzten Änderung: $Date: 2008-05-02 13:13:24 +0000 (Fr, 02 Mai 2008) $
|
||||||
|
#Version der Datei: $Revision: 4220 $
|
||||||
|
#
|
||||||
|
|
||||||
|
#Pfad zum Basis-Sourcetree :
|
||||||
|
SRCPATH=Base/Lib
|
||||||
|
|
||||||
|
(( MKPKG = $MKPKG | 8 ))
|
||||||
|
(( MKPKG = $MKPKG | 16 ))
|
||||||
|
|
||||||
|
#Wenn das usgepackte Verzeichnis vom Paketnamen unterschiedlich ist
|
||||||
|
#SRCDIR=<PFAD>
|
||||||
|
|
||||||
|
|
||||||
|
premk() {
|
||||||
|
echo "Nothing to do for premk()"
|
||||||
|
}
|
||||||
|
|
||||||
|
mk() {
|
||||||
|
LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
|
||||||
|
./configure --prefix=/cross-tools \
|
||||||
|
--with-gmp=/cross-tools \
|
||||||
|
--with-mpfr=/cross-tools
|
||||||
|
|
||||||
|
CheckError "Configurescript failed !" 1
|
||||||
|
|
||||||
|
# Make-Optionen eintragen
|
||||||
|
make -j $NUMCPU
|
||||||
|
CheckError "Makeprocess failed !" 1
|
||||||
|
|
||||||
|
# Make install Optionen eintragen
|
||||||
|
make -j $NUMCPU install
|
||||||
|
CheckError "Make install process failed !" 1
|
||||||
|
}
|
||||||
|
|
||||||
|
postmk() {
|
||||||
|
echo "Nothing to do for postmk()"
|
||||||
|
}
|
@ -82,10 +82,7 @@ premk() {
|
|||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
|
LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
|
||||||
CC="gcc ${BUILDOPTIONS}" \
|
./configure --prefix=/cross-tools \
|
||||||
CXX="g++ ${BUILDOPTIONS}" \
|
|
||||||
./configure --host=$TARGET \
|
|
||||||
--prefix=/cross-tools \
|
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--with-gmp=/cross-tools
|
--with-gmp=/cross-tools
|
||||||
|
|
||||||
|
@ -79,9 +79,8 @@ premk() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
CC="gcc $BUILDOPTIONS" \
|
|
||||||
CXX="g++ $BUILDOPTIONS" \
|
|
||||||
./configure --prefix=/cross-tools \
|
./configure --prefix=/cross-tools \
|
||||||
|
--without-debug \
|
||||||
--without-shared
|
--without-shared
|
||||||
make -j $NUMCPU -C include
|
make -j $NUMCPU -C include
|
||||||
make -j $NUMCPU -C progs tic
|
make -j $NUMCPU -C progs tic
|
||||||
|
109
BaseBuild/crosschain/ppl
Normal file
109
BaseBuild/crosschain/ppl
Normal file
@ -0,0 +1,109 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
||||||
|
#dieses Framework wird im CVS Repository
|
||||||
|
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
|
||||||
|
#
|
||||||
|
#Lage dieser Datei im Archiv: $HeadURL: svn://www.compuextreme.de/Viitor/V962/ViitorMake/BaseBuild/Basesys/gmp $
|
||||||
|
#
|
||||||
|
#(c) 2003 Harald Kueller, Germany
|
||||||
|
#This program is free software; you can redistribute it and/or
|
||||||
|
#modify ist 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.
|
||||||
|
#
|
||||||
|
#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 this program; if not write to the Free Software Foundation,
|
||||||
|
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
#
|
||||||
|
#Dies ist ein Module zur Verwendung mit genpkg. Die Erzeugung eines
|
||||||
|
#Viitor Linux Packetes wird über die Funktionen premk, mk und postmk
|
||||||
|
#gesteuert. premk() dient zur Vorbereitung des Sourcecodes. Hier können
|
||||||
|
#diverse Änderungen am sourcecode (mit awk/sed usw.) vorgenommen werden
|
||||||
|
#mk() umfasst die source Konfiguration und das Übersetzten des source
|
||||||
|
#codes. Auch die Installation muß von mk erledigt werden. Hier gild dass
|
||||||
|
#die Installation immer nach $TMPROOT erfolgen soll (meisst kann das mit
|
||||||
|
#"make DESTDIR=$TMPROOT install" angestossen werden). postmk kann
|
||||||
|
#vor der packeterstellung noch einiges am installationtree ändern. postmk
|
||||||
|
#läuft nachdem die Packetabhängigkeiten erstellt wurden.
|
||||||
|
#Das Verhalten von genpkg kann über die Variable MKPKG gesteuert werden.
|
||||||
|
#Hier müssen FLAGS zur Steuerung gesetzt werden. Folgende Flags werden
|
||||||
|
#erkannt:
|
||||||
|
#
|
||||||
|
# 1 : Package Erzeugung erzwingen. Packet wird, auch wenn es schon
|
||||||
|
# vorhanden ist, ohne weitere rückfragen neu Erzeugt.
|
||||||
|
# 2 : Package Installation erzwingen. Installpkg wird mit -f aufgerufen.
|
||||||
|
# Das bewirkt, das installpkg keine rückfragen bei der installation
|
||||||
|
# Stellt, und das packet in jedemfall (neu) installiert.
|
||||||
|
# 4 : Sourcepacket nicht nach MAKEDIR entpacken. Ist dieses Flag gesetzt
|
||||||
|
# muss sich das Module selber um das Entpacken der sourcedateien kümmern.
|
||||||
|
# vor allem wichtig bei Packeten, für die es keine source.tgz gibt
|
||||||
|
# (z.B. aus dem CVS generierte Packete).
|
||||||
|
# 8 : Erstellung des Packetes aus $TMPROOT wird unterdrückt. Dies ist bei
|
||||||
|
# manchen Sonderfällen möglich - wenn sich z.B. der Packetnamen nicht
|
||||||
|
# aus dem Namen des sourcearchives ableiten lässt. Packet sollte in
|
||||||
|
# so einem Fall in der postmk() Funktion erstellt werden.
|
||||||
|
# 16 : Packet wird nicht installiert. Bei Packeten wie tar oder bash kann
|
||||||
|
# die installation mittelst installpkg probleme machen.
|
||||||
|
# 32 : Dependics File so erzeugen, das die Abhängigkeiten bei der installation
|
||||||
|
# erfüllt sein müssen. installpkg bricht in so einem fall bei fehlenden
|
||||||
|
# packeten die installation ab, und gibt nicht "nur" warnmeldungen aus.
|
||||||
|
# Wichtig bei packeten mit postinstallroutine, die software aus dem
|
||||||
|
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
||||||
|
# 64 : sourcetree aufräumen nach packeterstellung unterbinden.
|
||||||
|
#
|
||||||
|
#Module zur Erstellung des Packetes: ppl
|
||||||
|
#Quelle der Source Archive: http://www.cs.unipr.it/ppl
|
||||||
|
#Kurzbeschreibung:
|
||||||
|
#Parma Polyhedra Library
|
||||||
|
#Numerische Abstractionen speziell für die analyse und abstraktion
|
||||||
|
#von komplexen Systemen
|
||||||
|
#
|
||||||
|
#Letzte Änderung von: $Author: kueller $
|
||||||
|
#Datum der letzten Änderung: $Date: 2008-05-02 13:13:24 +0000 (Fr, 02 Mai 2008) $
|
||||||
|
#Version der Datei: $Revision: 4220 $
|
||||||
|
#
|
||||||
|
|
||||||
|
#Pfad zum Basis-Sourcetree :
|
||||||
|
SRCPATH=Base/Lib
|
||||||
|
|
||||||
|
(( MKPKG = $MKPKG | 8 ))
|
||||||
|
(( MKPKG = $MKPKG | 16 ))
|
||||||
|
|
||||||
|
#Wenn das usgepackte Verzeichnis vom Paketnamen unterschiedlich ist
|
||||||
|
#SRCDIR=<PFAD>
|
||||||
|
|
||||||
|
|
||||||
|
premk() {
|
||||||
|
cp -v configure{,.orig}
|
||||||
|
sed -e "s/__GMP_BITS_PER_MP_LIMB/GMP_LIMB_BITS/g" \
|
||||||
|
configure.orig >configure
|
||||||
|
}
|
||||||
|
|
||||||
|
mk() {
|
||||||
|
LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
|
||||||
|
./configure --prefix=/cross-tools \
|
||||||
|
--enable-shared \
|
||||||
|
--enable-interfaces="c,cxx" \
|
||||||
|
--disable-optimization \
|
||||||
|
--with-libgmp-prefix=/cross-tools \
|
||||||
|
--with-libgmpxx-prefix=/cross-tools
|
||||||
|
|
||||||
|
CheckError "Configurescript failed !" 1
|
||||||
|
|
||||||
|
# Make-Optionen eintragen
|
||||||
|
make -j $NUMCPU
|
||||||
|
CheckError "Makeprocess failed !" 1
|
||||||
|
|
||||||
|
# Make install Optionen eintragen
|
||||||
|
make -j $NUMCPU install
|
||||||
|
CheckError "Make install process failed !" 1
|
||||||
|
}
|
||||||
|
|
||||||
|
postmk() {
|
||||||
|
echo "Nothing to do for postmk()"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user