Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 55162C61DA4 for ; Wed, 22 Feb 2023 19:16:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ACB6485B61; Wed, 22 Feb 2023 20:15:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="cRGP3BHv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A56C185AF6; Wed, 22 Feb 2023 20:15:10 +0100 (CET) Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4C73385AF6 for ; Wed, 22 Feb 2023 20:15:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x131.google.com with SMTP id e10so3838528ilu.4 for ; Wed, 22 Feb 2023 11:15:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Q1DG86CL/4uWZvA7scqGIWlQKLRJuDBLJx/fVy/MtMs=; b=cRGP3BHvTK7o9FB8+1Li7ysxqJP9TLjbbCksQ29AYd2GeQ0Yil6ctNGvYHLhkrgjmx bDTWss5YWVW4Q0D9zAfxT3moQu0zxt2YRLKw6JIYlY4CXO4PiL1z9t0SCdOjcvSpw00a kx4X+2pYt5GPhaJaa2ypQK3fq4G+MDfx63vjM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q1DG86CL/4uWZvA7scqGIWlQKLRJuDBLJx/fVy/MtMs=; b=pyE6KOFNUTynFyvmkjlLqM7rqy/THEGFmkyLLLRodhBWiTWYhb1IEvI/HU0hySQGkK CE8qr6anfPULNHDa0Ds9D1JcmSqCAs4Fn+OCViadvCmLPdsbFv1NMVC6m4gArnheAZva 17hauyhCFFavZ+Zxrao2s5KXdQCgmLZAsPiDyupgQu1G490qGlu5V6L2IA8XkDJ0n+QV S2kQDGVh6ghqPf+Fx++BAkKKzlMXYniOeFvL/ESEpktN2a3CzwaxAABBce/VLljjiDW+ JNeucdJ5HYYO2DeDypH6rjxKlIMQN4Fn9kNnK5xOIsi8MNxdoN0KuBSa3hKAlRm781rC xohA== X-Gm-Message-State: AO0yUKXhe6H8EDZhcrtax47miyG0RxXx7owlbgRtGYNutYXnq+KS+sI6 3qjobeIAVlb1ebLC77aEM/23txW/+m5r2TAJ X-Google-Smtp-Source: AK7set9r9Wfw5a/oZF9owx74AbtlrburXnfgTwH91GtEGlKGmVdwxvV/uZ8/EwCfK4g7wHvTROYwwQ== X-Received: by 2002:a05:6e02:1cae:b0:314:1ebe:b196 with SMTP id x14-20020a056e021cae00b003141ebeb196mr7621554ill.16.1677093298130; Wed, 22 Feb 2023 11:14:58 -0800 (PST) Received: from kea.bld.corp.google.com ([2620:15c:183:200:ba91:a998:7b71:c020]) by smtp.gmail.com with ESMTPSA id x18-20020a056e020f1200b00316e3a38becsm1212178ilj.18.2023.02.22.11.14.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 11:14:57 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Mark Kettenis , Tom Rini , Alper Nebi Yasak , Neha Malcom Francis , Stefan Herbrechtsmeier , Philippe Reynes , Peng Fan , Mike Frysinger , Simon Glass Subject: [PATCH v2 4/5] binman: Use a private directory for bintools Date: Wed, 22 Feb 2023 12:14:48 -0700 Message-Id: <20230222191449.1309107-5-sjg@chromium.org> X-Mailer: git-send-email 2.39.2.637.g21b0678d19-goog In-Reply-To: <20230222191449.1309107-1-sjg@chromium.org> References: <20230222191449.1309107-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean At present binman writes tools into the ~/bin directory. This is convenient but some may be concerned about downloading unverified binaries and running them. Place then in a special ~/.binman-tools directory instead. Mention this in the documentation. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- (no changes since v1) tools/binman/binman.rst | 2 ++ tools/binman/bintool.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/binman/binman.rst b/tools/binman/binman.rst index 2bcb7d3886f..29034da92f1 100644 --- a/tools/binman/binman.rst +++ b/tools/binman/binman.rst @@ -1407,6 +1407,8 @@ You can also use `--fetch all` to fetch all tools or `--fetch ` to fetch a particular tool. Some tools are built from source code, in which case you will need to have at least the `build-essential` and `git` packages installed. +Tools are fetched into the `~/.binman-tools` directory. + Bintool Documentation ===================== diff --git a/tools/binman/bintool.py b/tools/binman/bintool.py index 302161fcb47..6ca3d886200 100644 --- a/tools/binman/bintool.py +++ b/tools/binman/bintool.py @@ -52,7 +52,7 @@ class Bintool: missing_list = [] # Directory to store tools - tooldir = os.path.join(os.getenv('HOME'), 'bin') + tooldir = os.path.join(os.getenv('HOME'), '.binman-tools') def __init__(self, name, desc, version_regex=None, version_args='-V'): self.name = name -- 2.39.2.637.g21b0678d19-goog