diff options
| -rw-r--r-- | meta-oe/recipes-benchmark/memtester/files/0001-Define-mword16-and-mword8-once.patch | 57 | ||||
| -rw-r--r-- | meta-oe/recipes-benchmark/memtester/memtester_4.3.0.bb | 7 |
2 files changed, 61 insertions, 3 deletions
diff --git a/meta-oe/recipes-benchmark/memtester/files/0001-Define-mword16-and-mword8-once.patch b/meta-oe/recipes-benchmark/memtester/files/0001-Define-mword16-and-mword8-once.patch new file mode 100644 index 0000000000..ffd9b9f266 --- /dev/null +++ b/meta-oe/recipes-benchmark/memtester/files/0001-Define-mword16-and-mword8-once.patch | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | From 01f1c05702eb534271777648c976ab6402a5145b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 12 Aug 2020 23:18:30 -0700 | ||
| 4 | Subject: [PATCH] Define mword16 and mword8 once | ||
| 5 | |||
| 6 | Defining them in .h meant they are defined in all .c files including | ||
| 7 | this .h file | ||
| 8 | |||
| 9 | Fixes build with gcc 10+ | ||
| 10 | |||
| 11 | Upstream-Status: Pending | ||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | --- | ||
| 14 | tests.c | 9 +++++++++ | ||
| 15 | types.h | 9 --------- | ||
| 16 | 2 files changed, 9 insertions(+), 9 deletions(-) | ||
| 17 | |||
| 18 | diff --git a/tests.c b/tests.c | ||
| 19 | index be1b350..4305bed 100644 | ||
| 20 | --- a/tests.c | ||
| 21 | +++ b/tests.c | ||
| 22 | @@ -27,6 +27,15 @@ char progress[] = "-\\|/"; | ||
| 23 | #define PROGRESSOFTEN 2500 | ||
| 24 | #define ONE 0x00000001L | ||
| 25 | |||
| 26 | +union { | ||
| 27 | + unsigned char bytes[UL_LEN/8]; | ||
| 28 | + ul val; | ||
| 29 | +} mword8; | ||
| 30 | + | ||
| 31 | +union { | ||
| 32 | + unsigned short u16s[UL_LEN/16]; | ||
| 33 | + ul val; | ||
| 34 | +} mword16; | ||
| 35 | /* Function definitions. */ | ||
| 36 | |||
| 37 | int compare_regions(ulv *bufa, ulv *bufb, size_t count) { | ||
| 38 | diff --git a/types.h b/types.h | ||
| 39 | index ad7ce73..e14ea32 100644 | ||
| 40 | --- a/types.h | ||
| 41 | +++ b/types.h | ||
| 42 | @@ -25,12 +25,3 @@ struct test { | ||
| 43 | int (*fp)(); | ||
| 44 | }; | ||
| 45 | |||
| 46 | -union { | ||
| 47 | - unsigned char bytes[UL_LEN/8]; | ||
| 48 | - ul val; | ||
| 49 | -} mword8; | ||
| 50 | - | ||
| 51 | -union { | ||
| 52 | - unsigned short u16s[UL_LEN/16]; | ||
| 53 | - ul val; | ||
| 54 | -} mword16; | ||
| 55 | -- | ||
| 56 | 2.28.0 | ||
| 57 | |||
diff --git a/meta-oe/recipes-benchmark/memtester/memtester_4.3.0.bb b/meta-oe/recipes-benchmark/memtester/memtester_4.3.0.bb index 0964c04874..3d29055781 100644 --- a/meta-oe/recipes-benchmark/memtester/memtester_4.3.0.bb +++ b/meta-oe/recipes-benchmark/memtester/memtester_4.3.0.bb | |||
| @@ -5,9 +5,10 @@ LICENSE = "GPLv2" | |||
| 5 | 5 | ||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" |
| 7 | 7 | ||
| 8 | SRC_URI = "http://pyropus.ca/software/memtester/old-versions/${BP}.tar.gz" | 8 | SRC_URI = "http://pyropus.ca/software/memtester/old-versions/${BP}.tar.gz \ |
| 9 | SRC_URI += "file://Makefile.patch" | 9 | file://Makefile.patch \ |
| 10 | 10 | file://0001-Define-mword16-and-mword8-once.patch \ | |
| 11 | " | ||
| 11 | SRC_URI[md5sum] = "598f41b7308e1f736164bca3ab84ddbe" | 12 | SRC_URI[md5sum] = "598f41b7308e1f736164bca3ab84ddbe" |
| 12 | SRC_URI[sha256sum] = "f9dfe2fd737c38fad6535bbab327da9a21f7ce4ea6f18c7b3339adef6bf5fd88" | 13 | SRC_URI[sha256sum] = "f9dfe2fd737c38fad6535bbab327da9a21f7ce4ea6f18c7b3339adef6bf5fd88" |
| 13 | 14 | ||
