1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

New option --build-uclinux.

This commit is contained in:
Werner Koch 2003-04-08 08:28:26 +00:00
parent d605ac20ab
commit 17e12f2ec1
2 changed files with 44 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-04-08 Werner Koch <wk@gnupg.org>
* autogen.sh: New option --build-uclinux.
2003-03-24 Werner Koch <wk@gnupg.org>
* autogen.sh: New option --build-coldfire

View File

@ -108,7 +108,8 @@ if test "$1" = "--build-coldfire"; then
CFLAGS="$CFLAGS -m5307 -DCONFIG_COLDFIRE"
CFLAGS="$CFLAGS -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED"
CFLAGS="$CFLAGS -fno-builtin -msep-data"
LDFLAGS="-Wl,-elf2flt -Wl,-move-rodata"
LDFLAGS="-Wl,-elf2flt -Wl,-move-rodata -nostartfiles"
LDFLAGS="$LDFLAGS ${crossdir}/m68k-elf/lib/crt0.o"
LIBS="-lc"
disable_foo_tests=""
@ -144,6 +145,44 @@ if test "$1" = "--build-coldfire"; then
fi
# This is the special case to build on a ColdFire platform under
# the uClinux kernel with uClinux-dist. Tested on a MCF4249C3 board.
if test "$1" = "--build-uclinux"; then
tmp=`dirname $0`
tsdir=`cd "$tmp"; cd ..; pwd`
shift
if [ ! -f $tsdir/scripts/config.guess ]; then
echo "$tsdir/scripts/config.guess not found" >&2
exit 1
fi
build=`$tsdir/scripts/config.guess`
host=m68k-elf
if [ -f "$tsdir/config.log" ]; then
if ! head $tsdir/config.log | grep m68k-elf >/dev/null; then
echo "Please run a 'make distclean' first" >&2
exit 1
fi
fi
$tsdir/configure --build=${build} --host=${host} \
${disable_foo_tests} \
--disable-dynload \
--disable-exec \
--disable-photo-viewers \
--disable-keyserver-helpers \
--disable-ldap \
--disable-mailto \
--disable-largefile \
--disable-asm \
--disable-nls $* \
CC="$CC" CPP="$CPP" AR="$AR" RANLIB="$RANLIB" \
CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" LIBS="$LDLIBS"
exit $?
fi
if (autoconf --version) < /dev/null > /dev/null 2>&1 ; then
if (autoconf --version | awk 'NR==1 { if( $3 >= '$autoconf_vers') \