Remove legacy bootmagic cli parsing (#18099)
This commit is contained in:
		
							parent
							
								
									9550cc464c
								
							
						
					
					
						commit
						3c745caf61
					
				
					 1 changed files with 1 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -110,14 +110,7 @@ def info_json(keyboard):
 | 
			
		|||
def _extract_features(info_data, rules):
 | 
			
		||||
    """Find all the features enabled in rules.mk.
 | 
			
		||||
    """
 | 
			
		||||
    # Special handling for bootmagic which also supports a "lite" mode.
 | 
			
		||||
    if rules.get('BOOTMAGIC_ENABLE') == 'lite':
 | 
			
		||||
        rules['BOOTMAGIC_LITE_ENABLE'] = 'on'
 | 
			
		||||
        del rules['BOOTMAGIC_ENABLE']
 | 
			
		||||
    if rules.get('BOOTMAGIC_ENABLE') == 'full':
 | 
			
		||||
        rules['BOOTMAGIC_ENABLE'] = 'on'
 | 
			
		||||
 | 
			
		||||
    # Process the rest of the rules as booleans
 | 
			
		||||
    # Process booleans rules
 | 
			
		||||
    for key, value in rules.items():
 | 
			
		||||
        if key.endswith('_ENABLE'):
 | 
			
		||||
            key = '_'.join(key.split('_')[:-1]).lower()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue