|  |  |  | @ -7,7 +7,7 @@ from pathlib import Path | 
			
		
	
		
			
				
					|  |  |  |  | from openpilot.common.basedir import BASEDIR | 
			
		
	
		
			
				
					|  |  |  |  | from openpilot.common.spinner import Spinner | 
			
		
	
		
			
				
					|  |  |  |  | from openpilot.common.text_window import TextWindow | 
			
		
	
		
			
				
					|  |  |  |  | from openpilot.system.hardware import AGNOS | 
			
		
	
		
			
				
					|  |  |  |  | from openpilot.system.hardware import HARDWARE, AGNOS | 
			
		
	
		
			
				
					|  |  |  |  | from openpilot.common.swaglog import cloudlog, add_file_handler | 
			
		
	
		
			
				
					|  |  |  |  | from openpilot.system.version import get_build_metadata | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -26,6 +26,10 @@ def build(spinner: Spinner, dirty: bool = False, minimal: bool = False) -> None: | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   extra_args = ["--minimal"] if minimal else [] | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   if AGNOS: | 
			
		
	
		
			
				
					|  |  |  |  |     HARDWARE.set_power_save(False) | 
			
		
	
		
			
				
					|  |  |  |  |     os.sched_setaffinity(0, range(8))  # ensure we can use the isolcpus cores | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   # building with all cores can result in using too | 
			
		
	
		
			
				
					|  |  |  |  |   # much memory, so retry with less parallelism | 
			
		
	
		
			
				
					|  |  |  |  |   compile_output: list[bytes] = [] | 
			
		
	
	
		
			
				
					|  |  |  | 
 |