From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D6DDC4338F for ; Wed, 25 Aug 2021 00:05:57 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id BFDB0600CD for ; Wed, 25 Aug 2021 00:05:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BFDB0600CD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8126082EB9; Wed, 25 Aug 2021 02:05:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tmN0wZx0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C4C0A81BC0; Wed, 25 Aug 2021 02:05:37 +0200 (CEST) Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) (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 36F8C82D3C for ; Wed, 25 Aug 2021 02:05:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng.cn@gmail.com Received: by mail-pj1-x102b.google.com with SMTP id f11-20020a17090aa78b00b0018e98a7cddaso3519453pjq.4 for ; Tue, 24 Aug 2021 17:05:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=Tnlu592k7Dz1vVGEoVdeL/+CKg80Jzg79Tl0K2PvZtc=; b=tmN0wZx03syucGxmftEkuaqJxlDN8lWpB/ZpCE3lVKT5MvYpbkhOeozche1hY1AtSl 8fWwB995jbHSqMLM4TFcgj3G6h47AnB+08Zo18qU5WbHkJO38VfB2UtIYe9hIU6jFXV6 QdADCgpBVc4m56ktZ8qfWVmaY/wplhrQdJvYsk6Upjn8m1ov9ZzdZZiQCjfStjRHpo00 wU+zoAP1wo8jBfI4gtVQGIWIQIYZm0F+YL+VZ/XCdz5A+5Zcw4QPpZEMcU1tTHunux9R iIA77u/c/sB+gsXY2JSYWUvyTxfAp+h7acC8KB/Iz05FqLkR9psRp+4uEE/wNTQWMdn6 c3cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Tnlu592k7Dz1vVGEoVdeL/+CKg80Jzg79Tl0K2PvZtc=; b=IUZ+70ek0G/na4MzFCRMvs6Aas2R0qEv8IWeJylty1Aacc83rhWkY7QEQLFqflQQQJ iPFqAf6vzs0YNkGbgA4BUK4hwUqXhp1UuMWs0oWj5dFfhrxy43VICotz7zxTSQNT8GRI Iang0QN5LNZGVyhw46qtzaL38f3zdkmw+4pmlw3YJtbtaCYbv0PGd8Euk9KrbzFQ9U48 sZ8PDpI5FMwC4lUn3dOD7bN9rvRDFbuTAUrzSszOqsVT104HIXXdd3615lLFc8ACppmj /4cF3CajUoTLxkeZp4YLpn5uXyp7CJWv9qQ6cqqR7EGbOF80SJoK6wmR0I9MVNZqRUX6 2pIA== X-Gm-Message-State: AOAM531XKol+zM17ViT59E7Nx4Y/01S3X7jIDRv6NQsNHr5SAx6CKl+V 8Ge3kRN28dSeICQkGOcKCb1uYLUnvVagzQ== X-Google-Smtp-Source: ABdhPJx0uKZt38qkElTnFon4vC3UqwRxbLIfMXxTvhkSzEJwGAfOT+V6zuJCw6ynAvqS97sfAGGn2g== X-Received: by 2002:a17:902:bd01:b0:137:96b3:aba6 with SMTP id p1-20020a170902bd0100b0013796b3aba6mr679969pls.30.1629849931518; Tue, 24 Aug 2021 17:05:31 -0700 (PDT) Received: from i9-aorus-gtx1080.localdomain (144.168.56.201.16clouds.com. [144.168.56.201]) by smtp.gmail.com with ESMTPSA id u16sm23832810pgh.53.2021.08.24.17.05.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Aug 2021 17:05:30 -0700 (PDT) From: Bin Meng To: Tom Rini , u-boot@lists.denx.de Subject: [PATCH 2/4] tools: docker: Build and install genimage Date: Wed, 25 Aug 2021 08:05:18 +0800 Message-Id: <20210825000520.19368-2-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210825000520.19368-1-bmeng.cn@gmail.com> References: <20210825000520.19368-1-bmeng.cn@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean genimage [1] is a tool to create flash/disk images. This is required by some targets, e.g.: sifive_unleashed, to generate sdcard or spi-nor images for real hardware, as well as U-Boot CI testing. [1] https://github.com/pengutronix/genimage Signed-off-by: Bin Meng --- tools/docker/Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index be6d7dd4dc..8e558ca495 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -60,6 +60,7 @@ RUN apt-get update && apt-get install -y \ iasl \ imagemagick \ iputils-ping \ + libconfuse-dev \ libgit2-dev \ libguestfs-tools \ liblz4-tool \ @@ -172,6 +173,14 @@ RUN git clone https://gitlab.com/lbmeng/qemu.git /tmp/qemu && \ make -j$(nproc) all install && \ rm -rf /tmp/qemu +# Build genimage (required by some targets to generate disk images) +RUN wget -O - https://github.com/pengutronix/genimage/releases/download/v14/genimage-14.tar.xz | tar -C /opt -xJ && \ + cd /opt/genimage-14 && \ + ./configure && \ + make -j$(nproc) && \ + make install && \ + rm -rf /opt/genimage-14 + # Create our user/group RUN echo uboot ALL=NOPASSWD: ALL > /etc/sudoers.d/uboot RUN useradd -m -U uboot -- 2.25.1