From patchwork Mon Jul 15 20:01:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Moskalets X-Patchwork-Id: 1960829 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=SaxOBOBN; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WNCkp1jl3z1xqc for ; Tue, 16 Jul 2024 06:01:22 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 670EF887D3; Mon, 15 Jul 2024 22:01:19 +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="SaxOBOBN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 156B588808; Mon, 15 Jul 2024 22:01:18 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (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 0B803881DB for ; Mon, 15 Jul 2024 22:01:16 +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=maximmosk4@gmail.com Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-52e9b9fb3dcso5721860e87.1 for ; Mon, 15 Jul 2024 13:01:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721073675; x=1721678475; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/b7bb8L949Xq6G6wWewkHSPFsDBGzHOkA+kG/EJ8/ZU=; b=SaxOBOBNowSukUPpYjS/w0R2x3JysX/MVGWd73XOoZ3LgaW5lQYzk0BXb2QPibYs1n +PA5pp+DmHxtXjWc63ciYYG98hKyNHsh+SPd/LuNrgfvImzwGRHOCRDJc5VqzuQ23Z+2 z3qbLUbUc1exYKpcXpm7EJpD4E01hyDEipBiS9h7RTzvfdM00nyuewP7O6iZEnmJ1iHe GqLGyCt48bhQA3LvYd89iXjeGHhFQ2mFnIrdhaJidVSeQPeHWJPMZlO6NFCqBW5ZK5Xg vp5yBYwOprm9n0u1+FzszIx6my4zXD0cN1l2/aDkaNThpwek7rRIgXDTAlj7+x2puUp5 IOvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721073675; x=1721678475; 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=/b7bb8L949Xq6G6wWewkHSPFsDBGzHOkA+kG/EJ8/ZU=; b=mEgKhKep7Pg962f362CZld2xN6/Trj/X7hyS9YEsgW182uOxPC1Zohmb6VAUBCQaFh vWcptqcPd4mJUaprowLu68YBkEjI/1/RCTS023IIt74BWvJnPvwjAspfh1W5NuX+77GZ /sUpl39xaTiKz45c6X0qwscgl6S1cJlccKyf4oVtkc7WfIgFbOYWMcubo73ZYa06qoy/ 2IU0AzyaZa3yrrDJy/MItZ7ljZRMgaHmMiS1Tc3TbW4JjrI/djG9p+J10t9Rpvm+xI+L YmPflfryisbA3i/mwd0RBXnNv7nT94Kn7/z5j200W5l3LBUPXf13Ix58Rgz2XEwODXYX 3pfQ== X-Gm-Message-State: AOJu0Yw+MkQu4PPpsNPph9icy5UV36B6wK8KgAMvWujEcv4co13PgRjx 5dRWqKb+546LoR5Pcj42d055UhiNTan2qLPrDtNAemUbEdYxkgXhYHdMknU/ X-Google-Smtp-Source: AGHT+IGIC5QhL8zecQh/zmU8EwVpnf96xDC33EyLrar5WCL+xKRCArr1aKgUXNNtVK8hpjkUHJcNLw== X-Received: by 2002:a05:6512:31d5:b0:52e:a008:8f42 with SMTP id 2adb3069b0e04-52ede1d42d2mr378233e87.64.1721073674600; Mon, 15 Jul 2024 13:01:14 -0700 (PDT) Received: from localhost.localdomain (109-252-15-116.nat.spd-mgts.ru. [109.252.15.116]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52ed2532bdasm935299e87.231.2024.07.15.13.01.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jul 2024 13:01:14 -0700 (PDT) From: Maxim Moskalets X-Google-Original-From: Maxim Moskalets To: u-boot@lists.denx.de, trini@konsulko.com, sjg@chromium.org Cc: Maxim Moskalets , Maxim Moskalets Subject: [PATCH] cmd: correct ELF-related commands dependencies Date: Mon, 15 Jul 2024 23:01:10 +0300 Message-Id: <20240715200110.34230-1-Maxim.Moskalets@kaspersky.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean Enable BOOTM_ELF by default for all configs with LIB_ELF selected. Use OF_LIBFDT as dependency for CMD_ELF_FDT_SETUP. Signed-off-by: Maxim Moskalets --- cmd/Kconfig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index 0cf0d8ad8ab..5d34282c196 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -324,7 +324,7 @@ config BOOTM_EFI config BOOTM_ELF bool "Support booting ELF images" depends on CMD_BOOTM && LIB_ELF - default n + default y if LIB_ELF help Support booting ELF images via the bootm command. @@ -500,8 +500,7 @@ config CMD_ELF config CMD_ELF_FDT_SETUP bool "Flattened Device Tree setup in bootelf cmd" depends on CMD_ELF - select LIB_LIBFDT - select LMB + select OF_LIBFDT help Do FDT setup in bootelf command optionally by param -d, which allows to bring additional system info (e.g. /memory node) to