 e22efc037a
			
		
	
	
		e22efc037a
		
			
		
	
	
	
	
		
			
			* Don't make EEPROM size assumptions with dynamic keymaps. * Add support for checking against emulated flash, error out if someone attempts to build a board without specifying EEPROM size. * Reorder defines so that MCU is considered last. * Refactor EEPROM definitions for simplicity. * Fix max sizing of kabedon/kabedon980. * Fix max sizing of mechlovin/olly/jf. * Fix unit tests. * Review comments, add messages with values during build failures.
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			850 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			850 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| eeprom_stm32_DEFS  := -DEEPROM_TEST_HARNESS -DFLASH_STM32_MOCKED -DNO_PRINT -DFEE_FLASH_BASE=FlashBuf
 | |
| eeprom_stm32_tiny_DEFS := $(eeprom_stm32_DEFS) \
 | |
| 	-DFEE_MCU_FLASH_SIZE=1 \
 | |
| 	-DMOCK_FLASH_SIZE=1024 \
 | |
| 	-DFEE_PAGE_SIZE=512 \
 | |
| 	-DFEE_PAGE_COUNT=1
 | |
| eeprom_stm32_large_DEFS := $(eeprom_stm32_DEFS) \
 | |
| 	-DFEE_MCU_FLASH_SIZE=64 \
 | |
| 	-DMOCK_FLASH_SIZE=65536 \
 | |
| 	-DFEE_PAGE_SIZE=2048 \
 | |
| 	-DFEE_PAGE_COUNT=16
 | |
| 
 | |
| eeprom_stm32_INC := \
 | |
| 	$(PLATFORM_PATH)/chibios/
 | |
| eeprom_stm32_tiny_INC := $(eeprom_stm32_INC)
 | |
| eeprom_stm32_large_INC := $(eeprom_stm32_INC)
 | |
| 
 | |
| eeprom_stm32_SRC := \
 | |
| 	$(TOP_DIR)/drivers/eeprom/eeprom_driver.c \
 | |
| 	$(PLATFORM_PATH)/$(PLATFORM_KEY)/eeprom_stm32_tests.cpp \
 | |
| 	$(PLATFORM_PATH)/$(PLATFORM_KEY)/flash_stm32_mock.c \
 | |
| 	$(PLATFORM_PATH)/chibios/eeprom_stm32.c
 | |
| eeprom_stm32_tiny_SRC := $(eeprom_stm32_SRC)
 | |
| eeprom_stm32_large_SRC := $(eeprom_stm32_SRC)
 |