sof_ri_info: assert Python version is 3.6 or above.

As reported by Bartosz, Python 3.5.2 fails with the relatively cryptic
TypeError: invalid file: PosixPath('sof-tgl.ri'). Make this failure much
less cryptic.

As of December 2021 Python 3.5 is completely out of support and 3.6 will
be soon https://www.python.org/downloads/

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2021-12-08 08:27:16 +00:00 committed by Liam Girdwood
parent 350fc6c66d
commit 7aa1b28070
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,8 @@ import io
import pathlib
import hashlib
# Required for open(pathlib)
assert sys.version_info >= (3, 6)
# To extend the DSP memory layout list scroll down to DSP_MEM_SPACE_EXT