]> git.baikalelectronics.ru Git - uboot.git/commit
buildman: Use bytes for the environment
authorSimon Glass <sjg@chromium.org>
Sun, 11 Apr 2021 04:27:28 +0000 (16:27 +1200)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Apr 2021 10:23:39 +0000 (03:23 -0700)
commite5556fb1f8ef4985246b42ffd5dad9d960c3dbf4
tree8662ba525e762bee6b1a6e13b490c733387d37f9
parent922fd1a5a592a00e2d39e6232f5a9a55b09c55b2
buildman: Use bytes for the environment

At present we sometimes see problems in gitlab where the environment has
0x80 characters or sequences which are not valid UTF-8.

Avoid this by using bytes for the environment, both internal to buildman
and when writing out the 'env' file. Add a test to make sure this works
as expected.

Reported-by: Marek Vasut <marex@denx.de>
Fixes: 2ffa3184e0e ("buildman: Write the environment out to an 'env' file")
Signed-off-by: Simon Glass <sjg@chromium.org>
tools/buildman/builderthread.py
tools/buildman/func_test.py
tools/buildman/toolchain.py