From unknown Sun Aug 17 10:17:16 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#60231] [PATCH] gnu: Add u-boot-sandbox. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 21 Dec 2022 02:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60231 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60231@debbugs.gnu.org Cc: Maxim Cournoyer X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167159049031690 (code B ref -1); Wed, 21 Dec 2022 02:42:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Dec 2022 02:41:30 +0000 Received: from localhost ([127.0.0.1]:48719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7p2w-0008F4-50 for submit@debbugs.gnu.org; Tue, 20 Dec 2022 21:41:30 -0500 Received: from lists.gnu.org ([209.51.188.17]:55812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7p2u-0008Ey-JG for submit@debbugs.gnu.org; Tue, 20 Dec 2022 21:41:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p7p2u-0001Gi-Cr for guix-patches@gnu.org; Tue, 20 Dec 2022 21:41:28 -0500 Received: from mail-qt1-x82e.google.com ([2607:f8b0:4864:20::82e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7p2s-0005Mu-AA for guix-patches@gnu.org; Tue, 20 Dec 2022 21:41:28 -0500 Received: by mail-qt1-x82e.google.com with SMTP id x11so12705478qtv.13 for ; Tue, 20 Dec 2022 18:41:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=rj/gBpvyKax8nNHYjB60k8F8gloShvNaMoGkGj+XnD8=; b=LNovQ2kEvAn1XUBygNSEwS8SPHKFRu2McNHLY80a+ssM0x7crioh7QwbTNEuPsHBsq ZPM5rYN/kIz+bUOXzgwXdgV16inWQVxPJ2ErYId5FR4eB2gkoQoCoMthYoaZcl3XW/mG GnLYnOYueN/BVPlpyrMYVvzXjeSl6v3vhg9uhLkP3oAkTjgAoUmiAjjpV2dZBivYkV5q 4HN/bkprDCgxTk1Of8mtpjLchgtDdxkxWb1tB6OkrbkIO40asdvpemdQ8r/FBselZtkR yptJPn65zFlwc/xykRhtXe1Y67J+udeOON11v9LwsSALPIh+ur3Y1YIMatcux1h1z9QF oPfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rj/gBpvyKax8nNHYjB60k8F8gloShvNaMoGkGj+XnD8=; b=nOhCe4qYbi6EAuoG4D19HHsCKK/LutPDlsjYzAJTUrIeW5bf12IKlS3uqlotU3/ATi 0V1oohEzrBhY5RMUCiZ0vbaZP1rfTz8HdNoW3r0qHJQSckP7HGq8C8OnAASfjSm3dojc LWT7qQN/ccQzu0qGe1uD9VyBy6+0d4k0u0nuI96KrsV+S4enQLj2t3U3H2IK5ssneqL2 Jn9CalD9g14ZANib/YYTfWr2ai7skh42mfUnZv3QvchaTiznnvtdb8M+tmdA2X655WhH rmi6GbSWB+nZBl6lmoNPL6KS3QBqhHRFi8tsb5QkWiE5eabQx2854rOEyj1YHqaRFwfs hPjA== X-Gm-Message-State: AFqh2krJg+bMiGPsnXaMsmPjKLURhM1pcih/qg3xZlU7N4BD8wantKrX PBeTfzNSTQRSBbirEZL4QNE3OysmEl60dlVZ X-Google-Smtp-Source: AMrXdXuOtll4nSHYaQqrqZxJMnYFFEUz+VgKic2HXZrBkX3ptDGZAuUphvKpun8B35Vud4162hC0Sg== X-Received: by 2002:ac8:450e:0:b0:3a9:6b73:fb91 with SMTP id q14-20020ac8450e000000b003a96b73fb91mr43453qtn.64.1671590484845; Tue, 20 Dec 2022 18:41:24 -0800 (PST) Received: from localhost.localdomain ([2607:fad8:4:3::1002]) by smtp.gmail.com with ESMTPSA id fu25-20020a05622a5d9900b003a57eb7f212sm8407735qtb.10.2022.12.20.18.41.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Dec 2022 18:41:24 -0800 (PST) From: Maxim Cournoyer Date: Tue, 20 Dec 2022 21:41:17 -0500 Message-Id: <20221221024117.21718-1-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::82e; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x82e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/bootloaders.scm (u-boot-sandbox): New variable. --- gnu/packages/bootloaders.scm | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm index 74f1647368..a1f99201d6 100644 --- a/gnu/packages/bootloaders.scm +++ b/gnu/packages/bootloaders.scm @@ -1019,6 +1019,46 @@ (define-public u-boot-qemu-riscv64 (define-public u-boot-qemu-riscv64-smode (make-u-boot-package "qemu-riscv64_smode" "riscv64-linux-gnu")) +(define-public u-boot-sandbox + (let ((base (make-u-boot-package + "sandbox" #f ;build for the native system + ;; Disable CONFIG_TOOLS_LIBCRYPTO, CONFIG_FIT_SIGNATURE and + ;; CONFIG_FIT_CIPHER and their selectors as these features + ;; require OpenSSL, which is incompatible with the GPLv2-only + ;; parts of U-boot. The options below replicate the changes + ;; that disabling the above features in 'make menuconfig' then + ;; refreshing the defconfig with 'make savedefconfig' would do. + #:configs (list "# CONFIG_FIT_RSASSA_PSS is not set" + "# CONFIG_FIT_CIPHER is not set" + "# CONFIG_LEGACY_IMAGE_FORMAT is not set" + "# CONFIG_IMAGE_PRE_LOAD is not set" + "# CONFIG_IMAGE_PRE_LOAD_SIG is not set" + "# CONFIG_CMD_BOOTM_PRE_LOAD is not set" + "CONFIG_RSA=y" + "# CONFIG_EFI_SECURE_BOOT is not set" + "# CONFIG_TOOLS_LIBCRYPTO is not set") + #:append-description + "The sandbox configuration of U-Boot provides a +@command{u-boot} command that runs as a normal user space application. It can +be used to test the functionality of U-Boot interactively without having to +deploy to an actual target device. @xref{Sandbox<6>,,,u-boot, The U-Boot +Documentation} for more information (for example by running @samp{info +\"(u-boot) Sandbox<6>\"})."))) + (package + (inherit base) + (arguments + (substitute-keyword-arguments (package-arguments base) + ((#:phases phases '%standard-phases) + #~(modify-phases #$phases + (add-after 'install 'symlink-u-boot-command + (lambda* (#:key outputs #:allow-other-keys) + ;; For ease of discovery. + (mkdir (string-append #$output "/bin")) + (symlink (search-input-file outputs "libexec/u-boot") + (string-append #$output "/bin/u-boot")))))))) + (inputs (modify-inputs (package-inputs base) + (append sdl2)))))) + (define-public u-boot-sifive-unleashed (make-u-boot-package "sifive_unleashed" "riscv64-linux-gnu")) base-commit: 2f7fdf6a6832c184368ec7b358e4b7edf213754f -- 2.38.1 From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 18 21:14:08 2023 Received: (at control) by debbugs.gnu.org; 19 Jan 2023 02:14:08 +0000 Received: from localhost ([127.0.0.1]:42189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIKRM-0002Zt-53 for submit@debbugs.gnu.org; Wed, 18 Jan 2023 21:14:08 -0500 Received: from mail-qt1-f181.google.com ([209.85.160.181]:45718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIKRK-0002ZG-EW for control@debbugs.gnu.org; Wed, 18 Jan 2023 21:14:06 -0500 Received: by mail-qt1-f181.google.com with SMTP id h21so511334qta.12 for ; Wed, 18 Jan 2023 18:14:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:from:to:message-id:date:from:to:cc:subject:date:message-id :reply-to; bh=zwWl7FQJTRRyti/1uyHrOhE2XyUUdB1M88pKCkTxVyo=; b=T8cTNcRbJWsPe4Y8hdh0+2+eYOlVztp2b0lS3Qz80Z+sYxqAqFF7Up+Yrv4TTLnQyd 602czQgi93W6wI7cir8cUBQXc7icK2lxZvrKosoGJQX20wmIZSd7Q5wzDsWxcQJrcbes WnQck1KQ2vjNNCbBE0ymDA4G9MTf0WP7smb2DxhOvc6L6vKj7pYrd/Nby0sW8t/THFLY i552K6Ki+YM0DO0nTqQkNgyAuuM17LGp5gqSdk5x9SSJB2SWPZJQPi2dZh6B/Azuift/ k9QOWk9ZecIRDVLQz3j0YaF4rGY6zK7rOrXxfBsGdodq1DdcqvJDO9raDWID8Ev8VrxU c6xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=subject:from:to:message-id:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zwWl7FQJTRRyti/1uyHrOhE2XyUUdB1M88pKCkTxVyo=; b=VrTlsdmY+Zf/e8BKciWDia3d8wOyx4B4sN44Seag0T+tQU4O1nI6JSytdFH0gTU7bj ArfSKZslBZwyUJa1JTItsjTOU3y+R7Ipwkh7SmqOjSyt0NPnUbojKl0HyRWekZ6H+/bl VnEJhQwQ8BFL+zvC7GjnQFc/ZRNeExqr3zGJ78rSZDYAZCk+mSKx+D8dPhBKaVVAdYhw 1KMbY8IJ1b0vlAbpYmQ0kSCb0E3IacNt9241vrxx8GaxAK7YajiZdndfEtdytGMzy7RY 8fV4WzmQg1oj/0VmK80kZo9Tsk+7fgFvVlDHuaZ8vqlD9z0MNfLlO26/7tzi6JfIMCFp e5NQ== X-Gm-Message-State: AFqh2ko3vDbYrRp0Zy9zS1bxElh1zd0zbG3K+512j4gad9d+b+jLt4bj aaxQzF4R0NQgJnVEWu1sHXlq0u1W2SKSFTFL X-Google-Smtp-Source: AMrXdXsxkhzTVdywV/QelhY+i+jxT0ZKkE9cnC4foqyH4skCT5lW19KPd82r4TDdRSEyIw9s3oCBQA== X-Received: by 2002:ac8:5059:0:b0:3a5:1ea1:bae2 with SMTP id h25-20020ac85059000000b003a51ea1bae2mr11537600qtm.34.1674094440748; Wed, 18 Jan 2023 18:14:00 -0800 (PST) Received: from hurd ([2607:fad8:4:3::1001]) by smtp.gmail.com with ESMTPSA id g25-20020ac870d9000000b003b63238615fsm5072684qtp.46.2023.01.18.18.14.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 18:14:00 -0800 (PST) Date: Wed, 18 Jan 2023 21:13:59 -0500 Message-Id: <87bkmve0ew.fsf@gmail.com> To: control@debbugs.gnu.org From: Maxim Cournoyer Subject: control message for bug #60231 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 60231 quit