richardphibel / rpms / systemd

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