mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-03 21:48:15 +00:00 
			
		
		
		
	Attempting to use a toolchain that is preconfigured to generate code for the 32-bit architecture (i386), for example, the i386-linux-gcc toolchain on kernel.org, to compile the 64-bit EFI payload does not build. This updates the makefile fragments to ensure '-m64' is passed to toolchain when building the 64-bit EFI payload stub codes. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
		
			
				
	
	
		
			18 lines
		
	
	
		
			551 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			551 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
# SPDX-License-Identifier: GPL-2.0+
 | 
						|
#
 | 
						|
# (C) Copyright 2015 Google, Inc
 | 
						|
 | 
						|
obj-$(CONFIG_EFI_APP) += efi_app.o efi.o
 | 
						|
obj-$(CONFIG_EFI_STUB) += efi_info.o
 | 
						|
 | 
						|
CFLAGS_REMOVE_efi_stub.o := -mregparm=3 \
 | 
						|
	$(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
 | 
						|
CFLAGS_efi_stub.o := -fpic -fshort-wchar -DEFI_STUB \
 | 
						|
	$(if $(CONFIG_EFI_STUB_64BIT),-m64)
 | 
						|
CFLAGS_REMOVE_efi.o := -mregparm=3 \
 | 
						|
	$(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
 | 
						|
CFLAGS_efi.o := -fpic -fshort-wchar -DEFI_STUB \
 | 
						|
	$(if $(CONFIG_EFI_STUB_64BIT),-m64)
 | 
						|
 | 
						|
extra-$(CONFIG_EFI_STUB) += efi_stub.o efi.o
 |