]> www.infradead.org Git - users/jedix/linux-maple.git/commit
conditionalize Secure Boot initialization on x86 platform
authorDan Duval <dan.duval@oracle.com>
Sat, 12 Dec 2015 08:09:55 +0000 (03:09 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 16 Mar 2016 15:20:09 +0000 (08:20 -0700)
commit642010a97cf364d7dd1b67d9a28a1d4b80592a23
tree8f90639dcd55c0473680c5abad02d0f53f37b080
parent7744d564001adfc0eedb4ace1f2d7a23d383d700
conditionalize Secure Boot initialization on x86 platform

Orabug: 22364965

A previous commit, bbb87ba5690c72821614acdd465c24eeb99fa923,
introduced a call to efi_secure_boot_init() into the start_kernel()
sequence.  The new call was not conditionalized based on platform.

Secure Boot is only implmented on the x86 platform; the definition
of efi_secure_boot_init() is in arch/x86/platform/efi/efi.c.  On
non-x86 architectures, this caused a implicit-declaration error and
broke the build.

This commit wraps the call in #ifdef CONFIG_X86/#endif to eliminate
the error.

Signed-off-by: Dan Duval <dan.duval@oracle.com>
(cherry picked from commit 289ef170a213f9b078886327a162cbcb7a325838)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
init/main.c