These operations to quite different things, they just share 2 common funcs. Let's split them out into separate files. This also splits up verb_list() into separate calls for the three operations. This actually fixes issues, as for status/list we want "unpriv" ESP discovery logic, but for the other two we really should have privileged discovery logic. This is preparation for adding "bootctl link" later, but this makes sense either way, I am sure.
29 lines
753 B
Meson
29 lines
753 B
Meson
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
bootctl_sources = files(
|
|
'bootctl.c',
|
|
'bootctl-install.c',
|
|
'bootctl-random-seed.c',
|
|
'bootctl-reboot-to-firmware.c',
|
|
'bootctl-set-efivar.c',
|
|
'bootctl-status.c',
|
|
'bootctl-uki.c',
|
|
'bootctl-unlink.c',
|
|
'bootctl-cleanup.c',
|
|
'bootctl-util.c',
|
|
'bootspec-util.c',
|
|
)
|
|
|
|
executables += [
|
|
executable_template + {
|
|
'name' : 'bootctl',
|
|
'public' : true,
|
|
'conditions' : [
|
|
'HAVE_BLKID',
|
|
],
|
|
'sources' : bootctl_sources,
|
|
'link_with' : boot_link_with,
|
|
'dependencies' : [libopenssl],
|
|
},
|
|
]
|