From patchwork Mon Nov 28 19:07:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1709924 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::1139; helo=mail-yw1-x1139.google.com; envelope-from=swupdate+bncbcl4hcw73qcbbb4ossoamgqe6kbzhbq@googlegroups.com; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20210112 header.b=duJIONvG; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=gVis8T95; dkim-atps=neutral Received: from mail-yw1-x1139.google.com (mail-yw1-x1139.google.com [IPv6:2607:f8b0:4864:20::1139]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NLZjp2cWPz23mg for ; Tue, 29 Nov 2022 06:07:56 +1100 (AEDT) Received: by mail-yw1-x1139.google.com with SMTP id 00721157ae682-3b48b605351sf105177327b3.22 for ; Mon, 28 Nov 2022 11:07:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669662472; cv=pass; d=google.com; s=arc-20160816; b=gRUPP9f0HoodjUjdR12O+Ubegec4ZHGXUF3FrOYPObDjeizWjgS+8uB7XOD9B2Nu9n H0cfM1oaC2BDZAlKFAG20LFpH9r4H21el2H0q7UVH5XzjJWaU9xKQZFojd7+gZiZCvss ANmlu3faHP7lB7otyOaq2hgi4oL0oMy4b1YCVSu8q1qTGfdZjqoLwzkYsLJy4TM+VSdZ mIuqKjIrpC6WOsjU5OHSLHtlWBMGXBCkDk89P/NUBg8yWzrT0p2raPtvRRY3YI5AyiGc gQP73COjW8mlVxihdKCyHO+y3yvYPSrMIGEb14YdJ3hr/z3NKI6lF+ldeo9bJrY4G5a9 5TVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature:dkim-signature; bh=qHilnPJBqzHZRnAlRlpexuD9M7qu3XLEPCgrigvPvAQ=; b=ddKFsr63EBJnQ8BwHia6HoIFd7yHNNLuULpjr0uu2mjdTRwiX2EffOMb+ah+iC8bM1 5ASi0UFX/VQUsIU8WimMgQ6yRYsrItd5d6PhHF0qBonLNDPA7t1IEeFe17c8HGBd898Z /WMcP05NIE8zD0lZjRQrt/07UGn4TWJpbB0V80e00ll9NiVPwwfZWISHKe+inox1fZbV +dzEqaR4DX0QYNyFp5akz8yj8saB+lOH9LbjUnjE1j51FbdGXy/dfPueUYthMC3XtRVH UOr1A7RSilBzM4b7m8osPJv6mRnzNbNUPt28gmSKxpdLIxDmXc+NzZSFfMhyuFcIBo0i 14cw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VLhKPGxe; spf=pass (google.com: domain of james.hilliard1@gmail.com designates 2607:f8b0:4864:20::d2e as permitted sender) smtp.mailfrom=james.hilliard1@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=qHilnPJBqzHZRnAlRlpexuD9M7qu3XLEPCgrigvPvAQ=; b=duJIONvGZGbjx6GnDHmkxJDrXJ1tj45mJJGbOkQc3AQnvXhQ2Cw2ZwuJxjtO2tP3t9 5v+eR6Bas+aZyy67Mx9mnNZa7VMCHWInn8Vn1xDbyC76Fft8FAIcuaQxPRE7E6f9x6PY omwgz/FHiwZLSH0BQ6RnZkkGgGAdb5vPVgznuMZSXgjELMMVKoLnpXZcJkLYFOvHmHgS ldHpn5TLDqakBzgzf+kTn94iQOFhu6dEO/F3zZ4QXdMyZTm+rRC9Ca4pAy8RD8nUXR83 uCnDN7WVEjBtwQV1KQOO+yeJ1+l8gonuCwIzNt05q/M/+zf7i34wWvInBZUVGQUEHG3z vefQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=qHilnPJBqzHZRnAlRlpexuD9M7qu3XLEPCgrigvPvAQ=; b=gVis8T952Dl7O2F7ZIJyq3MGzzw3rAaNjKp0x63PBIVVMCn62DK17Tq5P3qUGvsr5y HycK1N4YEIN6JEt7iGSJRG6xBTmwvC9mbt8xbX9pzRA2/jpqgtil5AbPIysPEF+zRYjo YcSQ/Odp3h27aZeTaGsd0KgsQqgJcyqDLW1jpO0nr7wPItd+OJRbbSfJtsG/OgVGsShn vbsd6C6TjVvQdmQV7tC+QbN63Bp3tjES/BGVWqwUwrvwy38UKa4T+ply8L+054wYkEO9 +KvnZygxVeUXuNqQmosb/dSMlwL/IxmXzGD75XCYVqt0YgF9t8iYOnoPRmih4rWtrGAZ rP0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=qHilnPJBqzHZRnAlRlpexuD9M7qu3XLEPCgrigvPvAQ=; b=XVWa/i+Q4OkkZdgMhNKdYl2zUQs8Ri59cjA6BNlv3BXEVqzwN/+jUH7mGEFTwRi9AI Sz3fK+BRAk8uTsdsv1m5MFkvy5NDkPnAMMhrsNnPpnIkIjLAMXn/BmRLO9hUP7hjROsF GRrkHe/HzMQiwslvmhNGWZyLVluTZuQOaxRnea7jyTBf4UzPmNDx4xHM+W8KP8bbyNbl HVZ7wVPbiNxQ61/xlI/CFnX8p0/9vx8WL/ftjDB4Wir8zH5z6hb/cQHWZPuT0/dJ99Ks fe3t/r8hOjBuSAWKdjYTrfuYWkA2Gs/MieZVUR2MiDse0SylouEXoZ+uaipFnZOmZseg l20w== Sender: swupdate@googlegroups.com X-Gm-Message-State: ANoB5pm7h3bNOyAjYkFWf5ZUJ7UNobQpcRnHc4tNsmEdK3exSNOVdAjo ouUT+6iIUeCme6KkKjExJXI= X-Google-Smtp-Source: AA0mqf5/PctMI1xa3RYvHXmHrlHAlbszeqv/bVaY+0AX3B6SJWTT/ZnT7r2nYAdy09a5yuOno07PnQ== X-Received: by 2002:a81:5748:0:b0:3b1:eee3:32a with SMTP id l69-20020a815748000000b003b1eee3032amr23263738ywb.325.1669662472338; Mon, 28 Nov 2022 11:07:52 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a0d:d912:0:b0:3a7:72c9:8140 with SMTP id b18-20020a0dd912000000b003a772c98140ls5018083ywe.9.-pod-prod-gmail; Mon, 28 Nov 2022 11:07:51 -0800 (PST) X-Received: by 2002:a81:147:0:b0:38e:3d0d:bb06 with SMTP id 68-20020a810147000000b0038e3d0dbb06mr31097966ywb.362.1669662471499; Mon, 28 Nov 2022 11:07:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669662471; cv=none; d=google.com; s=arc-20160816; b=XyHH/RcTjK/mERxo2P4dRgTcUD52fBY8LzNPIrjmQk1OpQqUJeIqc21xXbqfZhmDf7 wnatSwCki3b2bvWZ+hNnTw084GuTpkCyj1S5nD2QJOGkIE+x/HQvEr0K1l19R80IrG3c XzaeToPeViOfhqliz0IF+LZRhUuC7sZz9gjenVcN2j9XhyHhpzT8KPpF7wvY6PL1wFQ2 siK0Ol+4+EPQFchcQJQs2F6eVCRwsNkfxWJW6SmSLGCwtSUY1sn7ZflaxDXJ9eNCOimv wbGML6Wuav5t3abjXjNOlx35KNAvYkygf1iDsoQpgcoFvYvCKCvTw2swRCA3R0J2tUst fs+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=WETr9IVSl2wMgDY0yVNO+xcVpz50IJBQK4yFlj9M/B0=; b=v0WaJXxoemsKI8vCt+mfi/EIVNthHGMxKOdoQfvMSvMwZk9yt8///SDj8J3O5kvVs0 7u57XmqiCuh2fY8xxmccnkO3USntV+Sy3XwEXrJkf/eKXbEmbmrDE+/Zm1+c6V1W9ZLM gUcsyYiY5hMo4ycsAOMMvVwTnO7eYcQYQlG8O+sTvKK60ZB/anLG2jZC+TxKKC8My1NC X9dmIV6ULmv58hMb3ztOcI3AM2rAIg0rbjNe9wkGW5PVwjYoZOjHHro4KeLtmubW+7bS XgFJCTQSJIb6lctguiucyQ1tAl8bcVBPaIOtIv8/Kv0VcUUQU+kIZmq7uFnsLRpLe8q9 98Mg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VLhKPGxe; spf=pass (google.com: domain of james.hilliard1@gmail.com designates 2607:f8b0:4864:20::d2e as permitted sender) smtp.mailfrom=james.hilliard1@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com. [2607:f8b0:4864:20::d2e]) by gmr-mx.google.com with ESMTPS id a132-20020a25ca8a000000b006ddea715dd2si788904ybg.0.2022.11.28.11.07.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Nov 2022 11:07:51 -0800 (PST) Received-SPF: pass (google.com: domain of james.hilliard1@gmail.com designates 2607:f8b0:4864:20::d2e as permitted sender) client-ip=2607:f8b0:4864:20::d2e; Received: by mail-io1-xd2e.google.com with SMTP id 11so8388986iou.0 for ; Mon, 28 Nov 2022 11:07:51 -0800 (PST) X-Received: by 2002:a02:a089:0:b0:375:2a78:73fd with SMTP id g9-20020a02a089000000b003752a7873fdmr23609821jah.217.1669662470676; Mon, 28 Nov 2022 11:07:50 -0800 (PST) Received: from james-x399.localdomain (71-33-132-231.hlrn.qwest.net. [71.33.132.231]) by smtp.gmail.com with ESMTPSA id t6-20020a92c0c6000000b002f966e3900bsm4012001ilf.80.2022.11.28.11.07.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 11:07:50 -0800 (PST) From: James Hilliard To: swupdate@googlegroups.com Cc: James Hilliard Subject: [swupdate] [PATCH 1/1] Kconfig: Add HAVE_LIBUBOOTENV Date: Mon, 28 Nov 2022 12:07:47 -0700 Message-Id: <20221128190747.1917274-1-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Original-Sender: james.hilliard1@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VLhKPGxe; spf=pass (google.com: domain of james.hilliard1@gmail.com designates 2607:f8b0:4864:20::d2e as permitted sender) smtp.mailfrom=james.hilliard1@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Allow passing through the environment if libubootenv is available for the build target. Defaults to yes because we do not do any library checking for now. Signed-off-by: James Hilliard --- Kconfig | 4 ++++ Makefile.deps | 4 ++++ bootloader/Config.in | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/Kconfig b/Kconfig index 85fa5fd..bcea48b 100644 --- a/Kconfig +++ b/Kconfig @@ -53,6 +53,10 @@ config HAVE_LIBUBI bool option env="HAVE_LIBUBI" +config HAVE_LIBUBOOTENV + bool + option env="HAVE_LIBUBOOTENV" + config HAVE_LIBEXT2FS bool option env="HAVE_LIBEXT2FS" diff --git a/Makefile.deps b/Makefile.deps index 08df4e2..97ac96e 100644 --- a/Makefile.deps +++ b/Makefile.deps @@ -42,6 +42,10 @@ ifeq ($(HAVE_LIBUBI),) export HAVE_LIBUBI = y endif +ifeq ($(HAVE_LIBUBOOTENV),) +export HAVE_LIBUBOOTENV = y +endif + ifeq ($(HAVE_LIBZEROMQ),) export HAVE_LIBZEROMQ = y endif diff --git a/bootloader/Config.in b/bootloader/Config.in index 1744b61..fc133f3 100644 --- a/bootloader/Config.in +++ b/bootloader/Config.in @@ -20,10 +20,14 @@ config BOOTLOADER_EBG config UBOOT bool "U-Boot" + depends on HAVE_LIBUBOOTENV help Support for U-Boot https://www.denx.de/wiki/U-Boot +comment "U-Boot needs libubootenv" + depends on !HAVE_LIBUBOOTENV + config UBOOT_FWENV string "U-Boot Environment Configuration file" depends on UBOOT