forked from mkj/dropbear
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CONFIGURE_AKAROS
executable file
·58 lines (49 loc) · 1.12 KB
/
CONFIGURE_AKAROS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
set -e
if [ "x${AKAROS_ROOT}" == "x" ]
then
echo AKAROS_ROOT is empty! You must set it!
exit
fi
KFS=${AKAROS_ROOT}/kern/kfs/
XCC=x86_64-ucb-akaros-gcc
AKAROS_CFLAGS="-fno-omit-frame-pointer -g -std=gnu99"
AKAROS_LDFLAGS=""
AKAROS_LIBS="-liplib -lpthread"
function bootstrap()
{
autoreconf --install
}
function configure()
{
rm -rf build; mkdir build; cd build
CC=${XCC} CFLAGS=${AKAROS_CFLAGS} LDFLAGS=${AKAROS_LDFLAGS} \
LIBS=$AKAROS_LIBS ../configure \
--prefix=${KFS} \
--sbindir=${KFS}/bin \
--host=$(basename ${XCC%-gcc}) \
--disable-zlib \
--disable-openpty \
--disable-syslog \
--disable-shadow \
--enable-bundled-libtom \
--disable-lastlog \
--disable-utmp \
--disable-utmpx \
--disable-wtmp \
--disable-wtmpx \
--disable-loginfunc \
--disable-pututline \
--disable-pututxline
cd -
}
bootstrap
configure
cat << EndOfMessage
Dropbear has now been configured for Akaros!
Please cd into the 'build' directory and run the following
commands to install it into the KFS of your Akaros tree.
$ cd build
$ make
$ make install
EndOfMessage