diff options
Diffstat (limited to 'meta/recipes-devtools/meson/meson/meson-setup.py')
-rwxr-xr-x | meta/recipes-devtools/meson/meson/meson-setup.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-devtools/meson/meson/meson-setup.py b/meta/recipes-devtools/meson/meson/meson-setup.py index 7ac4e3ad47..daaa551de2 100755 --- a/meta/recipes-devtools/meson/meson/meson-setup.py +++ b/meta/recipes-devtools/meson/meson/meson-setup.py | |||
@@ -27,9 +27,17 @@ except KeyError: | |||
27 | 27 | ||
28 | template_file = os.path.join(sysroot, 'usr/share/meson/meson.cross.template') | 28 | template_file = os.path.join(sysroot, 'usr/share/meson/meson.cross.template') |
29 | cross_file = os.path.join(sysroot, 'usr/share/meson/%smeson.cross' % os.environ["TARGET_PREFIX"]) | 29 | cross_file = os.path.join(sysroot, 'usr/share/meson/%smeson.cross' % os.environ["TARGET_PREFIX"]) |
30 | native_template_file = os.path.join(sysroot, 'usr/share/meson/meson.native.template') | ||
31 | native_file = os.path.join(sysroot, 'usr/share/meson/meson.native') | ||
30 | 32 | ||
31 | with open(template_file) as in_file: | 33 | with open(template_file) as in_file: |
32 | template = in_file.read() | 34 | template = in_file.read() |
33 | output = Template(template).substitute(Environ()) | 35 | output = Template(template).substitute(Environ()) |
34 | with open(cross_file, "w") as out_file: | 36 | with open(cross_file, "w") as out_file: |
35 | out_file.write(output) | 37 | out_file.write(output) |
38 | |||
39 | with open(native_template_file) as in_file: | ||
40 | template = in_file.read() | ||
41 | output = Template(template).substitute({'OECORE_NATIVE_SYSROOT': os.environ['OECORE_NATIVE_SYSROOT']}) | ||
42 | with open(native_file, "w") as out_file: | ||
43 | out_file.write(output) | ||