add first boot set mac script
phosphor-misc will use the meson build system - establish the initial
structure. Copy the first boot set mac script and systemd unit from
meta-openpower.
Change-Id: I1f7ebbb6b5230aa97b28e9a46ac721925b95a75a
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/firstboot/meson.build b/firstboot/meson.build
new file mode 100644
index 0000000..d2d09d7
--- /dev/null
+++ b/firstboot/meson.build
@@ -0,0 +1,17 @@
+set_mac = dependency('systemd', required: get_option('first-boot-set-mac'))
+
+if set_mac.found()
+ install_data(
+ 'first-boot-set-mac.sh',
+ install_mode: 'rwxr-xr-x',
+ install_dir: get_option('bindir'),
+ )
+
+ configure_file(
+ input: 'first-boot-set-mac@.service',
+ output: 'first-boot-set-mac@.service',
+ copy: true,
+ install_dir:
+ set_mac.get_pkgconfig_variable('systemdsystemunitdir'),
+ )
+endif