Skip to content

Commit 21a6b2c

Browse files
rpardiniigorpecovnik
authored andcommitted
u-boot: add HOME env for make invocations to avoid binman/Python problems with older u-boot versions
- this avoids trouble building certain older versions with binman - as it tries to `os.path.join(os.getenv('HOME'), 'bin')` and gets a `None` and dies - naming names: `tinkerboard` & `xt-q8l-v10` (BOARDFAMILY=rockchip), which _actually use_ binman & 22.04 combo
1 parent ea70ebe commit 21a6b2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/functions/compilation/uboot.sh

+1
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ function compile_uboot_target() {
214214
"CCACHE_BASEDIR=$(pwd)"
215215
"PATH=${toolchain}:${toolchain2}:${PATH}"
216216
"PYTHONPATH=\"${PYTHON3_INFO[MODULES_PATH]}:${PYTHONPATH}\"" # Insert the pip modules downloaded by Armbian into PYTHONPATH (needed e.g. for pyelftools)
217+
"HOME=${WORKDIR}" # give it a temporary-dir HOME; some Python stuff in old u-boots wants HOME env to be set
217218
)
218219

219220
# workaround when two compilers are needed

0 commit comments

Comments
 (0)