|
|
8d419f |
From a6c93d3200c0fd0eeee3a725b428cee94108cf48 Mon Sep 17 00:00:00 2001
|
|
|
8d419f |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
|
8d419f |
Date: Thu, 23 Dec 2021 13:05:01 +0100
|
|
|
8d419f |
Subject: [PATCH] meson: move efi summary() section to src/boot/efi
|
|
|
8d419f |
|
|
|
8d419f |
This way we can add the entries more naturally in the same place where
|
|
|
8d419f |
they are defined.
|
|
|
8d419f |
|
|
|
8d419f |
(cherry picked from commit 3f871f120520aa2d11218735b0741bacc0309b4d)
|
|
|
8d419f |
|
|
|
8d419f |
Related: #2017035
|
|
|
8d419f |
---
|
|
|
8d419f |
meson.build | 16 ++++------------
|
|
|
8d419f |
src/boot/efi/meson.build | 9 +++++++++
|
|
|
8d419f |
2 files changed, 13 insertions(+), 12 deletions(-)
|
|
|
8d419f |
|
|
|
8d419f |
diff --git a/meson.build b/meson.build
|
|
|
8d419f |
index e07875a054..f040eeab99 100644
|
|
|
8d419f |
--- a/meson.build
|
|
|
8d419f |
+++ b/meson.build
|
|
|
8d419f |
@@ -43,6 +43,10 @@ endif
|
|
|
8d419f |
skip_deps = want_ossfuzz or want_libfuzzer
|
|
|
8d419f |
fuzzer_build = want_ossfuzz or want_libfuzzer
|
|
|
8d419f |
|
|
|
8d419f |
+# Create a title-less summary section early, so it ends up first in the output.
|
|
|
8d419f |
+# More items are added later after they have been detected.
|
|
|
8d419f |
+summary({'build mode' : get_option('mode')})
|
|
|
8d419f |
+
|
|
|
8d419f |
#####################################################################
|
|
|
8d419f |
|
|
|
8d419f |
# Try to install the git pre-commit hook
|
|
|
8d419f |
@@ -3902,7 +3906,6 @@ alt_time_epoch = run_command('date', '-Is', '-u', '-d', '@@0@'.format(time_epoch
|
|
|
8d419f |
check : true).stdout().strip()
|
|
|
8d419f |
|
|
|
8d419f |
summary({
|
|
|
8d419f |
- 'build mode' : get_option('mode'),
|
|
|
8d419f |
'split /usr' : split_usr,
|
|
|
8d419f |
'split bin-sbin' : split_bin,
|
|
|
8d419f |
'prefix directory' : prefixdir,
|
|
|
8d419f |
@@ -3960,17 +3963,6 @@ summary({
|
|
|
8d419f |
# CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
|
|
|
8d419f |
# LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}
|
|
|
8d419f |
|
|
|
8d419f |
-if conf.get('ENABLE_EFI') == 1 and conf.get('HAVE_GNU_EFI') == 1
|
|
|
8d419f |
- summary({
|
|
|
8d419f |
- 'EFI machine type' : efi_arch[0],
|
|
|
8d419f |
- 'EFI CC' : '@0@'.format(' '.join(efi_cc)),
|
|
|
8d419f |
- 'EFI LD' : efi_ld,
|
|
|
8d419f |
- 'EFI lds' : efi_lds,
|
|
|
8d419f |
- 'EFI crt0' : efi_crt0,
|
|
|
8d419f |
- 'EFI include directory' : efi_incdir},
|
|
|
8d419f |
- section : 'Extensible Firmware Interface')
|
|
|
8d419f |
-endif
|
|
|
8d419f |
-
|
|
|
8d419f |
found = []
|
|
|
8d419f |
missing = []
|
|
|
8d419f |
|
|
|
8d419f |
diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build
|
|
|
8d419f |
index 1125c64ea3..dd318079fc 100644
|
|
|
8d419f |
--- a/src/boot/efi/meson.build
|
|
|
8d419f |
+++ b/src/boot/efi/meson.build
|
|
|
8d419f |
@@ -279,6 +279,15 @@ if efi_cc_version.contains('clang') and efi_cc_version.split('.')[0].split(' ')[
|
|
|
8d419f |
efi_ldflags += ['-Wl,-T,' + efi_lds, '-Wno-unused-command-line-argument']
|
|
|
8d419f |
endif
|
|
|
8d419f |
|
|
|
8d419f |
+summary({
|
|
|
8d419f |
+ 'EFI machine type' : efi_arch[0],
|
|
|
8d419f |
+ 'EFI CC' : '@0@'.format(' '.join(efi_cc)),
|
|
|
8d419f |
+ 'EFI LD' : efi_ld,
|
|
|
8d419f |
+ 'EFI lds' : efi_lds,
|
|
|
8d419f |
+ 'EFI crt0' : efi_crt0,
|
|
|
8d419f |
+ 'EFI include directory' : efi_incdir},
|
|
|
8d419f |
+ section : 'Extensible Firmware Interface')
|
|
|
8d419f |
+
|
|
|
8d419f |
############################################################
|
|
|
8d419f |
|
|
|
8d419f |
efi_headers = files(
|