diff options
| author | Ross Burton <ross.burton@arm.com> | 2022-02-01 16:52:48 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-02-03 08:44:32 -0800 |
| commit | 880defa7297f2e3594092878b4f43cf7a487d849 (patch) | |
| tree | 4afbfd41c20b29394ee0398bbb6d28447b97ce9c | |
| parent | ff9442e0f921758524a63411664813c98402688c (diff) | |
| download | meta-openembedded-880defa7297f2e3594092878b4f43cf7a487d849.tar.gz | |
fwupd-efi: upgrade to 1.2
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-bsp/fwupd/fwupd-efi/cc.patch | 10 | ||||
| -rw-r--r-- | meta-oe/recipes-bsp/fwupd/fwupd-efi_1.2.bb (renamed from meta-oe/recipes-bsp/fwupd/fwupd-efi_1.1.bb) | 3 |
2 files changed, 6 insertions, 7 deletions
diff --git a/meta-oe/recipes-bsp/fwupd/fwupd-efi/cc.patch b/meta-oe/recipes-bsp/fwupd/fwupd-efi/cc.patch index ac345f2752..6fd2eca941 100644 --- a/meta-oe/recipes-bsp/fwupd/fwupd-efi/cc.patch +++ b/meta-oe/recipes-bsp/fwupd/fwupd-efi/cc.patch | |||
| @@ -20,7 +20,7 @@ index e42b365..4831a48 100755 | |||
| 20 | import sys | 20 | import sys |
| 21 | import argparse | 21 | import argparse |
| 22 | @@ -19,7 +20,7 @@ def _generate_sbat(args): | 22 | @@ -19,7 +20,7 @@ def _generate_sbat(args): |
| 23 | FWUPD_URL = "https://github.com/fwupd/fwupd" | 23 | FWUPD_URL = "https://github.com/fwupd/fwupd-efi" |
| 24 | 24 | ||
| 25 | subprocess.run( | 25 | subprocess.run( |
| 26 | - [args.cc, "-x", "c", "-c", "-o", args.outfile, "/dev/null"], check=True | 26 | - [args.cc, "-x", "c", "-c", "-o", args.outfile, "/dev/null"], check=True |
| @@ -32,13 +32,13 @@ diff --git a/efi/meson.build b/efi/meson.build | |||
| 32 | index 68ea4aa..dcf0d43 100644 | 32 | index 68ea4aa..dcf0d43 100644 |
| 33 | --- a/efi/meson.build | 33 | --- a/efi/meson.build |
| 34 | +++ b/efi/meson.build | 34 | +++ b/efi/meson.build |
| 35 | @@ -184,7 +184,7 @@ o_file5 = custom_target('fwup-sbat.o', | 35 | @@ -187,7 +187,7 @@ o_file5 = custom_target('fwup-sbat.o', |
| 36 | command : [ | 36 | command : [ |
| 37 | join_paths(meson.current_source_dir(), 'generate_sbat.py'), | 37 | generate_sbat, |
| 38 | '@OUTPUT@', | 38 | '@OUTPUT@', |
| 39 | - '--cc', efi_cc, | 39 | - '--cc', efi_cc, |
| 40 | + '--cc', ' '.join(efi_cc), | 40 | + '--cc', ' '.join(efi_cc), |
| 41 | '--objcopy', efi_objcopy, | 41 | '--objcopy', objcopy, |
| 42 | '--project-name', meson.project_name(), | 42 | '--project-name', meson.project_name(), |
| 43 | '--project-version', meson.project_version(), | 43 | '--project-version', meson.project_version(), |
| 44 | diff --git a/meson_options.txt b/meson_options.txt | 44 | diff --git a/meson_options.txt b/meson_options.txt |
| @@ -49,5 +49,5 @@ index d869cd2..17ef7fb 100644 | |||
| 49 | -option('efi-cc', type : 'string', value : 'gcc', description : 'the compiler to use for EFI modules') | 49 | -option('efi-cc', type : 'string', value : 'gcc', description : 'the compiler to use for EFI modules') |
| 50 | +option('efi-cc', type : 'array', value : ['gcc'], description : 'the compiler to use for EFI modules') | 50 | +option('efi-cc', type : 'array', value : ['gcc'], description : 'the compiler to use for EFI modules') |
| 51 | option('efi-ld', type : 'string', value : 'ld', description : 'the linker to use for EFI modules') | 51 | option('efi-ld', type : 'string', value : 'ld', description : 'the linker to use for EFI modules') |
| 52 | option('efi-objcopy', type : 'string', value : 'objcopy', description : 'the objcopy utility to use for EFI modules') | ||
| 53 | option('efi-libdir', type : 'string', description : 'path to the EFI lib directory') | 52 | option('efi-libdir', type : 'string', description : 'path to the EFI lib directory') |
| 53 | option('efi-ldsdir', type : 'string', description : 'path to the EFI lds directory') | ||
diff --git a/meta-oe/recipes-bsp/fwupd/fwupd-efi_1.1.bb b/meta-oe/recipes-bsp/fwupd/fwupd-efi_1.2.bb index 2165b42293..b88db2e53c 100644 --- a/meta-oe/recipes-bsp/fwupd/fwupd-efi_1.1.bb +++ b/meta-oe/recipes-bsp/fwupd/fwupd-efi_1.2.bb | |||
| @@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | |||
| 4 | 4 | ||
| 5 | SRC_URI = "git://github.com/fwupd/fwupd-efi;protocol=https;branch=main \ | 5 | SRC_URI = "git://github.com/fwupd/fwupd-efi;protocol=https;branch=main \ |
| 6 | file://cc.patch" | 6 | file://cc.patch" |
| 7 | SRCREV = "fee1b8f6473cb403b8ae7a56961ba0557e3f3efa" | 7 | SRCREV = "8de5918507dcc797e612aac688d6b60b90053f54" |
| 8 | S = "${WORKDIR}/git" | 8 | S = "${WORKDIR}/git" |
| 9 | 9 | ||
| 10 | DEPENDS = "gnu-efi" | 10 | DEPENDS = "gnu-efi" |
| @@ -20,7 +20,6 @@ SBAT_DISTRO_URL ?= "" | |||
| 20 | 20 | ||
| 21 | EXTRA_OEMESON += "-Defi-cc="${@meson_array('CC', d)}" \ | 21 | EXTRA_OEMESON += "-Defi-cc="${@meson_array('CC', d)}" \ |
| 22 | -Defi-ld='${HOST_PREFIX}ld' \ | 22 | -Defi-ld='${HOST_PREFIX}ld' \ |
| 23 | -Defi-objcopy='${OBJCOPY}' \ | ||
| 24 | -Defi-includedir=${STAGING_INCDIR}/efi \ | 23 | -Defi-includedir=${STAGING_INCDIR}/efi \ |
| 25 | -Defi-libdir=${STAGING_LIBDIR} \ | 24 | -Defi-libdir=${STAGING_LIBDIR} \ |
| 26 | -Defi_sbat_distro_id='${SBAT_DISTRO_ID}' \ | 25 | -Defi_sbat_distro_id='${SBAT_DISTRO_ID}' \ |
