summaryrefslogtreecommitdiff
path: root/quantum/wear_leveling/tests/rules.mk
blob: 4d7a964049653c72b78ef9e69168c349b0f74959 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
wear_leveling_common_DEFS := \
	-DWEAR_LEVELING_TESTS
wear_leveling_common_SRC := \
	$(LIB_PATH)/fnv/qmk_fnv_type_validation.c \
	$(LIB_PATH)/fnv/hash_32a.c \
	$(LIB_PATH)/fnv/hash_64a.c \
	$(QUANTUM_PATH)/wear_leveling/wear_leveling.c \
	$(QUANTUM_PATH)/wear_leveling/tests/backing_mocks.cpp
wear_leveling_common_INC := \
	$(LIB_PATH)/fnv \
	$(QUANTUM_PATH)/wear_leveling

wear_leveling_general_DEFS := \
	$(wear_leveling_common_DEFS) \
	-DBACKING_STORE_WRITE_SIZE=2 \
	-DWEAR_LEVELING_BACKING_SIZE=48 \
	-DWEAR_LEVELING_LOGICAL_SIZE=16
wear_leveling_general_SRC := \
	$(wear_leveling_common_SRC) \
	$(QUANTUM_PATH)/wear_leveling/tests/wear_leveling_general.cpp
wear_leveling_general_INC := \
	$(wear_leveling_common_INC)

wear_leveling_2byte_optimized_writes_DEFS := \
	$(wear_leveling_common_DEFS) \
	-DBACKING_STORE_WRITE_SIZE=2 \
	-DWEAR_LEVELING_BACKING_SIZE=65536 \
	-DWEAR_LEVELING_LOGICAL_SIZE=32768
wear_leveling_2byte_optimized_writes_SRC := \
	$(wear_leveling_common_SRC) \
	$(QUANTUM_PATH)/wear_leveling/tests/wear_leveling_2byte_optimized_writes.cpp
wear_leveling_2byte_optimized_writes_INC := \
	$(wear_leveling_common_INC)

wear_leveling_2byte_DEFS := \
	$(wear_leveling_common_DEFS) \
	-DBACKING_STORE_WRITE_SIZE=2 \
	-DWEAR_LEVELING_BACKING_SIZE=48 \
	-DWEAR_LEVELING_LOGICAL_SIZE=16
wear_leveling_2byte_SRC := \
	$(wear_leveling_common_SRC) \
	$(QUANTUM_PATH)/wear_leveling/tests/wear_leveling_2byte.cpp
wear_leveling_2byte_INC := \
	$(wear_leveling_common_INC)

wear_leveling_4byte_DEFS := \
	$(wear_leveling_common_DEFS) \
	-DBACKING_STORE_WRITE_SIZE=4 \
	-DWEAR_LEVELING_BACKING_SIZE=48 \
	-DWEAR_LEVELING_LOGICAL_SIZE=16
wear_leveling_4byte_SRC := \
	$(wear_leveling_common_SRC) \
	$(QUANTUM_PATH)/wear_leveling/tests/wear_leveling_4byte.cpp
wear_leveling_4byte_INC := \
	$(wear_leveling_common_INC)

wear_leveling_8byte_DEFS := \
	$(wear_leveling_common_DEFS) \
	-DBACKING_STORE_WRITE_SIZE=8 \
	-DWEAR_LEVELING_BACKING_SIZE=48 \
	-DWEAR_LEVELING_LOGICAL_SIZE=16
wear_leveling_8byte_SRC := \
	$(wear_leveling_common_SRC) \
	$(QUANTUM_PATH)/wear_leveling/tests/wear_leveling_8byte.cpp
wear_leveling_8byte_INC := \
	$(wear_leveling_common_INC)