diff options
| author | Khem Raj <raj.khem@gmail.com> | 2012-01-24 09:42:55 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-25 14:34:09 +0000 |
| commit | d8aada2b9a59f5136af74e7a08202eea767b587b (patch) | |
| tree | 097cba59dbbb1decc8656964462577aa2a51cfcd /meta | |
| parent | 8549ebb873575a1dda2c958b3126d0ff9b81edd6 (diff) | |
| download | poky-d8aada2b9a59f5136af74e7a08202eea767b587b.tar.gz | |
ltp: Update recipe and fix building on uclibc
(From OE-Core rev: 4e8644584aa8826e9cbf9ff0dc23b8c395978013)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-extended/ltp/ltp/uclibc-getcontext.patch | 78 | ||||
| -rw-r--r-- | meta/recipes-extended/ltp/ltp_20120104.bb (renamed from meta/recipes-extended/ltp/ltp_20110915.bb) | 10 |
2 files changed, 83 insertions, 5 deletions
diff --git a/meta/recipes-extended/ltp/ltp/uclibc-getcontext.patch b/meta/recipes-extended/ltp/ltp/uclibc-getcontext.patch new file mode 100644 index 0000000000..310e2d4fa6 --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/uclibc-getcontext.patch | |||
| @@ -0,0 +1,78 @@ | |||
| 1 | Fix building disabled getcontext and profil01 tests for uclibc | ||
| 2 | |||
| 3 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 4 | |||
| 5 | Upstream-Status: Pending | ||
| 6 | |||
| 7 | Index: ltp-20110915/testcases/kernel/syscalls/getcontext/getcontext01.c | ||
| 8 | =================================================================== | ||
| 9 | --- ltp-20110915.orig/testcases/kernel/syscalls/getcontext/getcontext01.c 2012-01-19 16:39:24.391012507 -0800 | ||
| 10 | +++ ltp-20110915/testcases/kernel/syscalls/getcontext/getcontext01.c 2012-01-19 16:39:24.459012510 -0800 | ||
| 11 | @@ -34,6 +34,10 @@ | ||
| 12 | **********************************************************/ | ||
| 13 | |||
| 14 | #include <features.h> | ||
| 15 | +#include "test.h" | ||
| 16 | +#include "usctest.h" | ||
| 17 | +char *TCID = "getcontext01"; /* Test program identifier. */ | ||
| 18 | + | ||
| 19 | #if !defined(__UCLIBC__) | ||
| 20 | |||
| 21 | #include <stdio.h> | ||
| 22 | @@ -41,13 +45,9 @@ | ||
| 23 | #include <errno.h> | ||
| 24 | #include <ucontext.h> | ||
| 25 | |||
| 26 | -#include "test.h" | ||
| 27 | -#include "usctest.h" | ||
| 28 | - | ||
| 29 | void setup(); | ||
| 30 | void cleanup(); | ||
| 31 | |||
| 32 | -char *TCID = "getcontext01"; /* Test program identifier. */ | ||
| 33 | int TST_TOTAL = 1; /* Total number of test cases. */ | ||
| 34 | |||
| 35 | int exp_enos[] = { 0 }; /* must be a 0 terminated list */ | ||
| 36 | @@ -102,4 +102,4 @@ | ||
| 37 | { | ||
| 38 | tst_brkm(TCONF, NULL, "system doesn't have getcontext support"); | ||
| 39 | } | ||
| 40 | -#endif | ||
| 41 | \ No newline at end of file | ||
| 42 | +#endif | ||
| 43 | Index: ltp-20110915/testcases/kernel/syscalls/profil/profil01.c | ||
| 44 | =================================================================== | ||
| 45 | --- ltp-20110915.orig/testcases/kernel/syscalls/profil/profil01.c 2012-01-19 16:39:55.975014036 -0800 | ||
| 46 | +++ ltp-20110915/testcases/kernel/syscalls/profil/profil01.c 2012-01-19 16:40:23.475015322 -0800 | ||
| 47 | @@ -41,6 +41,8 @@ | ||
| 48 | #endif | ||
| 49 | |||
| 50 | #include <features.h> | ||
| 51 | +#include "test.h" | ||
| 52 | +char *TCID = "profil01"; | ||
| 53 | #ifndef __UCLIBC__ | ||
| 54 | |||
| 55 | #ifdef __arm__ | ||
| 56 | @@ -58,7 +60,6 @@ | ||
| 57 | #include <errno.h> | ||
| 58 | #include <sys/types.h> | ||
| 59 | #include <sys/wait.h> | ||
| 60 | -#include "test.h" | ||
| 61 | #include "usctest.h" | ||
| 62 | #define FAILED 0 | ||
| 63 | #define PASSED 1 | ||
| 64 | @@ -73,7 +74,6 @@ | ||
| 65 | //char progname[]= "profil1()"; | ||
| 66 | |||
| 67 | /***** LTP Port *****/ | ||
| 68 | -char *TCID = "profil01"; | ||
| 69 | int local_flag = PASSED; | ||
| 70 | int block_number; | ||
| 71 | FILE *temp; | ||
| 72 | @@ -310,4 +310,4 @@ | ||
| 73 | /* uClibc does not have profiling support */ | ||
| 74 | tst_exit(); | ||
| 75 | } | ||
| 76 | -#endif | ||
| 77 | \ No newline at end of file | ||
| 78 | +#endif | ||
diff --git a/meta/recipes-extended/ltp/ltp_20110915.bb b/meta/recipes-extended/ltp/ltp_20120104.bb index f1e58b2fc3..07e1fcc0ce 100644 --- a/meta/recipes-extended/ltp/ltp_20110915.bb +++ b/meta/recipes-extended/ltp/ltp_20120104.bb | |||
| @@ -3,8 +3,6 @@ DESCRIPTION = "The Linux Test Project is a joint project with SGI, IBM, OSDL, an | |||
| 3 | HOMEPAGE = "http://ltp.sourceforge.net" | 3 | HOMEPAGE = "http://ltp.sourceforge.net" |
| 4 | SECTION = "console/utils" | 4 | SECTION = "console/utils" |
| 5 | 5 | ||
| 6 | PR = "r1" | ||
| 7 | |||
| 8 | LICENSE = "GPLv2 & GPLv2+ & LGPLv2+ & LGPLv2.1+ & BSD-2-Clause" | 6 | LICENSE = "GPLv2 & GPLv2+ & LGPLv2+ & LGPLv2.1+ & BSD-2-Clause" |
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ |
| 10 | file://testcases/kernel/mce-test/COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ | 8 | file://testcases/kernel/mce-test/COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ |
| @@ -21,10 +19,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ | |||
| 21 | file://utils/benchmark/kernbench-0.42/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | 19 | file://utils/benchmark/kernbench-0.42/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ |
| 22 | " | 20 | " |
| 23 | 21 | ||
| 24 | SRC_URI = "${SOURCEFORGE_MIRROR}/ltp/ltp-full-${PV}.bz2" | 22 | SRC_URI = "${SOURCEFORGE_MIRROR}/ltp/ltp-full-${PV}.bz2 \ |
| 23 | file://uclibc-getcontext.patch \ | ||
| 24 | " | ||
| 25 | 25 | ||
| 26 | SRC_URI[md5sum] = "582fb78d7bf78a624a4387f29327d166" | 26 | SRC_URI[md5sum] = "ac183bbdac67139f049b3755fda37179" |
| 27 | SRC_URI[sha256sum] = "013f7f2f6fdf46b7d73216533c3d4c2d91f0a2cec522bf026f7c8920ede83d2c" | 27 | SRC_URI[sha256sum] = "11b149b821d709e3351ac66f028f1b0dd5337ee9073dc20019ccffdac42d5c2e" |
| 28 | 28 | ||
| 29 | export prefix = "/opt/ltp" | 29 | export prefix = "/opt/ltp" |
| 30 | export exec_prefix = "/opt/ltp" | 30 | export exec_prefix = "/opt/ltp" |
