Anpassungen an V963, Einarbeitung der neuesten CLFS Version

git-svn-id: svn://svn.compuextreme.de/Viitor/V963/ViitorMake@5989 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2011-02-24 09:37:39 +00:00
parent d310dbe481
commit f80422c290
9 changed files with 46 additions and 142 deletions

View File

@ -1,112 +0,0 @@
#!/bin/bash
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
#dieses Framework wird im CVS Repository
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
#
#Lage dieser Datei im Archiv: $HeadURL: svn://odin.dmz.lan/Viitor/V962/ViitorMake/BaseBuild/toolchain/findutils $
#
#(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.
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
# kümmern
#Module zur Erstellung des Packetes:
#Quelle der Source Archive:
#Kurzbeschreibung:
#
#
#Letzte Änderung von: $Author: kueller $
#Datum der letzten Änderung: $Date: 2008-05-05 20:24:10 +0200 (Mo, 05 Mai 2008) $
#Version der Datei: $Revision: 4467 $
#
#$Log$
#Revision 1.2 2006/08/16 12:58:34 kueller
#Umstellung CFLAGS -> BUILDOPTIONS. Macht ein saubereres optimieren des
#Systems moeglich
#
#Revision 1.1 2006/08/13 13:15:38 kueller
#Toolchain Module zum Build von CrossViitor Linux
#
#
SRCPATH=Base/System
(( MKPKG = $MKPKG | 8 ))
(( MKPKG = $MKPKG | 16 ))
premk() {
chmod 755 configure
if [ ${MK64BIT} == "true" ]; then
cp -v configure{,.orig}
sed -e "/libdir=.*\/lib/s@/lib@/lib64@g" configure.orig >configure
fi
mkdir ../build-e2fsprogs
cd ../build-e2fsprogs
}
mk() {
CC="${CC} ${BUILDOPTIONS}" \
../e2fsprogs*/configure --host=$TARGET \
--prefix=/tools \
--enable-elf-shlibs \
--with-linker=${LD}
make -j $NUMCPU
make -j $NUMCPU install
make -j $NUMCPU install-libs
}
postmk() {
if [ ! -d $LFS/sbin ]; then
mkdir -p $LFS/sbin
fi
ln -sv /tools/sbin/{fsck.ext2,fsck.ext3,e2fsck} ${LFS}/sbin
cd ..
rm -r build-e2fsprogs
}

View File

@ -72,14 +72,24 @@ SRCPATH=Base/Development
(( MKPKG = $MKPKG | 16 ))
premk() {
echo "Nothing to do for premk()"
cat > config.cache << EOF
gl_cv_func_btowc_eof=yes
gl_cv_func_mbrtowc_incomplete_state=yes
gl_cv_func_mbrtowc_sanitycheck=yes
gl_cv_func_mbrtowc_null_arg=yes
gl_cv_func_mbrtowc_retval=yes
gl_cv_func_mbrtowc_nul_retval=yes
gl_cv_func_wcrtomb_retval=yes
gl_cv_func_wctob_works=yes
EOF
}
mk() {
CC="${CC} ${BUILDOPTIONS}" \
./configure --build=$HOSTSYS \
--host=$TARGET \
--prefix=/tools
./configure --build=${HOSTSYS} \
--host=${TARGET} \
--prefix=/tools \
--cache-file=config.cache
make -j $NUMCPU
make -j $NUMCPU install
}

View File

@ -87,8 +87,8 @@ premk() {
mk() {
CC="${CC} ${BUILDOPTIONS}" \
./configure --host=$TARGET \
--build=$HOSTSYS \
./configure --host=${TARGET} \
--build=${HOSTSYS} \
--prefix=/tools
make -j $NUMCPU
make -j $NUMCPU install

View File

@ -82,14 +82,15 @@ SRCPATH=Base/Development
(( MKPKG = $MKPKG | 16 ))
premk() {
echo "Nothing to do for premk()"
echo "ac_cv_func_strnlen_working=yes" >config.cache
}
mk() {
CC="${CC} ${BUILDOPTIONS}" \
./configure --host=$TARGET \
--build=$HOSTSYS \
--prefix=/tools
./configure --host=${TARGET} \
--build=${HOSTSYS} \
--prefix=/tools \
--cache-file=config.cache
make -j $NUMCPU
make -j $NUMCPU install
}

View File

@ -84,15 +84,26 @@
SRCPATH=Base/Utilities
(( MKPKG = $MKPKG | 8 ))
(( MKPKG = $MKPKG | 16 ))
(( MKPKG = $MKPKG | 128 ))
premk() {
echo "gl_cv_func_wcwidth_works=yes" >>config.cache
cat > config.cache << EOF
gl_cv_func_wcwidth_works=yes
gl_cv_func_btowc_eof=yes
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_realloc_0_nonnull=yes
gl_cv_func_mbrtowc_incomplete_state=yes
gl_cv_func_mbrtowc_nul_retval=yes
gl_cv_func_mbrtowc_null_arg=yes
gl_cv_func_mbrtowc_retval=yes
gl_cv_func_wcrtomb_retval=yes
EOF
}
mk() {
CC="${CC} ${BUILDOPTIONS}" \
./configure --host=$TARGET \
--build=$HOSTSYS \
./configure --host=${TARGET} \
--build=${HOSTSYS} \
--prefix=/tools \
--cache-file=config.cache
make -j $NUMCPU

View File

@ -87,8 +87,8 @@ premk() {
mk() {
CC="${CC} ${BUILDOPTIONS}" \
./configure --host=$TARGET \
--build=$HOSTSYS \
./configure --host=${TARGET} \
--build=${HOSTSYS} \
--prefix=/tools
make -j $NUMCPU -C tools/gnulib/lib
make -j $NUMCPU -C tools

View File

@ -26,6 +26,5 @@
16 toolchain/texinfo
16 toolchain/xz
16 toolchain/util-linux-ng
16 toolchain/e2fsprogs
16 toolchain/ViitorMake
16 toolchain/bash_profile

View File

@ -87,14 +87,12 @@ premk() {
mk() {
CC="${CC} ${BUILDOPTIONS}" \
./configure --build=$HOSTSYS \
--host=$TARGET \
--prefix=/tools
make -j $NUMCPU ARCH="" CPU="" -C disk-utils mkswap
make -j $NUMCPU ARCH="" CPU="" -C mount mount umount
make -j $NUMCPU ARCH="" CPU="" -C text-utils more
cp -v mount/{,u}mount text-utils/more /tools/bin
cp -v disk-utils/mkswap /tools/sbin
./configure --build=${HOSTSYS} \
--host=${TARGET} \
--prefix=/tools \
--disable-makeinstall-chown
make -j ${NUMCPU}
make -j ${NUMCPU} install
}
postmk() {

View File

@ -86,13 +86,10 @@ premk() {
}
mk() {
if [ $MK64BIT == "true" ]; then
ADDOPTIONS="--libdir=/tools/lib64"
fi
CC="${CC} ${BUILDOPTIONS}" \
./configure --host=$TARGET \
--build=$HOSTSYS \
$ADDOPTIONS \
./configure --host=${TARGET} \
--build=${HOSTSYS} \
--libdir=/tools/${LIBDIR} \
--prefix=/tools
make -j $NUMCPU
make -j $NUMCPU install