• Ard Biesheuvel's avatar
    efi/libstub: Move efi_random_alloc() into separate source file · 0ed02bda
    Ard Biesheuvel authored
    efi_random_alloc() is only used on arm64, but as it shares a source
    file with efi_random_get_seed(), the latter will pull in the former
    on other architectures as well.
    
    Let's take advantage of the fact that libstub is a static library,
    and so the linker will only incorporate objects that are needed to
    satisfy dependencies in other objects. This means we can move the
    random alloc code to a separate source file that gets built
    unconditionally, but only used when needed.
    Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
    0ed02bda
Makefile 4.15 KB