chg: emv compilation, will it work better on OSX?

This commit is contained in:
iceman1001 2017-09-17 19:24:04 +02:00
parent a091feb5ee
commit f96afe0ce7
2 changed files with 25 additions and 17 deletions

View file

@ -24,6 +24,7 @@ APP_CFLAGS = -DWITH_CRC \
-fno-strict-aliasing -ffunction-sections -fdata-sections
### IMPORTANT - move the commented variable below this line
# -DWITH_LCD \
# -DWITH_EMV \
#
# Standalone Mods
#-------------------------------------------------------
@ -34,6 +35,7 @@ APP_CFLAGS = -DWITH_CRC \
# -DWITH_HF_YOUNG
# -DWITH_HF_MATTYRUN
SRC_LCD = fonts.c LCD.c
SRC_LF = lfops.c hitag2.c hitagS.c lfsampling.c pcf7931.c lfdemod.c
SRC_ISO15693 = iso15693.c iso15693tools.c
@ -85,12 +87,18 @@ ARMSRC = fpgaloader.c \
$(SRC_ISO14443b) \
$(SRC_CRAPTO1) \
$(SRC_CRC) \
$(SRC_ICLASS) \
$(SRC_EMV) \
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

View file

@ -234,20 +234,20 @@ void HfSnoop(int , int);
//EMV functions
// emvcmd.h
void EMVTransaction(void);
void EMVgetUDOL(void);
void EMVloadvalue(uint32_t tag, uint8_t* datain);
void EMVdumpcard(void);
//void EMVSelect(uint8_t arg0, uint8_t arg1, uint8_t arg2, uint8_t *data);
void EMVFuzz_RATS(uint8_t ratslen, uint8_t* RATS);
void EMVReadRecord(uint8_t arg0, uint8_t arg1,emvcard* inputcard);
void EMVSelectPPSE();
void EMVSelectAID(uint8_t *AID, uint8_t AIDlen, emvcard* inputcard);
void EMVTransaction();
void EMVClone(uint8_t maxsfi, uint8_t maxrecord);
void EMVSim();
void EMVTest();
void SimulateEMVcard();
extern void EMVTransaction(void);
extern void EMVgetUDOL(void);
extern void EMVloadvalue(uint32_t tag, uint8_t* datain);
extern void EMVdumpcard(void);
//extern void EMVSelect(uint8_t arg0, uint8_t arg1, uint8_t arg2, uint8_t *data);
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();
extern void SimulateEMVcard();
#ifdef __cplusplus
}