teknoraver / rpms / systemd

Forked from rpms/systemd a month ago
Clone

Blame SOURCES/0050-meson-move-efi-file-lists-closer-to-where-they-are-u.patch

594167
From 9cfc2fd3c58609252b3fd203af95bec1aab1b832 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 12:55:40 +0100
594167
Subject: [PATCH] meson: move efi file lists closer to where they are used
594167
594167
The goal is to have the detection of features and paths done first, and
594167
then the build target constructions second.
594167
594167
(cherry picked from commit 65dcf9f9a0d877de0dc53558547462a7f1750c78)
594167
594167
Related: #2017035
594167
---
594167
 src/boot/efi/meson.build | 104 +++++++++++++++++++--------------------
594167
 1 file changed, 51 insertions(+), 53 deletions(-)
594167
594167
diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build
594167
index e10e51cf4e..1125c64ea3 100644
594167
--- a/src/boot/efi/meson.build
594167
+++ b/src/boot/efi/meson.build
594167
@@ -99,59 +99,6 @@ if efi_lds == ''
594167
         subdir_done()
594167
 endif
594167
 
594167
-efi_headers = files('''
594167
-        bcd.h
594167
-        console.h
594167
-        cpio.h
594167
-        devicetree.h
594167
-        disk.h
594167
-        drivers.h
594167
-        graphics.h
594167
-        linux.h
594167
-        measure.h
594167
-        missing_efi.h
594167
-        pe.h
594167
-        random-seed.h
594167
-        shim.h
594167
-        splash.h
594167
-        util.h
594167
-        xbootldr.h
594167
-'''.split())
594167
-
594167
-common_sources = '''
594167
-        assert.c
594167
-        devicetree.c
594167
-        disk.c
594167
-        graphics.c
594167
-        measure.c
594167
-        pe.c
594167
-        secure-boot.c
594167
-        util.c
594167
-'''.split()
594167
-
594167
-systemd_boot_sources = '''
594167
-        bcd.c
594167
-        boot.c
594167
-        console.c
594167
-        drivers.c
594167
-        random-seed.c
594167
-        shim.c
594167
-        xbootldr.c
594167
-'''.split()
594167
-
594167
-stub_sources = '''
594167
-        cpio.c
594167
-        initrd.c
594167
-        splash.c
594167
-        stub.c
594167
-'''.split()
594167
-
594167
-if efi_arch[1] in ['ia32', 'x86_64']
594167
-        stub_sources += 'linux_x86.c'
594167
-else
594167
-        stub_sources += 'linux.c'
594167
-endif
594167
-
594167
 conf.set10('HAVE_GNU_EFI', true)
594167
 conf.set_quoted('EFI_MACHINE_TYPE_NAME', efi_arch[0])
594167
 
594167
@@ -332,6 +279,57 @@ 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
+############################################################
594167
+
594167
+efi_headers = files(
594167
+        'bcd.h',
594167
+        'console.h',
594167
+        'cpio.h',
594167
+        'devicetree.h',
594167
+        'disk.h',
594167
+        'drivers.h',
594167
+        'graphics.h',
594167
+        'linux.h',
594167
+        'measure.h',
594167
+        'missing_efi.h',
594167
+        'pe.h',
594167
+        'random-seed.h',
594167
+        'shim.h',
594167
+        'splash.h',
594167
+        'util.h',
594167
+        'xbootldr.h')
594167
+
594167
+common_sources = [
594167
+        'assert.c',
594167
+        'devicetree.c',
594167
+        'disk.c',
594167
+        'graphics.c',
594167
+        'measure.c',
594167
+        'pe.c',
594167
+        'secure-boot.c',
594167
+        'util.c']
594167
+
594167
+systemd_boot_sources = [
594167
+        'bcd.c',
594167
+        'boot.c',
594167
+        'console.c',
594167
+        'drivers.c',
594167
+        'random-seed.c',
594167
+        'shim.c',
594167
+        'xbootldr.c']
594167
+
594167
+stub_sources = [
594167
+        'cpio.c',
594167
+        'initrd.c',
594167
+        'splash.c',
594167
+        'stub.c']
594167
+
594167
+if efi_arch[1] in ['ia32', 'x86_64']
594167
+        stub_sources += 'linux_x86.c'
594167
+else
594167
+        stub_sources += 'linux.c'
594167
+endif
594167
+
594167
 systemd_boot_objects = []
594167
 stub_objects = []
594167
 foreach file : fundamental_source_paths + common_sources + systemd_boot_sources + stub_sources