diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/Makefile | 21 | ||||
-rw-r--r-- | sw/debian/compat | 1 | ||||
-rw-r--r-- | sw/debian/control | 14 | ||||
-rw-r--r-- | sw/debian/copyright | 27 | ||||
-rwxr-xr-x | sw/debian/rules | 4 | ||||
-rw-r--r-- | sw/debian/source/format | 1 | ||||
m--------- | sw/sw/libhal | 0 | ||||
m--------- | sw/sw/libtfm | 0 | ||||
m--------- | sw/sw/pkcs11 | 0 | ||||
m--------- | sw/sw/sqlite3 | 0 |
10 files changed, 68 insertions, 0 deletions
diff --git a/sw/Makefile b/sw/Makefile new file mode 100644 index 0000000..962d448 --- /dev/null +++ b/sw/Makefile @@ -0,0 +1,21 @@ +export CC := arm-linux-gnueabihf-gcc +export AR := arm-linux-gnueabihf-ar +export OBJCOPY := arm-linux-gnueabihf-objcopy + +# Something is messing up the CFLAGS and LDFLAGS settings to libhal. +# Using autoconf was probably a mistake, but hack around it for now. + +all: + cd sw/libtfm; ${MAKE} + cd sw/libhal; ./configure CFLAGS='-g3 -Wall -fPIC -std=c99 -I$${TFMDIR}' LDFLAGS='-g3 -L$${TFMDIR} -ltfm' + cd sw/libhal; ${MAKE} + cd sw/sqlite3; ${MAKE} CROSS_COMPILE=arm-unknown-linux-gnueabi + cd sw/pkcs11; ${MAKE} + +clean distclean: + for d in libtfm libhal sqlite3 pkcs11; do (cd sw/$$d && ${MAKE} $@); done + +install: all + install -D sw/pkcs11/libpkcs11.so ${DESTDIR}/usr/lib/libpkcs11.so + install -D sw/pkcs11/p11util ${DESTDIR}/usr/sbin/p11util + diff --git a/sw/debian/compat b/sw/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/sw/debian/compat @@ -0,0 +1 @@ +9 diff --git a/sw/debian/control b/sw/debian/control new file mode 100644 index 0000000..4d83526 --- /dev/null +++ b/sw/debian/control @@ -0,0 +1,14 @@ +Source: cryptech-novena-sw +Maintainer: Paul Selkirk <paul@psgd.org> +Section: misc +Priority: optional +Standards-Version: 3.9.6 +Build-Depends: debhelper (>= 9) +Homepage: http://trac.cryptech.is/wiki + +Package: cryptech-novena-sw +Architecture: armhf +Depends: libc6 (>= 2.13), ${misc:Depends} +Description: Cryptech open-source crypto software + "cryptech-novena-sw" contains software for use with the Cryptech Project RTL images on + the Novena PVT-1 development board. diff --git a/sw/debian/copyright b/sw/debian/copyright new file mode 100644 index 0000000..fd7518e --- /dev/null +++ b/sw/debian/copyright @@ -0,0 +1,27 @@ +Copyright (c) 2015, NORDUnet A/S All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +- Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + +- Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +- Neither the name of the NORDUnet nor the names of its contributors may + be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS +IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED +TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/sw/debian/rules b/sw/debian/rules new file mode 100755 index 0000000..2d33f6a --- /dev/null +++ b/sw/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ diff --git a/sw/debian/source/format b/sw/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/sw/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/sw/sw/libhal b/sw/sw/libhal new file mode 160000 +Subproject e80f25d31235628f2d9cfb410d48bcc83b4487d diff --git a/sw/sw/libtfm b/sw/sw/libtfm new file mode 160000 +Subproject 108e78987bc39f11d0abbba7dbfe80704cbf028 diff --git a/sw/sw/pkcs11 b/sw/sw/pkcs11 new file mode 160000 +Subproject 5f0d1c2ecfde778a164dd4cfc362f7bd29ebe24 diff --git a/sw/sw/sqlite3 b/sw/sw/sqlite3 new file mode 160000 +Subproject 7bdeab315c5fdaf6d1b087423b98e80e80fefec |