diff options
author | Matt Fleming <matt.fleming@intel.com> | 2014-03-05 05:15:55 -0500 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2014-03-05 05:19:07 -0500 |
commit | 3db4cafdfd05717dc939780134e53023a3c1f15f (patch) | |
tree | a8273056b840931acf5ab781b22a8128c82733b8 /arch/x86/boot/compressed | |
parent | b663a685831905066e3efcb4c173cd8b3f46228b (diff) |
x86/boot: Fix non-EFI build
The kbuild test robot reported the following errors, introduced with
commit 54b52d872680 ("x86/efi: Build our own EFI services pointer
table"),
arch/x86/boot/compressed/head_32.o: In function `efi32_config':
>> (.data+0x58): undefined reference to `efi_call_phys'
arch/x86/boot/compressed/head_64.o: In function `efi64_config':
>> (.data+0x90): undefined reference to `efi_call6'
Wrap the efi*_config structures in #ifdef CONFIG_EFI_STUB so that we
don't make references to EFI functions if they're not compiled in.
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'arch/x86/boot/compressed')
-rw-r--r-- | arch/x86/boot/compressed/head_32.S | 2 | ||||
-rw-r--r-- | arch/x86/boot/compressed/head_64.S | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/boot/compressed/head_32.S b/arch/x86/boot/compressed/head_32.S index cccc05f0681c..de9d4200d305 100644 --- a/arch/x86/boot/compressed/head_32.S +++ b/arch/x86/boot/compressed/head_32.S | |||
@@ -229,12 +229,14 @@ relocated: | |||
229 | xorl %ebx, %ebx | 229 | xorl %ebx, %ebx |
230 | jmp *%eax | 230 | jmp *%eax |
231 | 231 | ||
232 | #ifdef CONFIG_EFI_STUB | ||
232 | .data | 233 | .data |
233 | efi32_config: | 234 | efi32_config: |
234 | .fill 11,8,0 | 235 | .fill 11,8,0 |
235 | .long efi_call_phys | 236 | .long efi_call_phys |
236 | .long 0 | 237 | .long 0 |
237 | .byte 0 | 238 | .byte 0 |
239 | #endif | ||
238 | 240 | ||
239 | /* | 241 | /* |
240 | * Stack and heap for uncompression | 242 | * Stack and heap for uncompression |
diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/compressed/head_64.S index 4f40cddd025d..57e58a5fa210 100644 --- a/arch/x86/boot/compressed/head_64.S +++ b/arch/x86/boot/compressed/head_64.S | |||
@@ -440,6 +440,7 @@ gdt: | |||
440 | .quad 0x0000000000000000 /* TS continued */ | 440 | .quad 0x0000000000000000 /* TS continued */ |
441 | gdt_end: | 441 | gdt_end: |
442 | 442 | ||
443 | #ifdef CONFIG_EFI_STUB | ||
443 | efi_config: | 444 | efi_config: |
444 | .quad 0 | 445 | .quad 0 |
445 | 446 | ||
@@ -456,6 +457,8 @@ efi64_config: | |||
456 | .fill 11,8,0 | 457 | .fill 11,8,0 |
457 | .quad efi_call6 | 458 | .quad efi_call6 |
458 | .byte 1 | 459 | .byte 1 |
460 | #endif /* CONFIG_EFI_STUB */ | ||
461 | |||
459 | /* | 462 | /* |
460 | * Stack and heap for uncompression | 463 | * Stack and heap for uncompression |
461 | */ | 464 | */ |