source: tt-tools/compile-dropbear.sh @ 14

Last change on this file since 14 was 6, checked in by guillaume, 17 years ago

Publication tt-ttols v0.1
Des outils pour le TwinTact

  • Property svn:executable set to *
File size: 921 bytes
Line 
1#! /bin/sh
2
3SSH_PORT=2222
4
5MAKE_FLAGS="-DTWINTACT"
6[ -n "${SSH_PORT}" ] && MAKE_FLAGS="${MAKE_FLAGS} -D'DROPBEAR_DEFPORT=\"${SSH_PORT}\"'"
7[ "$1" == 'trace' ] && MAKE_FLAGS="${MAKE_FLAGS} -DDEBUG_TRACE"
8
9source versions.sh
10source environnement-de-cross-compilation.sh
11
12cd ${DROPBEAR_BAS}-tt
13
14# Configurer dropbear si le Makefile n'y est pas
15if [ ! -e Makefile -o "$1" == 'trace' ]; then
16        ./configure --host=$PLATEFORME \
17                --disable-shadow --disable-lastlog --disable-utmp --disable-utmpx \
18                --disable-wtmp --disable-wtmpx --disable-pam --disable-zlib \
19                --sysconfdir=/usr/share/config
20       
21        make clean
22fi
23
24# Compiler dropbear en statique et en mode multi
25make strip PROGRAMS="dropbear dbclient dropbearkey scp" MULTI=1 STATIC=1 SCPPROGRESS=0 \
26        CPPFLAGS="${MAKE_FLAGS}"
27
28# Utiliser upx pour compresser le binaire si disponible
29[ -e dropbearmulti -a "$1" != 'trace' ] && upx --version >/dev/null 2>&1 && upx dropbearmulti
Note: See TracBrowser for help on using the repository browser.