diff options
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}" "" |