mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-18 04:46:14 +00:00

This commit adds redfish.conf to configure the IP and username/password in case those are not available in SMBIOS and the EFI variables. Since we can configure the IP in the conf file, the environment variable, FWUPD_REDFISH_URI, is removed. Signed-off-by: Gary Lin <glin@suse.com>
54 lines
1.0 KiB
Meson
54 lines
1.0 KiB
Meson
cargs = ['-DG_LOG_DOMAIN="FuPluginRedfish"']
|
|
|
|
shared_module('fu_plugin_redfish',
|
|
sources : [
|
|
'fu-plugin-redfish.c',
|
|
'fu-redfish-client.c',
|
|
'fu-redfish-common.c',
|
|
],
|
|
include_directories : [
|
|
include_directories('../..'),
|
|
include_directories('../../src'),
|
|
include_directories('../../libfwupd'),
|
|
],
|
|
install : true,
|
|
install_dir: plugin_dir,
|
|
c_args : cargs,
|
|
dependencies : [
|
|
plugin_deps,
|
|
efivar,
|
|
json_glib,
|
|
],
|
|
)
|
|
|
|
install_data(['redfish.conf'],
|
|
install_dir: join_paths(sysconfdir, 'fwupd')
|
|
)
|
|
|
|
if get_option('tests')
|
|
e = executable(
|
|
'redfish-self-test',
|
|
sources : [
|
|
'fu-self-test.c',
|
|
'fu-redfish-client.c',
|
|
'fu-redfish-common.c',
|
|
],
|
|
include_directories : [
|
|
include_directories('../..'),
|
|
include_directories('../../src'),
|
|
include_directories('../../libfwupd'),
|
|
],
|
|
dependencies : [
|
|
plugin_deps,
|
|
efivar,
|
|
json_glib,
|
|
],
|
|
link_with : [
|
|
fwupd,
|
|
libfwupdprivate,
|
|
],
|
|
c_args : cargs
|
|
)
|
|
test('redfish-self-test', e)
|
|
endif
|