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>
1 parent e87d35e commit ac86cd140644885f27f44439bb2911000aff2f49
@Tom Rini Tom Rini authored on 7 Jan 2023
Patrick DELAUNAY committed on 6 Mar 2023
Showing 1 changed file
View
scripts/dtc/pylibfdt/setup.py