diff options
author | Rob Austein <sra@hactrn.net> | 2016-07-07 18:45:26 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-07-07 18:45:26 -0400 |
commit | ee6386f2774d24c1dda6ba08383db55c70b05aaf (patch) | |
tree | e5630ea25e24d4079a1e0d6e724685acd1cf8065 /Makefile | |
parent | e4c6f934da5d6eb122224970c2b02acfed104be4 (diff) |
Disable RPC daemon on all platforms for now.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -80,14 +80,28 @@ UNAME := $(shell uname) CFLAGS := -g3 -fPIC -Wall -std=c99 -I${LIBHAL_SRC} LIBS := ${LIBHAL_BLD}/libhal.a ${LIBTFM_BLD}/libtfm.a +# At present, the RPC daemon works on Linux but not on OSX, because the current daemon +# protocol runs over SOCK_SEQPACKET sockets, which Apple doesn't support. In the long run +# this will be a non-issue, as we expect to reimplement the daemon protocol using a secure +# channel which will almost certainly run over SOCK_STREAM instead of SOCK_SEQPACKET. +# +# But this is all moot, because the HSM code to support use of multiple FPGA cores in +# parallel doesn't quite work properly yet, so the daemon doesn't really buy us anything +# useful, and just adds a bit of extra complexity to setup on Linux. +# +# So, for the moment, the default LIBHAL_TARGET is "serial" on all platforms. If for some +# reason you want to try out the daemon on Linux, just change this to "daemon". + +LIBHAL_TARGET := serial + ifeq "${UNAME}" "Darwin" SONAME := libpkcs11.dylib SOFLAGS := -dynamiclib - LIBHAL_TARGET := serial +# LIBHAL_TARGET := serial else SONAME := libpkcs11.so SOFLAGS := -Wl,-Bsymbolic-functions -Wl,-Bsymbolic -Wl,-z,noexecstack -Wl,-soname,${SONAME}.0 - LIBHAL_TARGET := daemon +# LIBHAL_TARGET := daemon endif ifeq "${ENABLE_FOOTNOTE_WARNINGS}" "no" |