From 21a6b2cab3d6952d7ddbbf844f9806b8ef760799 Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Sun, 30 Jun 2024 19:28:31 +0200 Subject: [PATCH] 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 --- lib/functions/compilation/uboot.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/functions/compilation/uboot.sh b/lib/functions/compilation/uboot.sh index 8ae5e95e8f94..8a198a46c750 100644 --- a/lib/functions/compilation/uboot.sh +++ b/lib/functions/compilation/uboot.sh @@ -214,6 +214,7 @@ function compile_uboot_target() { "CCACHE_BASEDIR=$(pwd)" "PATH=${toolchain}:${toolchain2}:${PATH}" "PYTHONPATH=\"${PYTHON3_INFO[MODULES_PATH]}:${PYTHONPATH}\"" # Insert the pip modules downloaded by Armbian into PYTHONPATH (needed e.g. for pyelftools) + "HOME=${WORKDIR}" # give it a temporary-dir HOME; some Python stuff in old u-boots wants HOME env to be set ) # workaround when two compilers are needed