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=-19.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,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 D2327C07E95 for ; Fri, 2 Jul 2021 19:07:45 +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 441BC6141C for ; Fri, 2 Jul 2021 19:07:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 441BC6141C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 265F682BDD; Fri, 2 Jul 2021 21:06:59 +0200 (CEST) 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="Igvv0sKA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 034EB829F8; Fri, 2 Jul 2021 21:06:46 +0200 (CEST) Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) (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 63A24829B9 for ; Fri, 2 Jul 2021 21:06:42 +0200 (CEST) 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-oi1-x22c.google.com with SMTP id r20so7879811oic.2 for ; Fri, 02 Jul 2021 12:06:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=V+ybEo79MXUJ1QpjgVxLoN+dFhXvzdyS5EX5u0Uptdw=; b=Igvv0sKAh+RLYngyRPFVEt4HCPSCXF+UTSgGMs2iCcUsUG5/tRssFNwsWYICf26CfA JUOH5YsdqH3mGW6YI1D/aApzrv9/evUlKxc2htensK6I7TCiSEpT01icZ4VmgCvF8bju o/0erE9zU45H/36vhtNiIw69WPpTvOVH8EQas= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=V+ybEo79MXUJ1QpjgVxLoN+dFhXvzdyS5EX5u0Uptdw=; b=a2c99yPZ8icYNJF1tJRv7Y8/xqL/wYmjCLAJAYkW8mx7ABgRHyQeo0RBZ+tV+NWNtp VoJvp+ywXNMWYhN26lUVwjU4UnSjKpaTyk8FLC+9XLDQNsSy/jvpu0Bq1o2XySBAAW8m xvy+VTFQWAqUwIuIDuB7kaboROeBMjrSB0BXRCJDnMy9eiwPT6HVsLCrTGuFKTdG9MB+ VwBUXGucOXiGv6KCsfaBQ0dvAEYFKAGSGukSl0gGN331aIw9iHIClNy36tVuB+lOOvHp Ekwy9fnyhlvV4dRr2xvgxZyEZkLBXHzTMwcfaauVfSvh5v0DYsI65JlD9OFHjhkleqoM XVzQ== X-Gm-Message-State: AOAM533stbV8sALaCJZcJHWtdS74GIX5Z00i8TPKgdvzgXNWl1+O6I1a H8NGFfYs8eFmcbr9djRGWcv2oL5ciEdy7O2r X-Google-Smtp-Source: ABdhPJxG+9lK3S2alVBZOTlxCRc2hCRlYaYI4TRA8+PTruKWCr0YM8qRPea6djAkUFI4zhdjNQN5bw== X-Received: by 2002:aca:5dc6:: with SMTP id r189mr1015709oib.164.1625252800614; Fri, 02 Jul 2021 12:06:40 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id v8sm772625oth.69.2021.07.02.12.06.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jul 2021 12:06:40 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Ilias Apalodimas , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Mark Kettenis , Heinrich Schuchardt , Simon Glass Subject: [PATCH v2 7/9] Make EFI_LOADER depend on DM and OF_CONTROL Date: Fri, 2 Jul 2021 12:36:18 -0600 Message-Id: <20210702183620.1542680-4-sjg@chromium.org> X-Mailer: git-send-email 2.32.0.93.g670b81a890-goog In-Reply-To: <20210702183620.1542680-1-sjg@chromium.org> References: <20210702183620.1542680-1-sjg@chromium.org> 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 This feature should never have been made available when driver model or devicetree are disabled. Add these as conditions, so that we don't create even more barriers to migration. Add a note about the substantial size increment associated with this option. Signed-off-by: Simon Glass --- Changes in v2: - Split out new patch to make EFI_LOADER depend on DM and OF_CONTROL - Note the approximate size of this feature in the help lib/efi_loader/Kconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig index 6242caceb7f..466abfed300 100644 --- a/lib/efi_loader/Kconfig +++ b/lib/efi_loader/Kconfig @@ -1,6 +1,6 @@ config EFI_LOADER bool "Support running UEFI applications" - depends on OF_LIBFDT && ( \ + depends on OF_LIBFDT && DM && OF_CONTROL && ( \ ARM && (SYS_CPU = arm1136 || \ SYS_CPU = arm1176 || \ SYS_CPU = armv7 || \ @@ -25,6 +25,8 @@ config EFI_LOADER will expose the UEFI API to a loaded application, enabling it to reuse U-Boot's device drivers. + For ARM 32-bit, this adds about 90KB to the size of U-Boot. + if EFI_LOADER config CMD_BOOTEFI_BOOTMGR -- 2.32.0.93.g670b81a890-goog