All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: U-Boot Mailing List <u-boot@lists.denx.de>
Cc: Alper Nebi Yasak <alpernebiyasak@gmail.com>,
	Neha Malcom Francis <n-francis@ti.com>,
	Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>,
	Philippe Reynes <philippe.reynes@softathome.com>,
	Peng Fan <peng.fan@nxp.com>, Mike Frysinger <vapier@chromium.org>,
	Simon Glass <sjg@chromium.org>
Subject: [PATCH] binman: Avoid requiring a home directory on startup
Date: Fri, 10 Feb 2023 13:59:46 -0700	[thread overview]
Message-ID: <20230210135941.1.I81a5b410c8645752b44ba7afa2c4406f7c80f3d2@changeid> (raw)

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>
---

 tools/binman/bintool.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/binman/bintool.py b/tools/binman/bintool.py
index 8fda13ff012..f460243e796 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
-- 
2.39.1.581.gbfd45094c4-goog


             reply	other threads:[~2023-02-10 21:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-10 20:59 Simon Glass [this message]
2023-02-10 21:23 ` [PATCH] binman: Avoid requiring a home directory on startup Mark Kettenis
2023-02-14 19:48   ` Simon Glass
2023-02-14 19:56     ` Mike Frysinger
2023-02-14 20:08     ` Tom Rini
2023-02-14 20:12       ` Mike Frysinger
2023-02-14 20:27         ` Tom Rini
2023-02-17  0:12           ` Simon Glass
2023-02-17  0:19             ` Tom Rini
2023-02-17  2:55               ` Simon Glass
2023-02-17 12:21                 ` Quentin Schulz
2023-02-17 23:49                   ` Simon Glass
2023-02-20 11:15                     ` Quentin Schulz
2023-02-21 19:35                       ` Simon Glass
2023-03-08 22:18                       ` Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230210135941.1.I81a5b410c8645752b44ba7afa2c4406f7c80f3d2@changeid \
    --to=sjg@chromium.org \
    --cc=alpernebiyasak@gmail.com \
    --cc=n-francis@ti.com \
    --cc=peng.fan@nxp.com \
    --cc=philippe.reynes@softathome.com \
    --cc=stefan.herbrechtsmeier@weidmueller.com \
    --cc=u-boot@lists.denx.de \
    --cc=vapier@chromium.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.