Check-in [036a594834]
Overview
SHA1:036a5948343127103e5288e976be83e6269a1ab5
Date: 2016-02-15 09:00:31
User: rkeene
Comment:Added basic AppFS build script
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2016-02-16
15:24
[1a5312bdfa] Fixed typo in script that rebuilds built-in certs causing the files to be placed in the wrong directory (user: rkeene, tags: trunk)
2016-02-15
09:00
[036a594834] Added basic AppFS build script (user: rkeene, tags: trunk)
08:44
[37a5c34d9f] Fixed issue with test library not including the appropriate libs (user: rkeene, tags: trunk)
Changes

Added build/appfs/build.sh version [0e1d570b89].

            1  +#! /bin/bash
            2  +
            3  +set -e
            4  +
            5  +make distclean || true
            6  +
            7  +case "$(uname -m)" in
            8  +	i?86)
            9  +		ARCH=ix86
           10  +		;;
           11  +	x86_64)
           12  +		ARCH=x86-64
           13  +		;;
           14  +	*)
           15  +		echo "Unknown arch"
           16  +		exit 1
           17  +		;;
           18  +esac
           19  +
           20  +gcc_default_headers_c="$(echo '' | ${CPP:-cpp} -v 2>&1 | sed '/^End of search list/,$ d;0,/search starts here:$/ d' | grep '/gcc/' | sed 's@^ *@-isystem @' | tr $'\n' ' ')"
           21  +glibcdir="$(readlink -f /opt/appfs/core.appfs.rkeene.org/glibc/platform/latest)"
           22  +
           23  +./configure \
           24  +	--with-pcsc-headers=/opt/appfs/rkeene.org/pcsc-lite/platform/latest/include/PCSC \
           25  +	--with-pcsc-libs="-L$(readlink -f /opt/appfs/rkeene.org/pcsc-lite/platform/latest/lib) -Wl,-rpath,$(readlink -f /opt/appfs/rkeene.org/pcsc-lite/platform/latest/lib) -lpcsclite" \
           26  +	CC="${CC:-gcc} -nostdinc ${gcc_default_headers_c} -isystem ${glibcdir}/include -isystem /opt/appfs/core.appfs.rkeene.org/linux-headers/platform/2.6.32.63/include" \
           27  +	CPPFLAGS="-I/opt/appfs/core.appfs.rkeene.org/zlib/platform/latest/include" \
           28  +	LDFLAGS="-L${glibcdir}/lib -L$(readlink -f /opt/appfs/core.appfs.rkeene.org/zlib/platform/latest/lib) -pthread -Wl,--dynamic-linker,${glibcdir}/lib/ld-linux-${ARCH}.so.2"
           29  +
           30  +make