xref: /openbmc/phosphor-misc/firstboot/meson.build (revision 5a3ac185501dcc8b51af75037f2acd85165ca2c2)
1set_mac = dependency('systemd', required: get_option('first-boot-set-mac'))
2
3if set_mac.found()
4    install_data(
5        'first-boot-set-mac.sh',
6        install_mode: 'rwxr-xr-x',
7        install_dir: get_option('bindir'),
8    )
9
10    configure_file(
11        input: 'first-boot-set-mac@.service',
12        output: 'first-boot-set-mac@.service',
13        copy: true,
14        install_dir:
15            set_mac.get_pkgconfig_variable('systemdsystemunitdir'),
16    )
17endif
18