Skip to contentSkip to conversation

meta-oe: add nbench-byte recipe

PATCH Superseded Chase Maupin 2 participants 3 messages Feb 28, 2012

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover meta-oe: add nbench-byte recipe

All,

This patch adds the nbench-byte recipe from the OE classic repo to the recipes-benchmark directory. I hope I got this patch right to give proper credit to the original authors, as well as to update the Upstream-Status of the nbench_32bits.patch file.

Please let me know if there is something else I need to do to give proper credit.

Chase Maupin (1):
nbench-byte: import recipe for oe-classic

 .../nbench-byte/nbench-byte/nbench_32bits.patch    |   46 ++++++++++++++++++++
 .../nbench-byte/nbench-byte_2.2.3.bb               |   26 +++++++++++
 2 files changed, 72 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-benchmark/nbench-byte/nbench-byte/nbench_32bits.patch
 create mode 100644 meta-oe/recipes-benchmark/nbench-byte/nbench-byte_2.2.3.bb
#1 lore raw

PATCH 1/1 nbench-byte: import recipe for oe-classic

* Import the nbench-byte recipe from the oe-classic git repo at
git://git.openembedded.org/openembedded commit id:
* 6fe7cef27069415f2eba36bc640cf59013d4979b
* Update LICENSE checksums
* Original Author:
* Marcin Juszkiewicz <[email protected]>
* Modifications by:
* Koen Kooi <[email protected]>
* Martin Jansa <[email protected]>
* Chris Larson <[email protected]>

---
 .../nbench-byte/nbench-byte/nbench_32bits.patch    |   46 ++++++++++++++++++++
 .../nbench-byte/nbench-byte_2.2.3.bb               |   26 +++++++++++
 2 files changed, 72 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-benchmark/nbench-byte/nbench-byte/nbench_32bits.patch
 create mode 100644 meta-oe/recipes-benchmark/nbench-byte/nbench-byte_2.2.3.bb
meta-oe/recipes-benchmark/nbench-byte/nbench-byte/nbench_32bits.patch new file +46 -0
new file mode 100644
index 0000000..1b8a4dc
@@ -0,0 +1,46 @@
+From 81f4043a6787060029ef20eed21cdcf3e50337df Mon Sep 17 00:00:00 2001
+From: Chase Maupin <[email protected]>
+Date: Tue, 28 Feb 2012 14:58:35 -0600
+Subject: [PATCH] nbench: modify Makefile for 32bit
+
+* Patch taken from OE classic git repository as of commit id
+  ad42bf9065928b2902d7d9534709d3ccea7ec956 and was added by:
+    * Marcin Juszkiewicz <[email protected]>
+* Notes from original patch were:
+
+BYTE Magazine's native benchmarks (also called BYTEmark) designed to
+expose the capabilities of a system's CPU, FPU and memory system.
+
+http://www.tux.org/~mayer/linux/
+
+Recipe from old Atmel overlay.
+
+Upstream-Status: Inappropriate [no upstream]
+
+Signed-off-by: Chase Maupin <[email protected]>
+---
+ Makefile |    8 ++------
+ 1 files changed, 2 insertions(+), 6 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 5045c77..915866d 100644
+--- a/Makefile
++++ b/Makefile
+@@ -119,12 +119,8 @@ emfloat.o: emfloat.h emfloat.c nmglobal.h pointer.h Makefile
+ 	$(CC) $(MACHINE) $(DEFINES) $(CFLAGS)\
+ 		-c emfloat.c
+ 
+-pointer.h: pointer Makefile
+-	$(CC) $(MACHINE) $(DEFINES) $(CFLAGS)\
+-		-o pointer pointer.c
+-	rm -f pointer.h
+-	if [ "4" = `./pointer` ] ; then touch pointer.h ;\
+-	else echo "#define LONG64" >pointer.h ; fi
++pointer.h: Makefile
++	touch pointer.h ;
+ 
+ misc.o: misc.h misc.c Makefile
+ 	$(CC) $(MACHINE) $(DEFINES) $(CFLAGS)\
+-- 
+1.7.0.4
+
meta-oe/recipes-benchmark/nbench-byte/nbench-byte_2.2.3.bb new file +26 -0
new file mode 100644
index 0000000..9a002de
@@ -0,0 +1,26 @@
+DESCRIPTION = "BYTE Magazine's native benchmarks (also called BYTEmark) \
+designed to expose the capabilities of a system's CPU, FPU, \
+and memory system."
+HOMEPAGE = "http://www.tux.org/~mayer/linux/"
+LICENSE = "freely distributable"
+LIC_FILES_CHKSUM = "file://README;beginline=57;endline=66;md5=020ef579f8fa5746b7e307a54707834f"
+SECTION = "console/utils"
+
+SRC_URI = "http://www.tux.org/~mayer/linux/${PN}-${PV}.tar.gz \
+           file://nbench_32bits.patch"
+
+PR = "r1"
+
+TARGET_CC_ARCH += "${CFLAGS} ${LDFLAGS}"
+do_compile() {
+	oe_runmake
+}
+
+do_install () {
+	install -d ${D}${bindir}
+	install -m 0644 NNET.DAT ${D}${bindir}/
+	install -m 0755 nbench ${D}${bindir}/
+}
+
+SRC_URI[md5sum] = "285dfab361080759d477ea1fe7d3093a"
+SRC_URI[sha256sum] = "723dd073f80e9969639eb577d2af4b540fc29716b6eafdac488d8f5aed9101ac"
Signature · 1 line
1.7.0.4
#2 lore raw

Re: [meta-oe][PATCH 1/1] nbench-byte: import recipe for oe-classic

Dear Chase,

thank you for your patch.

Am Dienstag, den 28.02.2012, 15:36 -0600 schrieb Chase Maupin:

Please add the version number to the commit summary.

Also s/for/from/.

nbench-byte: Add 2.2.3 (initial version)

Quoted 10 lines

* Import the nbench-byte recipe from the oe-classic git repo at
git://git.openembedded.org/openembedded commit id:
* 6fe7cef27069415f2eba36bc640cf59013d4979b
* Update LICENSE checksums
* Original Author:
* Marcin Juszkiewicz <[email protected]>
* Modifications by:
* Koen Kooi <[email protected]>
* Martin Jansa <[email protected]>
* Chris Larson <[email protected]>

Information on how you tested it would be nice.

Quoted 68 lines
---
 .../nbench-byte/nbench-byte/nbench_32bits.patch    |   46 ++++++++++++++++++++
 .../nbench-byte/nbench-byte_2.2.3.bb               |   26 +++++++++++
 2 files changed, 72 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-benchmark/nbench-byte/nbench-byte/nbench_32bits.patch
 create mode 100644 meta-oe/recipes-benchmark/nbench-byte/nbench-byte_2.2.3.bb
meta-oe/recipes-benchmark/nbench-byte/nbench-byte/nbench_32bits.patch new file +46 -0
new file mode 100644
index 0000000..1b8a4dc
@@ -0,0 +1,46 @@
+From 81f4043a6787060029ef20eed21cdcf3e50337df Mon Sep 17 00:00:00 2001
+From: Chase Maupin <[email protected]>
+Date: Tue, 28 Feb 2012 14:58:35 -0600
+Subject: [PATCH] nbench: modify Makefile for 32bit
+
+* Patch taken from OE classic git repository as of commit id
+  ad42bf9065928b2902d7d9534709d3ccea7ec956 and was added by:
+    * Marcin Juszkiewicz <[email protected]>
+* Notes from original patch were:
+
+BYTE Magazine's native benchmarks (also called BYTEmark) designed to
+expose the capabilities of a system's CPU, FPU and memory system.
+
+http://www.tux.org/~mayer/linux/
+
+Recipe from old Atmel overlay.
+
+Upstream-Status: Inappropriate [no upstream]
+
+Signed-off-by: Chase Maupin <[email protected]>
+---
+ Makefile |    8 ++------
+ 1 files changed, 2 insertions(+), 6 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 5045c77..915866d 100644
+--- a/Makefile
++++ b/Makefile
+@@ -119,12 +119,8 @@ emfloat.o: emfloat.h emfloat.c nmglobal.h pointer.h Makefile
+ 	$(CC) $(MACHINE) $(DEFINES) $(CFLAGS)\
+ 		-c emfloat.c
+ 
+-pointer.h: pointer Makefile
+-	$(CC) $(MACHINE) $(DEFINES) $(CFLAGS)\
+-		-o pointer pointer.c
+-	rm -f pointer.h
+-	if [ "4" = `./pointer` ] ; then touch pointer.h ;\
+-	else echo "#define LONG64" >pointer.h ; fi
++pointer.h: Makefile
++	touch pointer.h ;
+ 
+ misc.o: misc.h misc.c Makefile
+ 	$(CC) $(MACHINE) $(DEFINES) $(CFLAGS)\
+-- 
+1.7.0.4
+
meta-oe/recipes-benchmark/nbench-byte/nbench-byte_2.2.3.bb new file +2 -0
new file mode 100644
index 0000000..9a002de
@@ -0,0 +1,26 @@
+DESCRIPTION = "BYTE Magazine's native benchmarks (also called BYTEmark) \
+designed to expose the capabilities of a system's CPU, FPU, \

meta-oe/recipes-benchmark/nbench-byte/nbench-byte_2.2.3.bb line 12

Quoted 10 lines
meta-oe/recipes-benchmark/nbench-byte/nbench-byte_2.2.3.bb new file +10 -0
+and memory system."
+HOMEPAGE = "http://www.tux.org/~mayer/linux/"
+LICENSE = "freely distributable"
+LIC_FILES_CHKSUM = "file://README;beginline=57;endline=66;md5=020ef579f8fa5746b7e307a54707834f"
+SECTION = "console/utils"
+
+SRC_URI = "http://www.tux.org/~mayer/linux/${PN}-${PV}.tar.gz \
+           file://nbench_32bits.patch"
+
+PR = "r1"

Please start with r0 or to please Koen remove that line entirely.

Quoted 4 lines
meta-oe/recipes-benchmark/nbench-byte/nbench-byte_2.2.3.bb new file +4 -0
+
+TARGET_CC_ARCH += "${CFLAGS} ${LDFLAGS}"
+do_compile() {
+	oe_runmake

meta-oe/recipes-benchmark/nbench-byte/nbench-byte_2.2.3.bb line 26

Quoted 10 lines
meta-oe/recipes-benchmark/nbench-byte/nbench-byte_2.2.3.bb new file +10 -0
+}
+
+do_install () {
+	install -d ${D}${bindir}
+	install -m 0644 NNET.DAT ${D}${bindir}/
+	install -m 0755 nbench ${D}${bindir}/
+}
+
+SRC_URI[md5sum] = "285dfab361080759d477ea1fe7d3093a"
+SRC_URI[sha256sum] = "723dd073f80e9969639eb577d2af4b540fc29716b6eafdac488d8f5aed9101ac"

Thanks,

Paul