* SPDX-License-Identifier: LGPL-2.1+
*/
+#include "config.h"
+
#include <efi.h>
#include <efilib.h>
#include "fwup-cleanups.h"
#include "fwup-common.h"
-#include "fwup-efi.h"
#include "fwup-debug.h"
+#include "fwup-efi.h"
#define UNUSED __attribute__((__unused__))
#define GNVN_BUF_SIZE 1024
/* if SHIM_DEBUG is set, fwup_info info for our attached debugger */
fwup_debug_hook();
+ /* show the version to screen */
+ fwup_info(L"fwupd-efi version " PACKAGE_VERSION);
+
/* step 1: find and validate update state variables */
/* XXX TODO:
* 1) survey the reset types first, and separate into groups
'-Wno-address-of-packed-member',
'-grecord-gcc-switches',
'-DDEBUGDIR="@0@"'.format(debugdir),
+ '-I.',
'-isystem', efi_incdir,
'-isystem', join_paths(efi_incdir, gnu_efi_path_arch)]
if get_option('werror')
default_options : ['warning_level=2', 'c_std=c99'],
)
+conf = configuration_data()
+conf.set_quoted('PACKAGE_VERSION', meson.project_version())
+
cc = meson.get_compiler('c')
objcopy = find_program('objcopy')
warning('-Defi_sbat_distro_id is unset, see README.md')
endif
+configure_file(
+ output : 'config.h',
+ configuration : conf
+)
+
pkgg = import('pkgconfig')
pkgg.generate(
version : meson.project_version(),