]> git.dujemihanovic.xyz Git - u-boot.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)
commitf1a83abe60b4ef8b2652e4c8e1d11a9afc909b71
tree8662ba525e762bee6b1a6e13b490c733387d37f9
parent8116c78ffddc71dec8f793339648a5239a5d9643
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: e5fc79ea718 ("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