Skip to content

Commit

Permalink
u-boot: add HOME env for make invocations to avoid binman/Python prob…
Browse files Browse the repository at this point in the history
…lems 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
  • Loading branch information
rpardini authored and igorpecovnik committed Jun 30, 2024
1 parent ea70ebe commit 21a6b2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/functions/compilation/uboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 21a6b2c

Please sign in to comment.