diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-06-21 17:32:00 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-06-21 17:32:00 +0100 |
commit | 61f10f985e19dfe20a4d9552902625edd5b6eabb (patch) | |
tree | 50db31971b38c4e0358253ef5005058a46fc773e /sys-apps/fwupd-efi/files | |
parent | 34dea8e38f88007799629d0a56b12dec480b1d21 (diff) |
gentoo resync : 21.06.2021
Diffstat (limited to 'sys-apps/fwupd-efi/files')
-rw-r--r-- | sys-apps/fwupd-efi/files/fwupd-efi-1.0-add-genpeimg-parameter.patch | 42 | ||||
-rw-r--r-- | sys-apps/fwupd-efi/files/fwupd-efi-1.0-pass-genpeimg.patch | 21 |
2 files changed, 0 insertions, 63 deletions
diff --git a/sys-apps/fwupd-efi/files/fwupd-efi-1.0-add-genpeimg-parameter.patch b/sys-apps/fwupd-efi/files/fwupd-efi-1.0-add-genpeimg-parameter.patch deleted file mode 100644 index a9791b4e1144..000000000000 --- a/sys-apps/fwupd-efi/files/fwupd-efi-1.0-add-genpeimg-parameter.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 207e8bf4bdb8dbdf8800d4b5cbac5af746047f37 Mon Sep 17 00:00:00 2001 -From: Ross Burton <ross.burton@arm.com> -Date: Fri, 14 May 2021 14:06:31 +0100 -Subject: [PATCH] generate_binary: add genpeimg option - -Add a --genpeimg option as the meson.build uses find_program(), so the -binary could be anywhere. ---- - efi/generate_binary.py | 9 ++++++--- - 1 file changed, 6 insertions(+), 3 deletions(-) - -diff --git a/efi/generate_binary.py b/efi/generate_binary.py -index 0193e50..907af9f 100755 ---- a/efi/generate_binary.py -+++ b/efi/generate_binary.py -@@ -48,13 +48,15 @@ def _run_objcopy(args): - - - def _run_genpeimg(args): -+ if not args.genpeimg: -+ return - -- # this is okay if it does not exist -- argv = ["genpeimg", "-d", "+d", "+n", "-d", "+s", args.outfile] -+ argv = [args.genpeimg, "-d", "+d", "+n", "-d", "+s", args.outfile] - try: - subprocess.run(argv, check=True) - except FileNotFoundError as _: -- pass -+ print(str(e)) -+ sys.exit(1) - - - if __name__ == "__main__": -@@ -63,6 +65,7 @@ def _run_genpeimg(args): - parser.add_argument( - "--objcopy", default="objcopy", help="Binary file to use for objcopy" - ) -+ parser.add_argument("--genpeimg", help="Binary file to use for genpeimg") - parser.add_argument("--arch", default="x86_64", help="EFI architecture") - parser.add_argument("infile", help="Input file") - parser.add_argument("outfile", help="Output file") diff --git a/sys-apps/fwupd-efi/files/fwupd-efi-1.0-pass-genpeimg.patch b/sys-apps/fwupd-efi/files/fwupd-efi-1.0-pass-genpeimg.patch deleted file mode 100644 index 7e4dd1af3294..000000000000 --- a/sys-apps/fwupd-efi/files/fwupd-efi-1.0-pass-genpeimg.patch +++ /dev/null @@ -1,21 +0,0 @@ -From 321f0750ee69cc62ab609f760769d880676f712b Mon Sep 17 00:00:00 2001 -From: Ross Burton <ross.burton@arm.com> -Date: Fri, 14 May 2021 14:07:11 +0100 -Subject: [PATCH] meson: pass the found genpeimg to generate_binary - ---- - efi/meson.build | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/efi/meson.build b/efi/meson.build -index a496210..7cc1da1 100644 ---- a/efi/meson.build -+++ b/efi/meson.build -@@ -215,6 +215,7 @@ app = custom_target(efi_name, - '@INPUT@', '@OUTPUT@', - '--arch', gnu_efi_arch, - '--objcopy', efi_objcopy, -+ '--genpeimg', genpeimg.found() ? genpeimg : '' - ], - install : true, - install_dir : efi_app_location) |