From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) by mx.groups.io with SMTP id smtpd.web08.6566.1626268879163350523 for ; Wed, 14 Jul 2021 06:21:19 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=dqPfIrmX; spf=none, err=SPF record not found (domain: semihalf.com, ip: 209.85.167.52, mailfrom: gjb@semihalf.com) Received: by mail-lf1-f52.google.com with SMTP id 22so3512421lfy.12 for ; Wed, 14 Jul 2021 06:21:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4t3Iv3i/LEKiCB5ZUhFj0AoGFxOsHrhKmYKOqZy90vQ=; b=dqPfIrmX7Cr46a+o68KYYyem8bbvReW1FsKwh63NJhxy8Uc7rBfFapZ9z4iS4PeOk1 vbtYyAAtV8TVYUrxY7mUEH7jeJawmIj2BHcJ0FDL2ZZ5NjuTgfqGRpEZFDgZj7kiW469 519xII/MgCzDRzAt8o5RGODsNB74LQJSXRoCoswKN40uwkYldrkCtW5MXKGOK1b06a9p SArrdBO746LaghGrQqqBHZQ8TMZoFBawNo4EWtrS7LYSLHZMooCzTjYMHf6IHKnfUpef DQ7x8lKnWDcbNKi800a23ifcU81U8amrnpUirlGbmUeO0kAY263aLzyE+iL55Jd0B7li X0Cg== 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:mime-version :content-transfer-encoding; bh=4t3Iv3i/LEKiCB5ZUhFj0AoGFxOsHrhKmYKOqZy90vQ=; b=LedBgjBXimAxpqKC24en6EXTC57186GZ2uEHLc+FEl3dlUZuln8GD9yF8d4CB6rJ6U nNDoo7BZxdSkLhLR5NGTaftbNb+eltoOd/yL/l4vjy1We2Ln3URWzQ5A2Hgp3Rw8SkID AfC3Uob4NU8/hb1lFHcOCKBDuXCILD82nE1hXUBNHc5JXfSC3pM+fWPlNoZG7dKEIg0J DENDFYmquxhh9AgHDlraDnVyW/QuzbVQTBicn5lszrh85Ws0zHQh5mHiDV1//wzr9To/ NPRP9trMEZteP35jaJYk0gbihpP4rENiKglFlVN+Z7d6E2Ph69LzevvEOsCi9rYhyd6H tlRQ== X-Gm-Message-State: AOAM530uk8bsNYe/pbNp472j5nYu7qibkrEuvvVd6voRMoyTOvwExX/s RK0BWwMf8RnThbpHHG+yoXWHfwFasjyy/R8A X-Google-Smtp-Source: ABdhPJwwsDezKXi1KnBwDTsDPoIGeSX8bZK201W/RwkmimMOMm3hyMLxJPv/ZHiCHT/tVdoSZEy6FQ== X-Received: by 2002:a05:6512:691:: with SMTP id t17mr7804490lfe.526.1626268877240; Wed, 14 Jul 2021 06:21:17 -0700 (PDT) Return-Path: Received: from gilgamesh.lab.semihalf.net ([83.142.187.85]) by smtp.gmail.com with ESMTPSA id e22sm237931ljl.31.2021.07.14.06.21.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 06:21:16 -0700 (PDT) From: "Grzegorz Bernacki" To: devel@edk2.groups.io Cc: leif@nuviainc.com, ardb+tianocore@kernel.org, Samer.El-Haj-Mahmoud@arm.com, sunny.Wang@arm.com, mw@semihalf.com, upstream@semihalf.com, pete@akeo.ie, jian.j.wang@intel.com, hao.a.wu@intel.com, dandan.bi@intel.com, eric.dong@intel.com, Grzegorz Bernacki Subject: [edk2-platforms PATCH v3 0/2] Add BootDiscoveryPolicyUiLib Date: Wed, 14 Jul 2021 15:21:00 +0200 Message-Id: <20210714132103.1341207-1-gjb@semihalf.com> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patchset extends Boot Maintenance Menu and allows to select Boot Discovery Policy. Raspberry Pi platforms uses the variable to connect specified class of devices on boot. This patchset also removes efdc159e which has similar functionality. Discussion on design can be found at: https://edk2.groups.io/g/rfc/topic/rfc_boot_discovery_policy/82450628 Changes since v1: - make 'Connect All' (0x2) default value for PcdBootDiscoveryPolicy - initialize BootDiscoveryPolicy variable in platform code, if not found Changes since v2: - add missing local variable initialization Grzegorz Bernacki (3): edk2: MdeModulePkg: Add BootDiscoveryPolicyUiLib. edk2-platform: Platform/RaspberryPi: Enable Boot Discovery Policy. Revert "Platform/RaspberryPi: Setup option for disabling Fast Boot" Platform/RaspberryPi/RaspberryPi.dec | 2 - Platform/RaspberryPi/RPi3/RPi3.dsc | 9 +- Platform/RaspberryPi/RPi4/RPi4.dsc | 12 +-- Platform/RaspberryPi/RPi4/RPi4.fdf | 1 + Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.inf | 3 +- Platform/RaspberryPi/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 6 +- Platform/RaspberryPi/Include/ConfigVars.h | 12 +-- Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxeHii.vfr | 16 +-- Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c | 11 +-- Platform/RaspberryPi/Library/PlatformBootManagerLib/PlatformBm.c | 102 +++++++++++++++++--- Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxeHii.uni | 10 +- MdeModulePkg/MdeModulePkg.dec | 6 + MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLib.inf | 52 +++++++ MdeModulePkg/Include/Guid/BootDiscoveryPolicy.h | 22 +++ MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLib.c | 160 ++++++++++++++++++++ MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLib.uni | 18 +++ MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLibStrings.uni | 29 ++++ MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLibVfr.Vfr | 44 ++++++ 18 files changed, 438 insertions(+), 77 deletions(-) create mode 100644 MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLib.inf create mode 100644 MdeModulePkg/Include/Guid/BootDiscoveryPolicy.h create mode 100644 MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLib.c create mode 100644 MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLib.uni create mode 100644 MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLibStrings.uni create mode 100644 MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLibVfr.Vfr -- 2.25.1