From 27791cc6a34c467d4d68c3e235f223d3348a6e4b Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Wed, 22 Apr 2015 01:42:03 -0400 Subject: Use new cryptech libraries. --- GNUmakefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'GNUmakefile') 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.cryptech ${SED_COMMAND} mv build/makefile.cryptech build/makefile + sed build/bindings/setup.py.cryptech ${SED_CMD_SETUP} + mv build/bindings/setup.py.cryptech build/bindings/setup.py touch $@ ifeq "${PYTHONPATH}" "" -- cgit v1.2.3