aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-02-10 13:59:46 -0700
committerSimon Glass <sjg@chromium.org>2023-03-08 11:38:48 -0800
commit139c464c2ac5027b200ef9b4a66024a9daa39969 (patch)
tree4b9ccd07b12a7eb15f350aa04d5a3f1a3b451553
parent70ed05ce6c051e55e126e67e72ab20409134c953 (diff)
downloadu-boot-139c464c2ac5027b200ef9b4a66024a9daa39969.zip
u-boot-139c464c2ac5027b200ef9b4a66024a9daa39969.tar.gz
u-boot-139c464c2ac5027b200ef9b4a66024a9daa39969.tar.bz2
binman: Avoid requiring a home directory on startup
This is needed to download tools, but we may not need to do this. At present binman fails to start if HOME is not set. Use the current directory as a default to avoid this. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--tools/binman/bintool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/binman/bintool.py b/tools/binman/bintool.py
index 8fda13f..f460243 100644
--- a/tools/binman/bintool.py
+++ b/tools/binman/bintool.py
@@ -43,7 +43,7 @@ FETCH_NAMES = {
# Status of tool fetching
FETCHED, FAIL, PRESENT, STATUS_COUNT = range(4)
-DOWNLOAD_DESTDIR = os.path.join(os.getenv('HOME'), 'bin')
+DOWNLOAD_DESTDIR = os.path.expanduser('~/bin')
class Bintool:
"""Tool which operates on binaries to help produce entry contents