De-duplicate platform detection (#19545)
This commit is contained in:
		
							parent
							
								
									20474ae232
								
							
						
					
					
						commit
						e11235ee14
					
				
					 7 changed files with 21 additions and 18 deletions
				
			
		| 
						 | 
				
			
			@ -36,6 +36,8 @@
 | 
			
		|||
# the respective file under `platforms/<PLATFORM>/bootloaders/custom.c` to see
 | 
			
		||||
# which functions may be overridden.
 | 
			
		||||
 | 
			
		||||
FIRMWARE_FORMAT?=bin
 | 
			
		||||
 | 
			
		||||
ifeq ($(strip $(BOOTLOADER)), custom)
 | 
			
		||||
    OPT_DEFS += -DBOOTLOADER_CUSTOM
 | 
			
		||||
    BOOTLOADER_TYPE = custom
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -442,6 +442,9 @@ LDFLAGS  += $(SHARED_LDFLAGS) $(SHARED_LDSYMBOLS) $(TOOLCHAIN_LDFLAGS) $(TOOLCHA
 | 
			
		|||
# Tell QMK that we are hosting it on ChibiOS.
 | 
			
		||||
OPT_DEFS += -DPROTOCOL_CHIBIOS
 | 
			
		||||
 | 
			
		||||
# And what flavor of MCU
 | 
			
		||||
OPT_DEFS += -DMCU_$(MCU_FAMILY)
 | 
			
		||||
 | 
			
		||||
# ChibiOS supports synchronization primitives like a Mutex
 | 
			
		||||
OPT_DEFS += -DPLATFORM_SUPPORTS_SYNCHRONIZATION
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue