uefi: Merge plugin_uefi and plugin_uefi_labels configure options

This commit is contained in:
Mario Limonciello 2018-06-25 14:19:11 -05:00 committed by Richard Hughes
parent 37ea678db5
commit f771bde71f
9 changed files with 39 additions and 21 deletions

View File

@ -8,7 +8,6 @@ cd build
meson .. \ meson .. \
--werror \ --werror \
-Dplugin_uefi=false \ -Dplugin_uefi=false \
-Dplugin_uefi_labels=false \
-Dplugin_dell=false \ -Dplugin_dell=false \
-Dplugin_synaptics=true \ -Dplugin_synaptics=true \
-Dintrospection=true \ -Dintrospection=true \

View File

@ -11,7 +11,6 @@ meson .. \
--cross-file s390x_cross.txt \ --cross-file s390x_cross.txt \
--werror \ --werror \
-Dplugin_uefi=false \ -Dplugin_uefi=false \
-Dplugin_uefi_labels=false \
-Dplugin_dell=false \ -Dplugin_dell=false \
-Dplugin_synaptics=false \ -Dplugin_synaptics=false \
-Dintrospection=false \ -Dintrospection=false \

View File

@ -140,10 +140,8 @@ Data files for installed tests.
-Dplugin_thunderbolt=true \ -Dplugin_thunderbolt=true \
%if 0%{?have_uefi} %if 0%{?have_uefi}
-Dplugin_uefi=true \ -Dplugin_uefi=true \
-Dplugin_uefi_labels=true \
%else %else
-Dplugin_uefi=false \ -Dplugin_uefi=false \
-Dplugin_uefi_labels=false \
%endif %endif
%if 0%{?have_dell} %if 0%{?have_dell}
-Dplugin_dell=true \ -Dplugin_dell=true \

View File

@ -188,7 +188,6 @@
"-Dintrospection=false", "-Dintrospection=false",
"-Dman=false", "-Dman=false",
"-Dpkcs7=false", "-Dpkcs7=false",
"-Dplugin_uefi_labels=false",
"-Dsystemd=false", "-Dsystemd=false",
"-Dtests=false", "-Dtests=false",
"-Defi-includedir=/app/include/efi", "-Defi-includedir=/app/include/efi",

View File

@ -171,6 +171,23 @@ parts:
prime: prime:
- -usr/include/ - -usr/include/
- -usr/lib - -usr/lib
#fetch the latest version of the signed bootloader
#this might not match our fwupx64.efi, but it's better than nothing
fwup-efi-signed:
plugin: make
source: contrib/snap/fwup-efi-signed
#needed for UEFI plugin to build UX labels
build-introspection:
plugin: nil
stage-packages:
- python3-gi
- python3-gi-cairo
- python3-pil
prime:
- -etc
- -usr
- -lib
- -var
fwupd: fwupd:
plugin: meson plugin: meson
meson-parameters: [--prefix=/usr, meson-parameters: [--prefix=/usr,
@ -181,7 +198,6 @@ parts:
-Dtests=false, -Dtests=false,
-Ddaemon=false, -Ddaemon=false,
-Dgtkdoc=false, -Dgtkdoc=false,
-Dplugin_uefi_labels=false,
-Dintrospection=false, -Dintrospection=false,
-Dsystemd=false, -Dsystemd=false,
-Dman=false, -Dman=false,
@ -250,7 +266,7 @@ parts:
- -usr/share/upstart - -usr/share/upstart
- -usr/lib/*/glib-2.0 - -usr/lib/*/glib-2.0
- -usr/lib/*/pkgconfig - -usr/lib/*/pkgconfig
after: [appstream-glib-dev, gudev, gusb, gnu-efi, libsmbios, libefivar-fixpkgconfig] after: [appstream-glib-dev, gudev, gusb, gnu-efi, libefivar-fixpkgconfig, libsmbios, build-introspection]
fix-bash-completion: fix-bash-completion:
plugin: make plugin: make
source: contrib/snap/fix-bash-completion source: contrib/snap/fix-bash-completion

View File

@ -171,6 +171,18 @@ parts:
fwup-efi-signed: fwup-efi-signed:
plugin: make plugin: make
source: contrib/snap/fwup-efi-signed source: contrib/snap/fwup-efi-signed
#needed for UEFI plugin to build UX labels
build-introspection:
plugin: nil
stage-packages:
- python3-gi
- python3-gi-cairo
- python3-pil
prime:
- -etc
- -usr
- -lib
- -var
fwupd: fwupd:
plugin: meson plugin: meson
meson-parameters: [--prefix=/usr, meson-parameters: [--prefix=/usr,
@ -181,7 +193,6 @@ parts:
-Dtests=false, -Dtests=false,
-Ddaemon=false, -Ddaemon=false,
-Dgtkdoc=false, -Dgtkdoc=false,
-Dplugin_uefi_labels=false,
-Dintrospection=false, -Dintrospection=false,
-Dsystemd=false, -Dsystemd=false,
-Dman=false, -Dman=false,
@ -250,7 +261,7 @@ parts:
- -usr/share/upstart - -usr/share/upstart
- -usr/lib/*/glib-2.0 - -usr/lib/*/glib-2.0
- -usr/lib/*/pkgconfig - -usr/lib/*/pkgconfig
after: [appstream-glib-dev, gudev, gusb, gnu-efi, libefivar-fixpkgconfig, libsmbios] after: [appstream-glib-dev, gudev, gusb, gnu-efi, libefivar-fixpkgconfig, libsmbios, build-introspection]
fix-bash-completion: fix-bash-completion:
plugin: make plugin: make
source: contrib/snap/fix-bash-completion source: contrib/snap/fix-bash-completion

View File

@ -191,16 +191,6 @@ endif
gcab = find_program('gcab', required : true) gcab = find_program('gcab', required : true)
bashcomp = dependency('bash-completion', required: false) bashcomp = dependency('bash-completion', required: false)
if get_option('plugin_uefi_labels')
cairo = dependency('cairo')
fontconfig = cc.find_library('fontconfig')
freetype = cc.find_library('freetype')
r = run_command('po/test-deps')
if r.returncode() != 0
error(r.stdout())
endif
endif
if valgrind.found() if valgrind.found()
conf.set('HAVE_VALGRIND', '1') conf.set('HAVE_VALGRIND', '1')
endif endif
@ -210,6 +200,9 @@ if get_option('plugin_altos')
endif endif
if get_option('plugin_uefi') if get_option('plugin_uefi')
cairo = dependency('cairo')
fontconfig = cc.find_library('fontconfig')
freetype = cc.find_library('freetype')
efivar = dependency('efivar', version : '>= 33') efivar = dependency('efivar', version : '>= 33')
conf.set_quoted('EFIVAR_LIBRARY_VERSION', efivar.version()) conf.set_quoted('EFIVAR_LIBRARY_VERSION', efivar.version())
efiboot = dependency('efiboot') efiboot = dependency('efiboot')
@ -237,6 +230,10 @@ if get_option('plugin_uefi')
gnu_efi_arch = '' gnu_efi_arch = ''
endif endif
conf.set_quoted('EFI_MACHINE_TYPE_NAME', EFI_MACHINE_TYPE_NAME) conf.set_quoted('EFI_MACHINE_TYPE_NAME', EFI_MACHINE_TYPE_NAME)
r = run_command('po/test-deps')
if r.returncode() != 0
error(r.stdout())
endif
endif endif
if get_option('plugin_dell') if get_option('plugin_dell')

View File

@ -12,7 +12,6 @@ option('plugin_dell', type : 'boolean', value : true, description : 'enable Dell
option('plugin_dummy', type : 'boolean', value : false, description : 'enable the dummy device') option('plugin_dummy', type : 'boolean', value : false, description : 'enable the dummy device')
option('plugin_synaptics', type: 'boolean', value: true, description : 'enable Synaptics MST hub support') option('plugin_synaptics', type: 'boolean', value: true, description : 'enable Synaptics MST hub support')
option('plugin_thunderbolt', type : 'boolean', value : true, description : 'enable Thunderbolt support') option('plugin_thunderbolt', type : 'boolean', value : true, description : 'enable Thunderbolt support')
option('plugin_uefi_labels', type : 'boolean', value : true, description : 'enable UEFI labels support')
option('plugin_uefi', type : 'boolean', value : true, description : 'enable UEFI support') option('plugin_uefi', type : 'boolean', value : true, description : 'enable UEFI support')
option('systemd', type : 'boolean', value : true, description : 'enable systemd support') option('systemd', type : 'boolean', value : true, description : 'enable systemd support')
option('systemdunitdir', type: 'string', value: '', description: 'Directory for systemd units') option('systemdunitdir', type: 'string', value: '', description: 'Directory for systemd units')

View File

@ -5,6 +5,6 @@ i18n.gettext(meson.project_name(),
] ]
) )
if get_option('plugin_uefi_labels') if get_option('plugin_uefi')
meson.add_install_script('make-images.sh') meson.add_install_script('make-images.sh')
endif endif