u-boot-librem5: fix build with python 3.12
Fix building u-boot-librem5 with python 3.12 by backporting this patch: https://github.com/u-boot/u-boot/commit/c977b184350479b8c43a0e002eaf2b13b510ba4f
Fix building u-boot-librem5 with python 3.12 by backporting this patch: https://github.com/u-boot/u-boot/commit/c977b184350479b8c43a0e002eaf2b13b510ba4f