Skip to content

Instantly share code, notes, and snippets.

@Hummer12007
Created May 1, 2017 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hummer12007/a253dd925f8531d77f77ddfdd261ff85 to your computer and use it in GitHub Desktop.
Save Hummer12007/a253dd925f8531d77f77ddfdd261ff85 to your computer and use it in GitHub Desktop.
meson.build for building only systemd-boot from systemd codebase
project('systemd-boot', 'c',
version : '233',
license : 'LGPLv2+',
default_options: [
'c_std=gnu99',
'prefix=/usr',
'sysconfdir=/etc',
'localstatedir=/var',
],
meson_version : '>= 0.40',
)
conf = configuration_data()
cc = meson.get_compiler('c')
bootlibdir = '/lib/systemd/boot/efi'
test_efi_create_disk_sh = ''
splash_bmp = ''
if get_option('efi')
efi_arch = host_machine.cpu_family()
if efi_arch == 'x86'
EFI_MACHINE_TYPE_NAME = 'ia32'
gnu_efi_arch = 'ia32'
elif efi_arch == 'x86_64'
EFI_MACHINE_TYPE_NAME = 'x64'
gnu_efi_arch = 'x86_64'
elif efi_arch == 'arm'
EFI_MACHINE_TYPE_NAME = 'arm'
gnu_efi_arch = 'arm'
elif efi_arch == 'aarch64'
EFI_MACHINE_TYPE_NAME = 'aa64'
gnu_efi_arch = 'aarch64'
else
EFI_MACHINE_TYPE_NAME = ''
gnu_efi_arch = ''
endif
conf.set('ENABLE_EFI', 1)
conf.set_quoted('EFI_MACHINE_TYPE_NAME', EFI_MACHINE_TYPE_NAME)
conf.set('SD_TPM_PCR', get_option('tpm-pcrindex').to_int())
endif
config_h = configure_file(
output : 'config.h',
configuration : conf)
subdir('src/boot/efi')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment