Better way to handle the 'EFI mixed mode' edge case when building 64-bit MLL.
This commit is contained in:
		
							parent
							
								
									05855e875c
								
							
						
					
					
						commit
						dcfa71368f
					
				| @ -92,12 +92,8 @@ else | |||||||
|   # Disable Apple Properties (Useful for Macs but useless in general) |   # Disable Apple Properties (Useful for Macs but useless in general) | ||||||
|   echo "CONFIG_APPLE_PROPERTIES=n" >> .config |   echo "CONFIG_APPLE_PROPERTIES=n" >> .config | ||||||
| 
 | 
 | ||||||
|   # Check if we are building 32-bit kernel. The exit code is '1' when we are |   # Check if we are building 64-bit kernel. | ||||||
|   # building 64-bit kernel, otherwise the exit code is '0'. |   if [ "`grep "CONFIG_X86_64=y" .config`" = "CONFIG_X86_64=y" ] ; then | ||||||
|   grep -q "CONFIG_X86_32=y" .config |  | ||||||
| 
 |  | ||||||
|   # The '$?' variable holds the exit code of the last issued command. |  | ||||||
|   if [ $? = 1 ] ; then |  | ||||||
|     # Enable the mixed EFI mode when building 64-bit kernel. |     # Enable the mixed EFI mode when building 64-bit kernel. | ||||||
|     echo "CONFIG_EFI_MIXED=y" >> .config |     echo "CONFIG_EFI_MIXED=y" >> .config | ||||||
|   fi |   fi | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user