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: Ifcd5c0ece7c8738628ae90101c194a9dc8938277
diff --git a/services/meson.build b/services/meson.build
index a35e9e9..e94eeed 100644
--- a/services/meson.build
+++ b/services/meson.build
@@ -3,9 +3,11 @@
'psu-update@.service'
]
+fs = import('fs')
foreach unit : unit_files
-configure_file(input: unit,
- output: unit,
- copy: true,
- install_dir: servicedir)
+ fs.copyfile(
+ unit,
+ install: true,
+ install_dir: servicedir
+ )
endforeach