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: I9da6cfc78f1350e7d3bd755db1ecf19a23c86c5c
diff --git a/service_files/meson.build b/service_files/meson.build
index 42c2357..8aec069 100644
--- a/service_files/meson.build
+++ b/service_files/meson.build
@@ -24,12 +24,11 @@
'phosphor-create-chassis-poweron-log@.service'
]
+fs = import('fs')
foreach u : unit_files
- configure_file(
- copy: true,
- input: u,
+ fs.copyfile(
+ u,
install: true,
- install_dir: systemd_system_unit_dir,
- output: u,
- )
+ install_dir: systemd_system_unit_dir
+ )
endforeach
diff --git a/target_files/meson.build b/target_files/meson.build
index aad5d15..9fcc2c5 100644
--- a/target_files/meson.build
+++ b/target_files/meson.build
@@ -40,12 +40,11 @@
'obmc-power-stop@.target',
]
+fs = import('fs')
foreach u : unit_files
- configure_file(
- copy: true,
- input: u,
+ fs.copyfile(
+ u,
install: true,
- install_dir: systemd_system_unit_dir,
- output: u,
- )
+ install_dir: systemd_system_unit_dir
+ )
endforeach