xtensa-build-zephyr.py: switch type of InstFile() names to pathlib

Make sure any forward slashes in strings are immediately converted to
OS-dependent directory separators.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2022-12-15 07:24:54 +00:00 committed by Kai Vehmanen
parent 13c36f3207
commit bc394916d0
1 changed files with 2 additions and 2 deletions

View File

@ -719,8 +719,8 @@ def install_platform(platform, sof_platform_output_dir):
@dataclass
class InstFile:
'How to install one file'
name: str
renameTo: str = None
name: pathlib.Path
renameTo: pathlib.Path = None
# TODO: upgrade this to 3 states: optional/warning/error
optional: bool = False
gzip: bool = True