From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 44DB27803E6 for ; Tue, 28 Nov 2023 15:09:26 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=U3ZdDu8CGegTCpofaI8ncOde+sxV0LEKhwnIIBeyFnw=; c=relaxed/simple; d=groups.io; h=MIME-Version:From:Date:Message-ID:Subject:To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type; s=20140610; t=1701184164; v=1; b=mRsXMU8b/weFy1zYzKIbZh8sc0tJJ8Rwf4CDID+RpaC/SfhjHq5NIVdts1GUnevoYO90xt16 G4nOvyBXSIZhmUnGqmQq1rjPAaccyHebN9FT5MJNDTTdzQloVNBH70Mi6LqIOyZcvNRD1WNjq56 9sjnHwfJmtmcIxhPHuaTlafc= X-Received: by 127.0.0.2 with SMTP id D5dJYY7687511xTWKiDkyKyk; Tue, 28 Nov 2023 07:09:24 -0800 X-Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) by mx.groups.io with SMTP id smtpd.web10.67095.1701035662572328985 for ; Sun, 26 Nov 2023 13:54:22 -0800 X-Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-9fa2714e828so488225466b.1 for ; Sun, 26 Nov 2023 13:54:22 -0800 (PST) X-Gm-Message-State: 43OyYhapUkShXyyLNrZ9mZYsx7686176AA= X-Google-Smtp-Source: AGHT+IHn2R25atJtdB2e2zR8Bv420JQbHQpyLyQY9nV4zSbV20CCy4DokdiXRORMqKkeSzbR8+cmuGePske0Dkiveuo= X-Received: by 2002:a17:906:5b:b0:a01:a299:fa3 with SMTP id 27-20020a170906005b00b00a01a2990fa3mr7310848ejg.8.1701035660728; Sun, 26 Nov 2023 13:54:20 -0800 (PST) MIME-Version: 1.0 From: Hugues Morisset Date: Sun, 26 Nov 2023 22:54:09 +0100 Message-ID: Subject: [edk2-devel] Pcd to set Boot0000 at build time To: devel@edk2.groups.io Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,morisset.hugues@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: multipart/mixed; boundary="0000000000004eee3b060b153a40" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=mRsXMU8b; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io --0000000000004eee3b060b153a40 Content-Type: multipart/alternative; boundary="0000000000004eee39060b153a3e" --0000000000004eee39060b153a3e Content-Type: text/plain; charset="UTF-8" Hello, I wrote a patch that make it possible to set Boot0000 at build time using a pcd. For example with build option `--pcd=gEfiMdeModulePkgTokenSpaceGuid.PcdPlatformBootBoot0000=Lshell.efi`, I can make sure that efi shell will boot first for a newly build firmware image. Thanks, Hugues -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111811): https://edk2.groups.io/g/devel/message/111811 Mute This Topic: https://groups.io/mt/102851815/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- --0000000000004eee39060b153a3e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I wrote a patch th= at make it possible to set Boot0000 at build time using a pcd.

For example with build option `--pcd=3DgEfiMdeModulePkgTokenSpaceGuid.PcdP= latformBootBoot0000=3DLshell.efi`, I can make sure that efi shell will boot= first for a newly build firmware image.

Thanks,
Hugues
_._,_._,_

Groups.io Links:

=20 You receive all messages sent to this group. =20 =20

View/Reply Online (#111811) | =20 | Mute= This Topic | New Topic
Your Subscriptio= n | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--0000000000004eee39060b153a3e-- --0000000000004eee3b060b153a40 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-BdsDxe-Add-at-build-user-provided-Boot0000-entry.patch" Content-Disposition: attachment; filename="0001-BdsDxe-Add-at-build-user-provided-Boot0000-entry.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lpg0p0520 RnJvbSBlOTg3YWMwODgxZDRhNTU4N2U0NDVlZGYxZGRlZGE4N2JiMmZmYzAzIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBIdWd1ZXMgTW9yaXNzZXQgPG1vcmlzc2V0Lmh1Z3Vlc0BnbWFp bC5jb20+CkRhdGU6IFN1biwgMjYgTm92IDIwMjMgMjI6NDY6MjEgKzAxMDAKU3ViamVjdDogW1BB VENIXSBCZHNEeGU6IEFkZCBhdCBidWlsZCB1c2VyIHByb3ZpZGVkIEJvb3QwMDAwIGVudHJ5CgpX aGVuIGJ1aWxkaW5nIGV4aXN0aW5nIHBsYXRmb3JtcyBkZXNjcmlwdGlvbnMsIGl0IGlzIGhhcmQg Zm9yIGEgdXNlcgp0byBjaG9vc2UgYSBkZWZhdWx0IGJvb3Qgb3B0aW9uIGF0IGJ1aWxkIHRpbWUu ClRoaXMgcGF0Y2ggYWRkcyBhIFBjZCB0aGF0IHNldCBCb290MDAwMCBlbnRyeSBhdCBib290LgoK U2lnbmVkLW9mZi1ieTogSHVndWVzIE1vcmlzc2V0IDxtb3Jpc3NldC5odWd1ZXNAZ21haS5jb20+ Ci0tLQogTWRlTW9kdWxlUGtnL01kZU1vZHVsZVBrZy5kZWMgICAgICAgICAgICB8ICA0ICsrKwog TWRlTW9kdWxlUGtnL1VuaXZlcnNhbC9CZHNEeGUvQmRzRHhlLmluZiB8ICAxICsKIE1kZU1vZHV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VW5hYmxlIHRvIGJvb3QuXG4i KSk7DQorICAgICAgQ3B1RGVhZExvb3AgKCk7DQorICAgIH0NCisNCisgICAgUGxhdGZvcm1EZWZh dWx0Qm9vdDAwMDBWYWxpZCA9IEVmaUJvb3RNYW5hZ2VySW5pdGlhbGl6ZUxvYWRPcHRpb24gKA0K KyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJlBsYXRmb3JtRGVmYXVsdEJv b3QwMDAwLA0KKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMCwNCisgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIExvYWRPcHRpb25UeXBlQm9vdCwNCisg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIExPQURfT1BUSU9OX0FDVElWRSwN CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEwiRGVmYXVsdCBQbGF0Zm9y bUJvb3QiLA0KKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgRmlsZVBhdGgs DQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBOVUxMLA0KKyAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMA0KKyAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgKSA9PSBFRklfU1VDQ0VTUzsNCisNCisgICAgREVCVUcgKChERUJVR19F UlJPUiwgIiVkXG4iLCBQbGF0Zm9ybURlZmF1bHRCb290MDAwMFZhbGlkKSk7DQorICAgIEFTU0VS VCAoUGxhdGZvcm1EZWZhdWx0Qm9vdDAwMDBWYWxpZCA9PSBUUlVFKTsNCisgICAgaWYgKFBsYXRm b3JtRGVmYXVsdEJvb3QwMDAwVmFsaWQpIHsNCisgICAgICBFZmlCb290TWFuYWdlckxvYWRPcHRp b25Ub1ZhcmlhYmxlKCZQbGF0Zm9ybURlZmF1bHRCb290MDAwMCk7DQorICAgICAgRWZpQm9vdE1h bmFnZXJGcmVlTG9hZE9wdGlvbiAoJlBsYXRmb3JtRGVmYXVsdEJvb3QwMDAwKTsNCisgICAgfQ0K KyAgICBGcmVlUG9vbCAoRmlsZVBhdGgpOw0KKyAgfQ0KKw0KICAgLy8NCiAgIC8vIEluaXRpYWxp emUgdGhlIHBsYXRmb3JtIGxhbmd1YWdlIHZhcmlhYmxlcw0KICAgLy8NCi0tIAoyLjQzLjAKCg== --0000000000004eee3b060b153a40--