mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-31 13:22:31 +01:00 
			
		
		
		
	Fixup compilation with qmk compile -kb zzz -km all. (#22568)
				
					
				
			This commit is contained in:
		
							parent
							
								
									5c20a84540
								
							
						
					
					
						commit
						b7df75e47f
					
				| @ -33,6 +33,8 @@ def compile(cli): | |||||||
| 
 | 
 | ||||||
|     If a keyboard and keymap are provided this command will build a firmware based on that. |     If a keyboard and keymap are provided this command will build a firmware based on that. | ||||||
|     """ |     """ | ||||||
|  | 
 | ||||||
|  |     # If we've received `-kb all`, reroute it to mass-compile. | ||||||
|     if is_all_keyboards(cli.args.keyboard): |     if is_all_keyboards(cli.args.keyboard): | ||||||
|         from .mass_compile import mass_compile |         from .mass_compile import mass_compile | ||||||
|         cli.args.builds = [] |         cli.args.builds = [] | ||||||
| @ -42,6 +44,16 @@ def compile(cli): | |||||||
|         cli.config.mass_compile.no_temp = False |         cli.config.mass_compile.no_temp = False | ||||||
|         return mass_compile(cli) |         return mass_compile(cli) | ||||||
| 
 | 
 | ||||||
|  |     # If we've received `-km all`, reroute it to mass-compile. | ||||||
|  |     if cli.args.keymap == 'all': | ||||||
|  |         from .mass_compile import mass_compile | ||||||
|  |         cli.args.builds = [f'{cli.args.keyboard}:all'] | ||||||
|  |         cli.args.filter = [] | ||||||
|  |         cli.config.mass_compile.keymap = None | ||||||
|  |         cli.config.mass_compile.parallel = cli.config.compile.parallel | ||||||
|  |         cli.config.mass_compile.no_temp = False | ||||||
|  |         return mass_compile(cli) | ||||||
|  | 
 | ||||||
|     # Build the environment vars |     # Build the environment vars | ||||||
|     envs = build_environment(cli.args.env) |     envs = build_environment(cli.args.env) | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Nick Brassel
						Nick Brassel