From c8d0bff46001bd5636825c5b0bb4c896cb34a4e6 Mon Sep 17 00:00:00 2001 From: J08nY Date: Thu, 21 Nov 2019 19:10:50 +0100 Subject: Initialize. --- pyecsca/codegen/simpleserial/Makefile.simpleserial | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pyecsca/codegen/simpleserial/Makefile.simpleserial (limited to 'pyecsca/codegen/simpleserial/Makefile.simpleserial') diff --git a/pyecsca/codegen/simpleserial/Makefile.simpleserial b/pyecsca/codegen/simpleserial/Makefile.simpleserial new file mode 100644 index 0000000..47a0d1e --- /dev/null +++ b/pyecsca/codegen/simpleserial/Makefile.simpleserial @@ -0,0 +1,26 @@ +SRC += simpleserial.c +VPATH += :$(FIRMWAREPATH)/simpleserial/ +EXTRAINCDIRS += $(FIRMWAREPATH)/simpleserial/ + +SS_VERS_ALLOWED = SS_VER_1_0 SS_VER_1_1 + +define SS_VERS_LIST + + +---------+--------------+ + | Version | SS_VER value | + +---------+--------------+ + | V1.0 | SS_VER_1_0 | + | V1.1 | SS_VER_1_1 | + +---------+--------------+ + +endef + +# SimpleSerial version +# To change this, define SS_VER before including this file +ifeq ($(SS_VER),) + SS_VER = SS_VER_1_1 +else ifeq ($(filter $(SS_VER),$(SS_VERS_ALLOWED)),) + $(error Invalid SimpleSerial version: $(SS_VER); allowed verions: $(SS_VERS_LIST)) +endif + +CDEFS += -DSS_VER=$(SS_VER) \ No newline at end of file -- cgit v1.3.1