Skip to content

uc-def generates truncated headers with recent Python versions

With recent Python versions, e.g. Python 3.12, the uc-def script may generate truncated headers. Building with make V=1 reveals a Python warning:

./scripts/uc-def/uc-def:240: SyntaxWarning: "is not" with 'str' literal. Did you mean "!="?

Steps to reproduce

Clone the DirtyJTAG repo (https://github.com/dirtyjtag/DirtyJTAG) and try to build with make. It will raise missing #endif errors in a generated generated header. Build with make V=1 to get the aforementioned Python warning.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information