aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/codegen/simpleserial/Makefile.simpleserial
blob: 47a0d1ebc77829a63c1627a3aaa07a4059324a0b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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)