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

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





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
#! /bin/bash

set -e

make distclean || true

case "$(uname -m)" in
	i?86)
		ARCH=ix86
		;;
	x86_64)
		ARCH=x86-64
		;;
	*)
		echo "Unknown arch"
		exit 1
		;;
esac

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' ' ')"
glibcdir="$(readlink -f /opt/appfs/core.appfs.rkeene.org/glibc/platform/latest)"

./configure \
	--with-pcsc-headers=/opt/appfs/rkeene.org/pcsc-lite/platform/latest/include/PCSC \
	--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" \
	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" \
	CPPFLAGS="-I/opt/appfs/core.appfs.rkeene.org/zlib/platform/latest/include" \
	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"

make