Skip to contentSkip to conversation

python3-binwalk: add recipe for version 2.3.3

PATCH Superseded Tomasz Żyjewski 2 participants 4 messages Dec 1, 2022 – Dec 2, 2022

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python3-binwalk: add recipe for version 2.3.3

Install binwalk utility.

Binwalk is a fast, easy to use tool for analyzing, reverse engineering, and extracting firmware images.

---
 .../python/python3-binwalk_2.3.3.bb             | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-binwalk_2.3.3.bb
meta-python/recipes-devtools/python/python3-binwalk_2.3.3.bb new file +17 -0
new file mode 100644
index 000000000000..362efa275148
@@ -0,0 +1,17 @@
+SUMMARY = "Firmware analysis tool"
+DESCRIPTION = "This package contains Python Binwalk tool. Binwalk is a fast, \
+easy to use tool for analyzing, reverse engineering, and extracting firmware \
+images."
+HOMEPAGE = "https://github.com/ReFirmLabs/binwalk"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=65bbee055d3ea3bfc475f07aecf4de64"
+
+SRC_URI = "git://github.com/ReFirmLabs/binwalk;protocol=https;branch=master"
+
+SRCREV = "fa0c0bd59b8588814756942fe4cb5452e76c1dcd"
+
+S = "${WORKDIR}/git"
+
+inherit setuptools3
+
+RDEPENDS:${PN} += "python3-core"
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 python3-uefi-firmware: add recipe for version 1.9

Install uefi-firmware-parser tool

The UEFI firmware parseer is a simple module and set of scripts for parsing, extracting, and recreating UEFI firmware volumes.

---
 .../python/python3-uefi-firmware_1.9.bb         | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-uefi-firmware_1.9.bb
meta-python/recipes-devtools/python/python3-uefi-firmware_1.9.bb new file +17 -0
new file mode 100644
index 000000000000..3837a17437b1
@@ -0,0 +1,17 @@
+SUMMARY = "Various data structures and parsing tools for UEFI firmware."
+DESCRIPTION = "This package contains Python UEFI firmware parser tool. The \
+UEFI firmware parser is a simple module and set of scripts for parsing, \
+extracting, and recreating UEFI firmware volumes. This includes parsing \
+modules for BIOS, OptionROM, Intel ME and other formats too."
+HOMEPAGE = "https://github.com/theopolis/uefi-firmware-parser"
+AUTHOR = "Teddy Reed <[email protected]>"
+LICENSE = "BSD-2-Clause & BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://setup.py;md5=90fa5bae1547550f1c1993f651eda955"
+
+SRC_URI = "git://github.com/theopolis/uefi-firmware-parser;protocol=https;branch=master"
+
+SRCREV = "502f1bada1ed11fdd1792646fda0bfafb8fa57fb"
+
+S = "${WORKDIR}/git"
+
+inherit setuptools3
Signature · 1 line
2.25.1
#2 lore raw

Re: [oe] ['meta-python][PATCH V2' 2/2] python3-uefi-firmware: add recipe for version 1.9

Hi Tomasz

Thanks for the patches!

Quoted 10 lines · tomzy

Install uefi-firmware-parser tool

The UEFI firmware parseer is a simple module and set of scripts for parsing, extracting, and recreating UEFI firmware volumes.

---
  .../python/python3-uefi-firmware_1.9.bb         | 17 +++++++++++++++++
  1 file changed, 17 insertions(+)

create mode 100644 meta-python/recipes-devtools/python/python3-uefi-firmware_1.9.bb

However, if I apply your patch through "git am", the author of the commit will be:
tomzy <[email protected]>
instead of
Tomasz Żyjewski <[email protected]>

Because of this issue, the maintainer has to manually fix this field when accepting your patch. Worse, if he doesn't catch this, that's harder to fix afterwards.

You should be able to fix this by running:
git config --global sendemail.from "[email protected]"

This should add a "From" field to the sent patch which "git am" should be able to match with your name. See https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded#Sending_using_git-send-email

Could you try to send an update (don't hesitate to send a private one to me first)?

Thanks in advance
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
author
#3 lore raw

Re: ['meta-python][PATCH V2' 2/2] python3-uefi-firmware: add recipe for version 1.9

Quoted 2 lines · Michael Opdenacker

Hi Tomasz

Hi

Quoted 23 lines

Thanks for the patches!

Quoted 11 lines · tomzy

Install uefi-firmware-parser tool

The UEFI firmware parseer is a simple module and set of scripts for parsing, extracting, and recreating UEFI firmware volumes.

---
.../python/python3-uefi-firmware_1.9.bb | 17 +++++++++++++++++

1 file changed, 17 insertions(+)

create mode 100644 meta-python/recipes-devtools/python/python3-uefi-firmware_1.9.bb

However, if I apply your patch through "git am", the author of the commit will be:
tomzy <[email protected]>
instead of
Tomasz Żyjewski <[email protected]>

Quoted 3 lines

Because of this issue, the maintainer has to manually fix this field when accepting your patch. Worse, if he doesn't catch this, that's harder to fix afterwards.

I was not aware of this issue. I must have missed it in guidelines. Sorry for that!

Quoted 5 lines

You should be able to fix this by running:
git config --global sendemail.from "[email protected]"

Quoted 8 lines

This should add a "From" field to the sent patch which "git am" should be able to match with your name.
See
https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded#Sending_using_git-send-email

Could you try to send an update (don't hesitate to send a private one to me first)?

Thank you, I will try that. Should I use [email protected] ?

Quoted 9 lines

Thanks in advance
Michael.

--
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com