meta-arm.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Add UEFI capsule generation support
@ 2023-01-27 19:21 gowtham.sureshkumar
  2023-01-27 19:21 ` [PATCH 1/3] arm/edk2-basetools: Add edk2 base tool native recipe gowtham.sureshkumar
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: gowtham.sureshkumar @ 2023-01-27 19:21 UTC (permalink / raw)
  To: meta-arm, Ross.Burton; +Cc: nd, Gowtham Suresh Kumar

From: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>

The following patches adds a class for UEFI capsule generation,
a recipe for installing edk2 base tools in the sysroot and
configures the corstone1000 recipe to build a UEFI capsule.


Gowtham Suresh Kumar (3):
  arm/edk2-basetools: Add edk2 base tool native recipe
  arm-bsp/uefi_capsule: Add UEFI capsule generation class
  arm-bsp/corstone1000-image: Generate UEFI capsule for corstone1000
    platform

 .../recipes-bsp/images/corstone1000-image.bb  |  9 +++-
 meta-arm/classes/uefi_capsule.bbclass         | 46 +++++++++++++++++++
 .../edk2-basetools/edk2-basetools_202211.bb   | 24 ++++++++++
 3 files changed, 78 insertions(+), 1 deletion(-)
 create mode 100644 meta-arm/classes/uefi_capsule.bbclass
 create mode 100644 meta-arm/recipes-devtools/edk2-basetools/edk2-basetools_202211.bb

--
2.17.1



^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH 1/3] arm/edk2-basetools: Add edk2 base tool native recipe
  2023-01-27 19:21 [PATCH 0/3] Add UEFI capsule generation support gowtham.sureshkumar
@ 2023-01-27 19:21 ` gowtham.sureshkumar
  2023-01-27 21:27   ` [meta-arm] " Denys Dmytriyenko
  2023-01-27 19:21 ` [PATCH 2/3] arm-bsp/uefi_capsule: Add UEFI capsule generation class gowtham.sureshkumar
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 11+ messages in thread
From: gowtham.sureshkumar @ 2023-01-27 19:21 UTC (permalink / raw)
  To: meta-arm, Ross.Burton; +Cc: nd, Gowtham Suresh Kumar

From: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>

The native recipe installs the UEFI capsule generation tool
along with the other base tools to native sysroot.

Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
---
 .../edk2-basetools/edk2-basetools_202211.bb   | 24 +++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 meta-arm/recipes-devtools/edk2-basetools/edk2-basetools_202211.bb

diff --git a/meta-arm/recipes-devtools/edk2-basetools/edk2-basetools_202211.bb b/meta-arm/recipes-devtools/edk2-basetools/edk2-basetools_202211.bb
new file mode 100644
index 00000000..c80fdae2
--- /dev/null
+++ b/meta-arm/recipes-devtools/edk2-basetools/edk2-basetools_202211.bb
@@ -0,0 +1,24 @@
+# Install EDK2 Base Tools in native sysroot. Currently the BaseTools are not
+# built, they are just copied to native sysroot. This is sufficient for
+# generating UEFI capsules as it only depends on some python scripts. Other
+# tools need to be built first before adding to sysroot.
+
+DESCRIPTION = "EDK2 Base Tools"
+LICENSE = "BSD-2-Clause-Patent"
+
+# EDK2
+SRC_URI = "git://github.com/tianocore/edk2.git;branch=master;protocol=https"
+LIC_FILES_CHKSUM = "file://License.txt;md5=2b415520383f7964e96700ae12b4570a"
+
+SRCREV = "fff6d81270b57ee786ea18ad74f43149b9f03494"
+
+S = "${WORKDIR}/git"
+
+RDEPENDS:${PN} += "python3-core"
+
+do_install () {
+    mkdir -p ${D}${bindir}/edk2-BaseTools
+    cp -r ${WORKDIR}/git/BaseTools/* ${D}${bindir}/edk2-BaseTools/
+}
+
+BBCLASSEXTEND = "native"
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 2/3] arm-bsp/uefi_capsule: Add UEFI capsule generation class
  2023-01-27 19:21 [PATCH 0/3] Add UEFI capsule generation support gowtham.sureshkumar
  2023-01-27 19:21 ` [PATCH 1/3] arm/edk2-basetools: Add edk2 base tool native recipe gowtham.sureshkumar
@ 2023-01-27 19:21 ` gowtham.sureshkumar
  2023-02-01  9:42   ` [meta-arm] " Ilias Apalodimas
  2023-01-27 19:21 ` [PATCH 3/3] arm-bsp/corstone1000-image: Generate UEFI capsule for corstone1000 platform gowtham.sureshkumar
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 11+ messages in thread
From: gowtham.sureshkumar @ 2023-01-27 19:21 UTC (permalink / raw)
  To: meta-arm, Ross.Burton; +Cc: nd, Gowtham Suresh Kumar

From: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>

This class currently supports only a single firmware binary. The
required capsule parameters needs to be set, if not the build fails.

Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
---
 meta-arm/classes/uefi_capsule.bbclass | 46 +++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 meta-arm/classes/uefi_capsule.bbclass

diff --git a/meta-arm/classes/uefi_capsule.bbclass b/meta-arm/classes/uefi_capsule.bbclass
new file mode 100644
index 00000000..0c3d3845
--- /dev/null
+++ b/meta-arm/classes/uefi_capsule.bbclass
@@ -0,0 +1,46 @@
+# This class generates UEFI capsules
+# The current class supports generating a capsule with single firmware binary
+
+inherit python3native
+
+IMAGE_TYPES += "uefi_capsule"
+
+# edk2 base tools should be installed in the native sysroot directory
+do_image_uefi_capsule[depends] += "edk2-basetools-native:do_populate_sysroot"
+
+# By default the wic image is used to create a capsule
+CAPSULE_IMGTYPE ?= "wic"
+
+# IMGDEPLOYDIR is used as the default location of firmware binary for which the capsule needs to be created
+CAPSULE_IMGLOCATION ?= "${IMGDEPLOYDIR}"
+
+# The generated capsule by default has uefi.capsule extension
+CAPSULE_EXTENSION ?= "uefi.capsule"
+
+# The following variables must be set to be able to generate a capsule update
+UEFI_FIRMWARE_BINARY ?= ""
+UEFI_FIRMWARE_VERSION ?= ""
+UEFI_FIRMWARE_LSV ?= ""
+UEFI_FIRMWARE_GUID ?= ""
+UEFI_FIRMWARE_UPDATE_INDEX ?= ""
+
+# Check if the required variables are set
+python() {
+    for var in ["UEFI_FIRMWARE_BINARY", "UEFI_FIRMWARE_VERSION", "UEFI_FIRMWARE_LSV", "UEFI_FIRMWARE_GUID", "UEFI_FIRMWARE_UPDATE_INDEX"]:
+        if not d.getVar(var):
+            raise bb.parse.SkipRecipe(f"{var} not set")
+}
+
+IMAGE_CMD:uefi_capsule(){
+
+    # Force the GenerateCapsule script to use python3
+    export PYTHON_COMMAND=${PYTHON}
+
+    ${STAGING_DIR_NATIVE}/usr/bin/edk2-BaseTools/BinWrappers/PosixLike/GenerateCapsule -e -o \
+    ${CAPSULE_IMGLOCATION}/${UEFI_FIRMWARE_BINARY}.${CAPSULE_EXTENSION} --fw-version ${UEFI_FIRMWARE_VERSION} \
+    --lsv ${UEFI_FIRMWARE_LSV} --guid ${UEFI_FIRMWARE_GUID} --verbose --update-image-index \
+    ${UEFI_FIRMWARE_UPDATE_INDEX} --verbose ${CAPSULE_IMGLOCATION}/${UEFI_FIRMWARE_BINARY}
+}
+
+# The firmware binary should be created before generating the capsule
+IMAGE_TYPEDEP:uefi_capsule:append = "${CAPSULE_IMGTYPE}"
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 3/3] arm-bsp/corstone1000-image: Generate UEFI capsule for corstone1000 platform
  2023-01-27 19:21 [PATCH 0/3] Add UEFI capsule generation support gowtham.sureshkumar
  2023-01-27 19:21 ` [PATCH 1/3] arm/edk2-basetools: Add edk2 base tool native recipe gowtham.sureshkumar
  2023-01-27 19:21 ` [PATCH 2/3] arm-bsp/uefi_capsule: Add UEFI capsule generation class gowtham.sureshkumar
@ 2023-01-27 19:21 ` gowtham.sureshkumar
  2023-02-12 21:29 ` [PATCH 0/3] Add UEFI capsule generation support Jon Mason
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: gowtham.sureshkumar @ 2023-01-27 19:21 UTC (permalink / raw)
  To: meta-arm, Ross.Burton; +Cc: nd, Gowtham Suresh Kumar

From: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>

Inherits the UEFI capsule generation class and configures the capsule
variables for the wic.nopt image

Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
---
 meta-arm-bsp/recipes-bsp/images/corstone1000-image.bb | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/meta-arm-bsp/recipes-bsp/images/corstone1000-image.bb b/meta-arm-bsp/recipes-bsp/images/corstone1000-image.bb
index 76a7126b..b0a71bca 100644
--- a/meta-arm-bsp/recipes-bsp/images/corstone1000-image.bb
+++ b/meta-arm-bsp/recipes-bsp/images/corstone1000-image.bb
@@ -7,10 +7,17 @@ COMPATIBLE_MACHINE = "corstone1000"
 
 inherit image
 inherit wic_nopt tfm_sign_image
+inherit  uefi_capsule
 
 PACKAGE_INSTALL = ""
 
-IMAGE_FSTYPES += "wic wic.nopt"
+IMAGE_FSTYPES += "wic wic.nopt uefi_capsule"
+
+UEFI_FIRMWARE_BINARY = "corstone1000-image-${MACHINE}.wic.nopt"
+UEFI_FIRMWARE_VERSION = "5"
+UEFI_FIRMWARE_LSV = "0"
+UEFI_FIRMWARE_GUID = "e2bb9c06-70e9-4b14-97a3-5a7913176e3f"
+UEFI_FIRMWARE_UPDATE_INDEX = "0"
 
 do_sign_images() {
     # Sign TF-A BL2
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [meta-arm] [PATCH 1/3] arm/edk2-basetools: Add edk2 base tool native recipe
  2023-01-27 19:21 ` [PATCH 1/3] arm/edk2-basetools: Add edk2 base tool native recipe gowtham.sureshkumar
@ 2023-01-27 21:27   ` Denys Dmytriyenko
  2023-02-10  0:24     ` Gowtham Suresh Kumar
  0 siblings, 1 reply; 11+ messages in thread
From: Denys Dmytriyenko @ 2023-01-27 21:27 UTC (permalink / raw)
  To: Gowtham Suresh Kumar; +Cc: meta-arm, Ross.Burton, nd

On Fri, Jan 27, 2023 at 07:21:20PM +0000, Gowtham Suresh Kumar wrote:
> From: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
> 
> The native recipe installs the UEFI capsule generation tool
> along with the other base tools to native sysroot.
> 
> Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
> ---
>  .../edk2-basetools/edk2-basetools_202211.bb   | 24 +++++++++++++++++++
>  1 file changed, 24 insertions(+)
>  create mode 100644 meta-arm/recipes-devtools/edk2-basetools/edk2-basetools_202211.bb
> 
> diff --git a/meta-arm/recipes-devtools/edk2-basetools/edk2-basetools_202211.bb b/meta-arm/recipes-devtools/edk2-basetools/edk2-basetools_202211.bb
> new file mode 100644
> index 00000000..c80fdae2
> --- /dev/null
> +++ b/meta-arm/recipes-devtools/edk2-basetools/edk2-basetools_202211.bb
> @@ -0,0 +1,24 @@
> +# Install EDK2 Base Tools in native sysroot. Currently the BaseTools are not
> +# built, they are just copied to native sysroot. This is sufficient for
> +# generating UEFI capsules as it only depends on some python scripts. Other
> +# tools need to be built first before adding to sysroot.
> +
> +DESCRIPTION = "EDK2 Base Tools"

This ^ should be SUMMARY


> +LICENSE = "BSD-2-Clause-Patent"
> +
> +# EDK2
> +SRC_URI = "git://github.com/tianocore/edk2.git;branch=master;protocol=https"
> +LIC_FILES_CHKSUM = "file://License.txt;md5=2b415520383f7964e96700ae12b4570a"
> +
> +SRCREV = "fff6d81270b57ee786ea18ad74f43149b9f03494"
> +
> +S = "${WORKDIR}/git"
> +
> +RDEPENDS:${PN} += "python3-core"
> +
> +do_install () {
> +    mkdir -p ${D}${bindir}/edk2-BaseTools
> +    cp -r ${WORKDIR}/git/BaseTools/* ${D}${bindir}/edk2-BaseTools/

You could potentially have a host contamination warning here.


> +}
> +
> +BBCLASSEXTEND = "native"
> -- 
> 2.17.1
> 


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [meta-arm] [PATCH 2/3] arm-bsp/uefi_capsule: Add UEFI capsule generation class
  2023-01-27 19:21 ` [PATCH 2/3] arm-bsp/uefi_capsule: Add UEFI capsule generation class gowtham.sureshkumar
@ 2023-02-01  9:42   ` Ilias Apalodimas
  0 siblings, 0 replies; 11+ messages in thread
From: Ilias Apalodimas @ 2023-02-01  9:42 UTC (permalink / raw)
  To: Gowtham Suresh Kumar; +Cc: meta-arm, Ross.Burton, nd

Hi all,

On Fri, 27 Jan 2023 at 21:22, Gowtham Suresh Kumar
<gowtham.sureshkumar@arm.com> wrote:
>
> From: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
>
> This class currently supports only a single firmware binary. The
> required capsule parameters needs to be set, if not the build fails.
>
> Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
> ---
>  meta-arm/classes/uefi_capsule.bbclass | 46 +++++++++++++++++++++++++++
>  1 file changed, 46 insertions(+)
>  create mode 100644 meta-arm/classes/uefi_capsule.bbclass
>
> diff --git a/meta-arm/classes/uefi_capsule.bbclass b/meta-arm/classes/uefi_capsule.bbclass
> new file mode 100644
> index 00000000..0c3d3845
> --- /dev/null
> +++ b/meta-arm/classes/uefi_capsule.bbclass
> @@ -0,0 +1,46 @@
> +# This class generates UEFI capsules
> +# The current class supports generating a capsule with single firmware binary
> +
> +inherit python3native
> +
> +IMAGE_TYPES += "uefi_capsule"
> +
> +# edk2 base tools should be installed in the native sysroot directory
> +do_image_uefi_capsule[depends] += "edk2-basetools-native:do_populate_sysroot"
> +
> +# By default the wic image is used to create a capsule
> +CAPSULE_IMGTYPE ?= "wic"
> +
> +# IMGDEPLOYDIR is used as the default location of firmware binary for which the capsule needs to be created
> +CAPSULE_IMGLOCATION ?= "${IMGDEPLOYDIR}"
> +
> +# The generated capsule by default has uefi.capsule extension
> +CAPSULE_EXTENSION ?= "uefi.capsule"
> +
> +# The following variables must be set to be able to generate a capsule update
> +UEFI_FIRMWARE_BINARY ?= ""
> +UEFI_FIRMWARE_VERSION ?= ""
> +UEFI_FIRMWARE_LSV ?= ""
> +UEFI_FIRMWARE_GUID ?= ""
> +UEFI_FIRMWARE_UPDATE_INDEX ?= ""
> +
> +# Check if the required variables are set
> +python() {
> +    for var in ["UEFI_FIRMWARE_BINARY", "UEFI_FIRMWARE_VERSION", "UEFI_FIRMWARE_LSV", "UEFI_FIRMWARE_GUID", "UEFI_FIRMWARE_UPDATE_INDEX"]:
> +        if not d.getVar(var):
> +            raise bb.parse.SkipRecipe(f"{var} not set")
> +}
> +
> +IMAGE_CMD:uefi_capsule(){
> +
> +    # Force the GenerateCapsule script to use python3
> +    export PYTHON_COMMAND=${PYTHON}
> +
> +    ${STAGING_DIR_NATIVE}/usr/bin/edk2-BaseTools/BinWrappers/PosixLike/GenerateCapsule -e -o \
> +    ${CAPSULE_IMGLOCATION}/${UEFI_FIRMWARE_BINARY}.${CAPSULE_EXTENSION} --fw-version ${UEFI_FIRMWARE_VERSION} \
> +    --lsv ${UEFI_FIRMWARE_LSV} --guid ${UEFI_FIRMWARE_GUID} --verbose --update-image-index \
> +    ${UEFI_FIRMWARE_UPDATE_INDEX} --verbose ${CAPSULE_IMGLOCATION}/${UEFI_FIRMWARE_BINARY}
> +}

That tool also supports a .yaml file to configure.  You can see an
example here [0].  Can we do something similar?


[0] https://gitlab.com/Linaro/trustedsubstrate/meta-ts/-/blob/master/meta-trustedsubstrate/recipes-bsp/capsule-update/capsule-update_0.1.bb#L39

Regards
/Ilias
> +
> +# The firmware binary should be created before generating the capsule
> +IMAGE_TYPEDEP:uefi_capsule:append = "${CAPSULE_IMGTYPE}"
> --
> 2.17.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#4335): https://lists.yoctoproject.org/g/meta-arm/message/4335
> Mute This Topic: https://lists.yoctoproject.org/mt/96573808/4721553
> Group Owner: meta-arm+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-arm/unsub [ilias.apalodimas@linaro.org]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [meta-arm] [PATCH 1/3] arm/edk2-basetools: Add edk2 base tool native recipe
  2023-01-27 21:27   ` [meta-arm] " Denys Dmytriyenko
@ 2023-02-10  0:24     ` Gowtham Suresh Kumar
  2023-02-10 20:46       ` Denys Dmytriyenko
  0 siblings, 1 reply; 11+ messages in thread
From: Gowtham Suresh Kumar @ 2023-02-10  0:24 UTC (permalink / raw)
  To: Denys Dmytriyenko; +Cc: meta-arm, Ross Burton, nd

[-- Attachment #1: Type: text/plain, Size: 2628 bytes --]

Hello Denys,

I do not see any warnings related to host contamination when I use the recipe. Can you please provide more details on it? If you are referring to the ownership issue with cp command, does it also affect native recipes? This recipe is just populating the required edk2 tools to the native staging directory to use for UEFI capsule image generation.

Best regards,
Gowtham Suresh Kumar
________________________________
From: Denys Dmytriyenko <denis@denix.org>
Sent: Friday, January 27, 2023 9:27 PM
To: Gowtham Suresh Kumar <Gowtham.SureshKumar@arm.com>
Cc: meta-arm@lists.yoctoproject.org <meta-arm@lists.yoctoproject.org>; Ross Burton <Ross.Burton@arm.com>; nd <nd@arm.com>
Subject: Re: [meta-arm] [PATCH 1/3] arm/edk2-basetools: Add edk2 base tool native recipe

On Fri, Jan 27, 2023 at 07:21:20PM +0000, Gowtham Suresh Kumar wrote:
> From: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
>
> The native recipe installs the UEFI capsule generation tool
> along with the other base tools to native sysroot.
>
> Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
> ---
>  .../edk2-basetools/edk2-basetools_202211.bb   | 24 +++++++++++++++++++
>  1 file changed, 24 insertions(+)
>  create mode 100644 meta-arm/recipes-devtools/edk2-basetools/edk2-basetools_202211.bb
>
> diff --git a/meta-arm/recipes-devtools/edk2-basetools/edk2-basetools_202211.bb b/meta-arm/recipes-devtools/edk2-basetools/edk2-basetools_202211.bb
> new file mode 100644
> index 00000000..c80fdae2
> --- /dev/null
> +++ b/meta-arm/recipes-devtools/edk2-basetools/edk2-basetools_202211.bb
> @@ -0,0 +1,24 @@
> +# Install EDK2 Base Tools in native sysroot. Currently the BaseTools are not
> +# built, they are just copied to native sysroot. This is sufficient for
> +# generating UEFI capsules as it only depends on some python scripts. Other
> +# tools need to be built first before adding to sysroot.
> +
> +DESCRIPTION = "EDK2 Base Tools"

This ^ should be SUMMARY


> +LICENSE = "BSD-2-Clause-Patent"
> +
> +# EDK2
> +SRC_URI = "git://github.com/tianocore/edk2.git;branch=master;protocol=https"
> +LIC_FILES_CHKSUM = "file://License.txt;md5=2b415520383f7964e96700ae12b4570a"
> +
> +SRCREV = "fff6d81270b57ee786ea18ad74f43149b9f03494"
> +
> +S = "${WORKDIR}/git"
> +
> +RDEPENDS:${PN} += "python3-core"
> +
> +do_install () {
> +    mkdir -p ${D}${bindir}/edk2-BaseTools
> +    cp -r ${WORKDIR}/git/BaseTools/* ${D}${bindir}/edk2-BaseTools/

You could potentially have a host contamination warning here.


> +}
> +
> +BBCLASSEXTEND = "native"
> --
> 2.17.1
>

[-- Attachment #2: Type: text/html, Size: 4668 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [meta-arm] [PATCH 1/3] arm/edk2-basetools: Add edk2 base tool native recipe
  2023-02-10  0:24     ` Gowtham Suresh Kumar
@ 2023-02-10 20:46       ` Denys Dmytriyenko
  0 siblings, 0 replies; 11+ messages in thread
From: Denys Dmytriyenko @ 2023-02-10 20:46 UTC (permalink / raw)
  To: Gowtham Suresh Kumar; +Cc: meta-arm, Ross Burton, nd

On Fri, Feb 10, 2023 at 12:24:56AM +0000, Gowtham Suresh Kumar wrote:
> Hello Denys,
> 
> I do not see any warnings related to host contamination when I use the 
> recipe. Can you please provide more details on it? If you are referring to 
> the ownership issue with cp command, does it also affect native recipes? 

Correct, the ownership issue won't affect the native recipe. But you are 
not adding native-only recipe, you are adding a regular target recipe and 
extending it to also provide a native variant.

If you only intend to use this in a native environment exclusively and it 
doesn't make sense for a target or nativesdk variants, you should make the 
recipe native-only. By naming it edk2-basetools-native_202211.bb, having 
"inherit native" line and dropping BBCLASSEXTEND = "native"


> This recipe is just populating the required edk2 tools to the native staging 
> directory to use for UEFI capsule image generation.
> 
> Best regards,
> Gowtham Suresh Kumar
> ________________________________
> From: Denys Dmytriyenko <denis@denix.org>
> Sent: Friday, January 27, 2023 9:27 PM
> To: Gowtham Suresh Kumar <Gowtham.SureshKumar@arm.com>
> Cc: meta-arm@lists.yoctoproject.org <meta-arm@lists.yoctoproject.org>; Ross Burton <Ross.Burton@arm.com>; nd <nd@arm.com>
> Subject: Re: [meta-arm] [PATCH 1/3] arm/edk2-basetools: Add edk2 base tool native recipe
> 
> On Fri, Jan 27, 2023 at 07:21:20PM +0000, Gowtham Suresh Kumar wrote:
> > From: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
> >
> > The native recipe installs the UEFI capsule generation tool
> > along with the other base tools to native sysroot.
> >
> > Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
> > ---
> >  .../edk2-basetools/edk2-basetools_202211.bb   | 24 +++++++++++++++++++
> >  1 file changed, 24 insertions(+)
> >  create mode 100644 meta-arm/recipes-devtools/edk2-basetools/edk2-basetools_202211.bb
> >
> > diff --git a/meta-arm/recipes-devtools/edk2-basetools/edk2-basetools_202211.bb b/meta-arm/recipes-devtools/edk2-basetools/edk2-basetools_202211.bb
> > new file mode 100644
> > index 00000000..c80fdae2
> > --- /dev/null
> > +++ b/meta-arm/recipes-devtools/edk2-basetools/edk2-basetools_202211.bb
> > @@ -0,0 +1,24 @@
> > +# Install EDK2 Base Tools in native sysroot. Currently the BaseTools are not
> > +# built, they are just copied to native sysroot. This is sufficient for
> > +# generating UEFI capsules as it only depends on some python scripts. Other
> > +# tools need to be built first before adding to sysroot.
> > +
> > +DESCRIPTION = "EDK2 Base Tools"
> 
> This ^ should be SUMMARY
> 
> 
> > +LICENSE = "BSD-2-Clause-Patent"
> > +
> > +# EDK2
> > +SRC_URI = "git://github.com/tianocore/edk2.git;branch=master;protocol=https"
> > +LIC_FILES_CHKSUM = "file://License.txt;md5=2b415520383f7964e96700ae12b4570a"
> > +
> > +SRCREV = "fff6d81270b57ee786ea18ad74f43149b9f03494"
> > +
> > +S = "${WORKDIR}/git"
> > +
> > +RDEPENDS:${PN} += "python3-core"
> > +
> > +do_install () {
> > +    mkdir -p ${D}${bindir}/edk2-BaseTools
> > +    cp -r ${WORKDIR}/git/BaseTools/* ${D}${bindir}/edk2-BaseTools/
> 
> You could potentially have a host contamination warning here.
> 
> 
> > +}
> > +
> > +BBCLASSEXTEND = "native"
> > --
> > 2.17.1
> >


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 0/3] Add UEFI capsule generation support
  2023-01-27 19:21 [PATCH 0/3] Add UEFI capsule generation support gowtham.sureshkumar
                   ` (2 preceding siblings ...)
  2023-01-27 19:21 ` [PATCH 3/3] arm-bsp/corstone1000-image: Generate UEFI capsule for corstone1000 platform gowtham.sureshkumar
@ 2023-02-12 21:29 ` Jon Mason
  2023-02-17  4:30 ` Jon Mason
  2023-03-04 16:59 ` Jon Mason
  5 siblings, 0 replies; 11+ messages in thread
From: Jon Mason @ 2023-02-12 21:29 UTC (permalink / raw)
  To: meta-arm, gowtham.sureshkumar, Ross.Burton; +Cc: nd

On Fri, 27 Jan 2023 19:21:19 +0000, gowtham.sureshkumar@arm.com wrote:
> The following patches adds a class for UEFI capsule generation,
> a recipe for installing edk2 base tools in the sysroot and
> configures the corstone1000 recipe to build a UEFI capsule.
> 
> 
> Gowtham Suresh Kumar (3):
>   arm/edk2-basetools: Add edk2 base tool native recipe
>   arm-bsp/uefi_capsule: Add UEFI capsule generation class
>   arm-bsp/corstone1000-image: Generate UEFI capsule for corstone1000
>     platform
> 
> [...]

Applied, thanks!

[1/3] arm/edk2-basetools: Add edk2 base tool native recipe
      commit: 5914ae11f47fe85541b7c2f796a4b18ac7b49227
[2/3] arm-bsp/uefi_capsule: Add UEFI capsule generation class
      commit: f0945f499c49a10f15f05b0da6efbf01659ca03c
[3/3] arm-bsp/corstone1000-image: Generate UEFI capsule for corstone1000 platform
      commit: 3af64cee5bf963359e1aa304e55ff673b07f0294

Best regards,
-- 
Jon Mason <jon.mason@arm.com>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 0/3] Add UEFI capsule generation support
  2023-01-27 19:21 [PATCH 0/3] Add UEFI capsule generation support gowtham.sureshkumar
                   ` (3 preceding siblings ...)
  2023-02-12 21:29 ` [PATCH 0/3] Add UEFI capsule generation support Jon Mason
@ 2023-02-17  4:30 ` Jon Mason
  2023-03-04 16:59 ` Jon Mason
  5 siblings, 0 replies; 11+ messages in thread
From: Jon Mason @ 2023-02-17  4:30 UTC (permalink / raw)
  To: meta-arm, Ross.Burton, gowtham.sureshkumar; +Cc: nd

On Fri, 27 Jan 2023 19:21:19 +0000, gowtham.sureshkumar@arm.com wrote:
> The following patches adds a class for UEFI capsule generation,
> a recipe for installing edk2 base tools in the sysroot and
> configures the corstone1000 recipe to build a UEFI capsule.
> 
> 
> Gowtham Suresh Kumar (3):
>   arm/edk2-basetools: Add edk2 base tool native recipe
>   arm-bsp/uefi_capsule: Add UEFI capsule generation class
>   arm-bsp/corstone1000-image: Generate UEFI capsule for corstone1000
>     platform
> 
> [...]

Applied, thanks!

[1/3] arm/edk2-basetools: Add edk2 base tool native recipe
      commit: 5914ae11f47fe85541b7c2f796a4b18ac7b49227
[2/3] arm-bsp/uefi_capsule: Add UEFI capsule generation class
      commit: f0945f499c49a10f15f05b0da6efbf01659ca03c
[3/3] arm-bsp/corstone1000-image: Generate UEFI capsule for corstone1000 platform
      commit: 3af64cee5bf963359e1aa304e55ff673b07f0294

Best regards,
-- 
Jon Mason <jon.mason@arm.com>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 0/3] Add UEFI capsule generation support
  2023-01-27 19:21 [PATCH 0/3] Add UEFI capsule generation support gowtham.sureshkumar
                   ` (4 preceding siblings ...)
  2023-02-17  4:30 ` Jon Mason
@ 2023-03-04 16:59 ` Jon Mason
  5 siblings, 0 replies; 11+ messages in thread
From: Jon Mason @ 2023-03-04 16:59 UTC (permalink / raw)
  To: meta-arm, gowtham.sureshkumar, Ross.Burton; +Cc: nd

On Fri, 27 Jan 2023 19:21:19 +0000, gowtham.sureshkumar@arm.com wrote:
> The following patches adds a class for UEFI capsule generation,
> a recipe for installing edk2 base tools in the sysroot and
> configures the corstone1000 recipe to build a UEFI capsule.
> 
> 
> Gowtham Suresh Kumar (3):
>   arm/edk2-basetools: Add edk2 base tool native recipe
>   arm-bsp/uefi_capsule: Add UEFI capsule generation class
>   arm-bsp/corstone1000-image: Generate UEFI capsule for corstone1000
>     platform
> 
> [...]

Applied, thanks!

[1/3] arm/edk2-basetools: Add edk2 base tool native recipe
      commit: ccf216ce4d5e149d907ab2777b2b39d71b90bd53
[2/3] arm-bsp/uefi_capsule: Add UEFI capsule generation class
      commit: 7a1649137389bff0ad1a4825a2dc148290437a3b
[3/3] arm-bsp/corstone1000-image: Generate UEFI capsule for corstone1000 platform
      commit: 2792359e0a6d2663b0d8b523e2290b14029cc4fb

Best regards,
-- 
Jon Mason <jon.mason@arm.com>


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-03-04 16:59 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-27 19:21 [PATCH 0/3] Add UEFI capsule generation support gowtham.sureshkumar
2023-01-27 19:21 ` [PATCH 1/3] arm/edk2-basetools: Add edk2 base tool native recipe gowtham.sureshkumar
2023-01-27 21:27   ` [meta-arm] " Denys Dmytriyenko
2023-02-10  0:24     ` Gowtham Suresh Kumar
2023-02-10 20:46       ` Denys Dmytriyenko
2023-01-27 19:21 ` [PATCH 2/3] arm-bsp/uefi_capsule: Add UEFI capsule generation class gowtham.sureshkumar
2023-02-01  9:42   ` [meta-arm] " Ilias Apalodimas
2023-01-27 19:21 ` [PATCH 3/3] arm-bsp/corstone1000-image: Generate UEFI capsule for corstone1000 platform gowtham.sureshkumar
2023-02-12 21:29 ` [PATCH 0/3] Add UEFI capsule generation support Jon Mason
2023-02-17  4:30 ` Jon Mason
2023-03-04 16:59 ` Jon Mason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).