From 14550557be8c6ffb5a961340c84bf76ff39c777d Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 18 Sep 2017 22:33:22 +0200 Subject: [PATCH] CHG: 'emv compilation' since the client makefile doesn't import makefile.common anymore, need to move some compilor directive. Now need to change two files for EMV compilation. * client/Makefile * common/Makefile.common --- armsrc/Makefile | 10 ++-------- armsrc/apps.h | 1 - client/Makefile | 3 +++ common/Makefile.common | 3 +-- 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/armsrc/Makefile b/armsrc/Makefile index c7937b490..d0e080005 100644 --- a/armsrc/Makefile +++ b/armsrc/Makefile @@ -86,19 +86,13 @@ ARMSRC = fpgaloader.c \ $(SRC_ISO14443a) \ $(SRC_ISO14443b) \ $(SRC_CRAPTO1) \ + $(SRC_ICLASS) \ + $(SRC_EMV) \ $(SRC_CRC) \ parity.c \ usb_cdc.c \ cmd.c -ifneq ($(WITH_ICLASS),"") -ARMSRC += $(SRC_ICLASS) -endif - -ifneq ($(WITH_EMV),"") -ARMSRC += $(SRC_EMV) -endif - # Do not move this inclusion before the definition of {THUMB,ASM,ARM}SRC include ../common/Makefile.common diff --git a/armsrc/apps.h b/armsrc/apps.h index 3ec8a7d65..9a6e3c2de 100644 --- a/armsrc/apps.h +++ b/armsrc/apps.h @@ -243,7 +243,6 @@ extern void EMVFuzz_RATS(uint8_t ratslen, uint8_t* RATS); extern void EMVReadRecord(uint8_t arg0, uint8_t arg1,emvcard* inputcard); extern void EMVSelectPPSE(); extern void EMVSelectAID(uint8_t *AID, uint8_t AIDlen, emvcard* inputcard); -extern void EMVTransaction(); extern void EMVClone(uint8_t maxsfi, uint8_t maxrecord); extern void EMVSim(); extern void EMVTest(); diff --git a/client/Makefile b/client/Makefile index 45aa079b9..b5b853e8d 100644 --- a/client/Makefile +++ b/client/Makefile @@ -13,6 +13,9 @@ RM = rm -f MV = mv #COMMON_FLAGS = -m32 +# uncomment to enable EMV +#COMMON_FLAGS += -DWITH_EMV + VPATH = ../common ../zlib ../uart OBJDIR = obj diff --git a/common/Makefile.common b/common/Makefile.common index 367fc18cb..65afcaab1 100644 --- a/common/Makefile.common +++ b/common/Makefile.common @@ -60,8 +60,7 @@ DETECTED_OS=Windows endif # uncomment these two; to enable EMV -#APP_CFLAGS += -DWITH_EMV -#COMMON_FLAGS += -DWITH_EMV +APP_CFLAGS += -DWITH_EMV # uncomment these two; to fix 256 vs 512kb PM3 devices # flashing bootrom -b is needed