summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@ti.com>2015-04-08 21:28:45 -0400
committerMartin Jansa <Martin.Jansa@gmail.com>2015-04-21 13:03:09 +0200
commit324b300bdf6018070bbfa292dc8ccc55cc665f43 (patch)
treece1a5c0139e1726b92866f267a1242b4b8b370d8
parent6d8574da9b40c8860e6b530cc840ba55fa8ed0b1 (diff)
downloadmeta-openembedded-324b300bdf6018070bbfa292dc8ccc55cc665f43.tar.gz
ltp-ddt: bump to version 1.0.0
Signed-off-by: Denys Dmytriyenko <denys@ti.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta-oe/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch34
-rw-r--r--meta-oe/recipes-devtools/ltp-ddt/ltp-ddt/ltp-Do-not-link-against-libfl.patch31
-rw-r--r--meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb (renamed from meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.5.bb)34
3 files changed, 52 insertions, 47 deletions
diff --git a/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch b/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch
deleted file mode 100644
index 56b0333ca..000000000
--- a/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From 4a8f24892514cd5e4d11b9105c843db49eea921b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 19 Feb 2014 19:41:33 -0800
4Subject: [PATCH] wdt_test_suite: Make sure to include generated headers
5
6This makes sure that its using the generated headers
7and not the raw headers from kernel, generated headers
8are built for the given machine already when kernel is
9built and are available in configured/compiled kernel tree
10already
11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 testcases/ddt/wdt_test_suite/Makefile | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/testcases/ddt/wdt_test_suite/Makefile b/testcases/ddt/wdt_test_suite/Makefile
18index 90a6a90..22a1cfd 100644
19--- a/testcases/ddt/wdt_test_suite/Makefile
20+++ b/testcases/ddt/wdt_test_suite/Makefile
21@@ -20,8 +20,8 @@ INCLUDES = -I $(KERNEL_INC) -I src/interface/common -I ../utils/user
22 INCLUDES = -I src/parser \
23 -I src/interface/common \
24 -I ../utils/user \
25- -I $(KERNEL_INC)/include \
26- -I $(KERNEL_INC)/arch/arm/include
27+ -I $(KERNEL_INC)/include/generated \
28+ -I $(KERNEL_INC)/arch/arm/include/generated \
29
30 #List of source files- Update this on adding a new C file
31 SOURCES := \
32--
331.9.0
34
diff --git a/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt/ltp-Do-not-link-against-libfl.patch b/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt/ltp-Do-not-link-against-libfl.patch
new file mode 100644
index 000000000..3e4aa7308
--- /dev/null
+++ b/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt/ltp-Do-not-link-against-libfl.patch
@@ -0,0 +1,31 @@
1From 5bda9c0af56869c6ff2c25d38ea087179c946bc6 Mon Sep 17 00:00:00 2001
2From: Chong Lu <Chong.Lu@windriver.com>
3Date: Tue, 11 Mar 2014 14:47:22 +0800
4Subject: [PATCH] ltp: Don't link against libfl
5
6We have already defined yywrap function in scan.l file. After this, we no longer need to
7link against libfl and so no longer get errors about undefined references to yylex.
8
9Upstream-status: Pending
10
11Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
12---
13 pan/Makefile | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/pan/Makefile b/pan/Makefile
17index 4cc6466..a4b575b 100644
18--- a/pan/Makefile
19+++ b/pan/Makefile
20@@ -31,7 +31,7 @@ CPPFLAGS += -Wno-error
21
22 CPPFLAGS += -I$(abs_srcdir)
23
24-LDLIBS += -lm $(LEXLIB)
25+LDLIBS += -lm
26
27 LFLAGS += -l
28
29--
301.7.9.5
31
diff --git a/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.5.bb b/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb
index db62ac63a..d028e8871 100644
--- a/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.5.bb
+++ b/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_1.0.0.bb
@@ -7,18 +7,18 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
7PROVIDES += "ltp" 7PROVIDES += "ltp"
8DEPENDS += "zip-native virtual/kernel alsa-lib" 8DEPENDS += "zip-native virtual/kernel alsa-lib"
9 9
10RDEPENDS_${PN} += "pm-qa" 10RDEPENDS_${PN} += "pm-qa serialcheck"
11 11
12inherit autotools-brokensep module-base kernel-module-split 12inherit autotools module-base kernel-module-split
13 13
14PACKAGE_ARCH = "${MACHINE_ARCH}" 14PACKAGE_ARCH = "${MACHINE_ARCH}"
15 15
16SRCREV = "903f70a11eb77cbad62d7ecbe7dcbaf61be8ff99" 16SRCREV = "f086bed6cc88bf102eaad0e96cb7ebe79944a8ad"
17BRANCH ?= "master" 17BRANCH ?= "master"
18 18
19SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH} \ 19SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH} \
20 file://0001-wdt_test_suite-Make-sure-to-include-generated-header.patch \ 20 file://ltp-Do-not-link-against-libfl.patch \
21 " 21"
22 22
23S = "${WORKDIR}/git" 23S = "${WORKDIR}/git"
24 24
@@ -58,16 +58,26 @@ FILES_${PN}-dbg += " \
58FILES_${PN}-staticdev += "${LTPROOT}/lib" 58FILES_${PN}-staticdev += "${LTPROOT}/lib"
59FILES_${PN} += "${LTPROOT}/*" 59FILES_${PN} += "${LTPROOT}/*"
60 60
61do_configure() { 61KERNEL_MODULES_META_PACKAGE = "${PN}"
62 cp ${S}/include/config.h.default ${S}/include/config.h
63 cp ${S}/include/mk/config.mk.default ${S}/include/mk/config.mk
64 cp ${S}/include/mk/features.mk.default ${S}/include/mk/features.mk
65 echo "${TAG}" > ${S}/ChangeLog
66}
67 62
68kmoddir = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/ddt" 63kmoddir = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/ddt"
69 64
65# ltp doesn't regenerate ffsb-6.0-rc2 configure and hardcode configure call.
66# we explicitly force regeneration of that directory and pass configure options.
67do_configure_append() {
68 (cd utils/ffsb-6.0-rc2; autoreconf -fvi; ./configure ${CONFIGUREOPTS})
69}
70
71# The makefiles make excessive use of make -C and several include testcases.mk
72# which triggers a build of the syscall header. To reproduce, build ltp,
73# then delete the header, then "make -j XX" and watch regen.sh run multiple
74# times. Its easier to generate this once here instead.
75do_compile_prepend () {
76 ( make -C ${B}/testcases/kernel include/linux_syscall_numbers.h )
77}
78
70do_compile_append () { 79do_compile_append () {
80 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
71 oe_runmake modules 81 oe_runmake modules
72} 82}
73 83
@@ -75,8 +85,6 @@ do_install() {
75 oe_runmake install 85 oe_runmake install
76 install -d ${D}${datadir} 86 install -d ${D}${datadir}
77 install -d ${D}${kmoddir} 87 install -d ${D}${kmoddir}
78 cp -a ${D}${LTPROOT}/share/* ${D}${datadir}
79 rm -rf ${D}${LTPROOT}/share/
80 mv ${D}${LTPROOT}/testcases/bin/ddt/*.ko ${D}${kmoddir} 88 mv ${D}${LTPROOT}/testcases/bin/ddt/*.ko ${D}${kmoddir}
81} 89}
82 90