Patchwork dmidecode: Add dmidecode to dev tools

login
register
mail settings
Submitter Darren Hart
Date May 1, 2013, 9:16 p.m.
Message ID <3e08ee882d4f5b07eae09616f4c25468be5c1ccc.1367442991.git.dvhart@linux.intel.com>
Download mbox | patch
Permalink /patch/49225/
State Accepted
Commit 120495843118b55e865bb8d87933bd585fced992
Headers show

Comments

Darren Hart - May 1, 2013, 9:16 p.m.
Dmidecode reports information about your system's hardware as described
in your system BIOS according to the SMBIOS/DMI standard.

This recipe was updated to version 2.12 and cleaned up slightly from the
OE 2.10 version and proposed here for inclusion in oe-core.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
---
 meta/recipes-devtools/dmidecode/dmidecode_2.12.bb |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-devtools/dmidecode/dmidecode_2.12.bb

Patch

diff --git a/meta/recipes-devtools/dmidecode/dmidecode_2.12.bb b/meta/recipes-devtools/dmidecode/dmidecode_2.12.bb
new file mode 100644
index 0000000..bdddf30
--- /dev/null
+++ b/meta/recipes-devtools/dmidecode/dmidecode_2.12.bb
@@ -0,0 +1,21 @@ 
+DESCRIPTION = "DMI (Desktop Management Interface) table related utilities"
+HOMEPAGE = "http://www.nongnu.org/dmidecode/"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=393a5ca445f6965873eca0259a17f833"
+PR = "r0"
+
+SRC_URI = "http://savannah.nongnu.org/download/dmidecode/${P}.tar.bz2"
+
+COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
+
+do_install() {
+	oe_runmake DESTDIR="${D}" install
+}
+
+do_unpack_extra() {
+	sed -i -e '/^prefix/s:/usr/local:${exec_prefix}:' Makefile
+}
+addtask unpack_extra after do_unpack before do_patch
+
+SRC_URI[md5sum] = "a406f3cbb27736491698697beeddb781"
+SRC_URI[sha256sum] = "913ff3055d563a62a420789b8ee33b038de9afa18ea61254760ddf8ab87a5088"