Add setting of the master side to the makefile
This commit is contained in:
		
							parent
							
								
									4b45deb652
								
							
						
					
					
						commit
						e5726b017a
					
				
					 2 changed files with 23 additions and 0 deletions
				
			
		
							
								
								
									
										14
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								Makefile
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -59,6 +59,12 @@ ifndef KEYBOARD
 | 
			
		|||
	KEYBOARD=planck
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
MASTER ?= left
 | 
			
		||||
ifdef master
 | 
			
		||||
	MASTER = $(master)
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# converts things to keyboards/subproject
 | 
			
		||||
ifneq (,$(findstring /,$(KEYBOARD)))
 | 
			
		||||
	TEMP:=$(KEYBOARD)
 | 
			
		||||
| 
						 | 
				
			
			@ -212,6 +218,14 @@ ifeq ($(strip $(SERIAL_LINK_ENABLE)), yes)
 | 
			
		|||
	VAPTH += $(SERIAL_PATH)
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
ifeq ($(MASTER),right)	
 | 
			
		||||
	OPT_DEFS += -DMASTER_IS_ON_RIGHT
 | 
			
		||||
else 
 | 
			
		||||
	ifneq ($(MASTER),left)
 | 
			
		||||
$(error MASTER does not have a valid value(left/right))
 | 
			
		||||
	endif
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
# Optimize size but this may cause error "relocation truncated to fit"
 | 
			
		||||
#EXTRALDFLAGS = -Wl,--relax
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue