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. [Backport of commit 051f409d25f8 ("pylibfdt: Allow version normalization to fail")] Reported-by: Pali Rohár <pali@kernel.org> Fixes: 141659187667 ("pylibfdt: Fix disable version normalization") Signed-off-by: Tom Rini <trini@konsulko.com> Change-Id: Id6f31b1a7b320a0e512deccc50cdc689751f3705 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/293272 ACI: CIBUILD <MDG-smet-aci-builds@list.st.com> Tested-by: Patrick DELAUNAY <patrick.delaunay@foss.st.com> Reviewed-by: Patrick DELAUNAY <patrick.delaunay@foss.st.com> Domain-Review: Patrick DELAUNAY <patrick.delaunay@foss.st.com> |
---|
|
scripts/dtc/pylibfdt/setup.py |
---|