genode/dde_rump/patches/build.patch
Sebastian Sumpf 9251b1ede8 rump: Port of the rump kernels to Genode
For further information see: http://wiki.netbsd.org/rumpkernel/. In this version
I ported the central rump components to Genode in order to take advantage of
NetBSD file system implementation. The new 'dde_rump' repository contains the
Genode version of the rump libraries and a 'rump_fs' server that implements
Genode file-system-session interface. Currently ext2, iso9660, and fat
file-systems are supported.

Issue #1048
2014-02-28 10:11:08 +01:00

58 lines
1.6 KiB
Diff

diff --git a/buildrump.sh b/buildrump.sh
index f600b6a..e394b47 100755
--- a/buildrump.sh
+++ b/buildrump.sh
@@ -570,6 +570,16 @@ evaltools ()
: ${NM:=nm}
: ${OBJCOPY:=objcopy}
else
+ if [ "${MACH_ARCH}" = 'x86_64' ] ; then
+ cc_target=genode-x86
+ elif [ "${MACH_ARCH}" = 'arm' ] ; then
+ cc_target=genode-arm
+ else
+ die Unsupported architectur ${MACH_ARCH}
+ fi
+
+ echo "MACH_ARCH cc ${MACH_ARCH}"
+
: ${AR:=${cc_target}-ar}
: ${NM:=${cc_target}-nm}
: ${OBJCOPY:=${cc_target}-objcopy}
@@ -600,6 +610,8 @@ evaltools ()
;;
esac
+ TARGET=freebsd
+
# check if we're running from a tarball, i.e. is checkout possible
BRDIR=$(dirname $0)
unset TARBALLMODE
@@ -872,26 +884,6 @@ evaltarget ()
ccdefault=32
fi
- # step 2: if the user specified 32/64, try to establish if it will work
- if ${THIRTYTWO} && [ "${ccdefault}" -ne 32 ] ; then
- echo 'int main() {return 0;}' | ${CC} ${EXTRA_CFLAGS} -o /dev/null -x c - \
- ${EXTRA_RUMPUSER} ${EXTRA_RUMPCOMMON} > /dev/null 2>&1
- [ $? -eq 0 ] || ${ANYTARGETISGOOD} || \
- die 'Gave -32, but probe shows it will not work. Try -H?'
- elif ${SIXTYFOUR} && [ "${ccdefault}" -ne 64 ] ; then
- echo 'int main() {return 0;}' | ${CC} ${EXTRA_CFLAGS} -o /dev/null -x c - \
- ${EXTRA_RUMPUSER} ${EXTRA_RUMPCOMMON} > /dev/null 2>&1
- [ $? -eq 0 ] || ${ANYTARGETISGOOD} || \
- die 'Gave -64, but probe shows it will not work. Try -H?'
- else
- # not specified. use compiler default
- if [ "${ccdefault}" -eq 64 ]; then
- SIXTYFOUR=true
- else
- THIRTYTWO=true
- fi
- fi
-
TOOLABI=''
case ${MACH_ARCH} in
"amd64"|"x86_64")