qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

rules.mk (2165B)


      1 wear_leveling_common_DEFS := \
      2 	-DWEAR_LEVELING_TESTS
      3 wear_leveling_common_SRC := \
      4 	$(LIB_PATH)/fnv/qmk_fnv_type_validation.c \
      5 	$(LIB_PATH)/fnv/hash_32a.c \
      6 	$(LIB_PATH)/fnv/hash_64a.c \
      7 	$(QUANTUM_PATH)/wear_leveling/wear_leveling.c \
      8 	$(QUANTUM_PATH)/wear_leveling/tests/backing_mocks.cpp
      9 wear_leveling_common_INC := \
     10 	$(LIB_PATH)/fnv \
     11 	$(QUANTUM_PATH)/wear_leveling
     12 
     13 wear_leveling_general_DEFS := \
     14 	$(wear_leveling_common_DEFS) \
     15 	-DBACKING_STORE_WRITE_SIZE=2 \
     16 	-DWEAR_LEVELING_BACKING_SIZE=48 \
     17 	-DWEAR_LEVELING_LOGICAL_SIZE=16
     18 wear_leveling_general_SRC := \
     19 	$(wear_leveling_common_SRC) \
     20 	$(QUANTUM_PATH)/wear_leveling/tests/wear_leveling_general.cpp
     21 wear_leveling_general_INC := \
     22 	$(wear_leveling_common_INC)
     23 
     24 wear_leveling_2byte_optimized_writes_DEFS := \
     25 	$(wear_leveling_common_DEFS) \
     26 	-DBACKING_STORE_WRITE_SIZE=2 \
     27 	-DWEAR_LEVELING_BACKING_SIZE=65536 \
     28 	-DWEAR_LEVELING_LOGICAL_SIZE=32768
     29 wear_leveling_2byte_optimized_writes_SRC := \
     30 	$(wear_leveling_common_SRC) \
     31 	$(QUANTUM_PATH)/wear_leveling/tests/wear_leveling_2byte_optimized_writes.cpp
     32 wear_leveling_2byte_optimized_writes_INC := \
     33 	$(wear_leveling_common_INC)
     34 
     35 wear_leveling_2byte_DEFS := \
     36 	$(wear_leveling_common_DEFS) \
     37 	-DBACKING_STORE_WRITE_SIZE=2 \
     38 	-DWEAR_LEVELING_BACKING_SIZE=48 \
     39 	-DWEAR_LEVELING_LOGICAL_SIZE=16
     40 wear_leveling_2byte_SRC := \
     41 	$(wear_leveling_common_SRC) \
     42 	$(QUANTUM_PATH)/wear_leveling/tests/wear_leveling_2byte.cpp
     43 wear_leveling_2byte_INC := \
     44 	$(wear_leveling_common_INC)
     45 
     46 wear_leveling_4byte_DEFS := \
     47 	$(wear_leveling_common_DEFS) \
     48 	-DBACKING_STORE_WRITE_SIZE=4 \
     49 	-DWEAR_LEVELING_BACKING_SIZE=48 \
     50 	-DWEAR_LEVELING_LOGICAL_SIZE=16
     51 wear_leveling_4byte_SRC := \
     52 	$(wear_leveling_common_SRC) \
     53 	$(QUANTUM_PATH)/wear_leveling/tests/wear_leveling_4byte.cpp
     54 wear_leveling_4byte_INC := \
     55 	$(wear_leveling_common_INC)
     56 
     57 wear_leveling_8byte_DEFS := \
     58 	$(wear_leveling_common_DEFS) \
     59 	-DBACKING_STORE_WRITE_SIZE=8 \
     60 	-DWEAR_LEVELING_BACKING_SIZE=48 \
     61 	-DWEAR_LEVELING_LOGICAL_SIZE=16
     62 wear_leveling_8byte_SRC := \
     63 	$(wear_leveling_common_SRC) \
     64 	$(QUANTUM_PATH)/wear_leveling/tests/wear_leveling_8byte.cpp
     65 wear_leveling_8byte_INC := \
     66 	$(wear_leveling_common_INC)