Skip to content

Commit f49182e

Browse files
Ard BiesheuvelMatt Fleming
authored andcommitted
efi/arm64: efistub: remove local copy of linux_banner
The shared efistub code for ARM and arm64 contains a local copy of linux_banner, allowing it to be referenced from separate executables such as the ARM decompressor. However, this introduces a dependency on generated header files, causing unnecessary rebuilds of the stub itself and, in case of arm64, vmlinux which contains it. On arm64, the copy is not actually needed since we can reference the original symbol directly, and as it turns out, there may be better ways to deal with this for ARM as well, so let's remove it from the shared code. If it still needs to be reintroduced for ARM later, it should live under arch/arm anyway and not in shared code. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Acked-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
1 parent 4bf7111 commit f49182e

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

‎arch/arm64/kernel/efi-stub.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
#include <linux/efi.h>
1313
#include <linux/libfdt.h>
1414
#include <asm/sections.h>
15-
#include <generated/compile.h>
16-
#include <generated/utsrelease.h>
1715

1816
/*
1917
* AArch64 requires the DTB to be 8-byte aligned in the first 512MiB from

‎drivers/firmware/efi/fdt.c‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,6 @@ static efi_status_t update_fdt(efi_system_table_t *sys_table, void *orig_fdt,
2323
u32 fdt_val32;
2424
u64 fdt_val64;
2525

26-
/*
27-
* Copy definition of linux_banner here. Since this code is
28-
* built as part of the decompressor for ARM v7, pulling
29-
* in version.c where linux_banner is defined for the
30-
* kernel brings other kernel dependencies with it.
31-
*/
32-
const char linux_banner[] =
33-
"Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
34-
LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
35-
3626
/* Do some checks on provided FDT, if it exists*/
3727
if (orig_fdt) {
3828
if (fdt_check_header(orig_fdt)) {

0 commit comments

Comments
 (0)