diff options
author | Paul Selkirk <paul@psgd.org> | 2015-04-22 01:42:03 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2015-04-22 01:42:03 -0400 |
commit | 27791cc6a34c467d4d68c3e235f223d3348a6e4b (patch) | |
tree | e7468207c88a571703019b09ebd2619944565d01 /GNUmakefile | |
parent | 7435ac81de2ebe5b312b2435795c4c027d6add75 (diff) |
Use new cryptech libraries.
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile index e48ee1e..e2b3c43 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -58,6 +58,11 @@ endif ifneq "$(strip ${CRYPTECH_HAL})" "" SED_COMMAND += -e 's=device/hw_dummy=../$(basename ${CRYPTECH_HAL})=g' -e 's=hw_dummy=$(notdir $(basename ${CRYPTECH_HAL}))=g' +ifneq "$(findstring i2c,${CRYPTECH_HAL})" "" + SED_CMD_SETUP := -e "s='cl'='cl', 'cryptech_i2c'=" +else + SED_CMD_SETUP := -e "s='cl'='cl', 'cryptech'=" +endif endif ifneq "$(strip ${CRYPTECH_RANDOM})" "" @@ -77,6 +82,8 @@ build/makefile.ready: GNUmakefile dist/cl342.zip cd build; unzip -a ../dist/cl342.zip sed <build/makefile >build/makefile.cryptech ${SED_COMMAND} mv build/makefile.cryptech build/makefile + sed <build/bindings/setup.py >build/bindings/setup.py.cryptech ${SED_CMD_SETUP} + mv build/bindings/setup.py.cryptech build/bindings/setup.py touch $@ ifeq "${PYTHONPATH}" "" |