meson: Replace configure_file with fs.copyfile
configure_file is deprecated since 0.64.0, and replace it with
fs.copyfile.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I258e8dbdd8108af9f6024f8d70dea720e68c6b3e
diff --git a/meson.build b/meson.build
index 680354d..146fa4e 100755
--- a/meson.build
+++ b/meson.build
@@ -57,10 +57,9 @@
'systemdsystemunitdir',
pkgconfig_define: ['prefix', get_option('prefix')])
-configure_file(
- copy: true,
- input: 'service_files/xyz.openbmc_project.biosconfig_manager.service',
+fs = import('fs')
+fs.copyfile(
+ 'service_files/xyz.openbmc_project.biosconfig_manager.service',
install: true,
- install_dir: systemd_system_unit_dir,
- output: 'xyz.openbmc_project.biosconfig_manager.service'
+ install_dir: systemd_system_unit_dir
)