OSDN Git Service

arm64/efi: move arm64 specific stub C code to libstub
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 23 Oct 2015 14:48:14 +0000 (16:48 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 30 Oct 2015 16:02:52 +0000 (16:02 +0000)
commitbf457786f569cc480629d7855cac1fd1173ac009
treef4f2eea9505db363050ae55eb80b2317b2446eb9
parentcb083816ab5ac3d10a9417527f07fc5962cc3808
arm64/efi: move arm64 specific stub C code to libstub

Now that we added special handling to the C files in libstub, move
the one remaining arm64 specific EFI stub C file to libstub as
well, so that it gets the same treatment. This should prevent future
changes from resulting in binaries that may execute incorrectly in
UEFI context.

With efi-entry.S the only remaining EFI stub source file under
arch/arm64, we can also simplify the Makefile logic somewhat.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Matt Fleming <matt@codeblueprint.co.uk>
Tested-by: Jeremy Linton <jeremy.linton@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/Makefile
drivers/firmware/efi/libstub/Makefile
drivers/firmware/efi/libstub/arm64-stub.c [moved from arch/arm64/kernel/efi-stub.c with 100% similarity]