]> git.baikalelectronics.ru Git - uboot.git/commit
pylibfdt: Allow version normalization to fail
authorTom Rini <trini@konsulko.com>
Sat, 7 Jan 2023 23:02:26 +0000 (18:02 -0500)
committerTom Rini <trini@konsulko.com>
Sat, 7 Jan 2023 23:02:26 +0000 (18:02 -0500)
commit550bc30520e45fcacc651fb6adbb616d89d1e2b0
tree6e688298f3ccd26b7fb67149c8d9ce58c3dce434
parent9d452f5c687b189437d93ddcc8b660a3e7823181
pylibfdt: Allow version normalization to fail

In some cases, we might not have the sic portion of setuputils
available. Make our import and use of this be done in try/except blocks
as this is done to suppress a run-time warning that is otherwise
non-fatal.

Reported-by: Pali Rohár <pali@kernel.org>
Fixes: 8acf182b2b81 ("pylibfdt: Fix disable version normalization")
Signed-off-by: Tom Rini <trini@konsulko.com>
scripts/dtc/pylibfdt/setup.py