diff options
Diffstat (limited to 'pyecsca/codegen/simpleserial/Makefile.simpleserial')
| -rw-r--r-- | pyecsca/codegen/simpleserial/Makefile.simpleserial | 26 |
1 files changed, 26 insertions, 0 deletions
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 |
