diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
commit | 1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch) | |
tree | 0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-oe/recipes-devtools/ltp-ddt | |
download | meta-openembedded-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-oe/recipes-devtools/ltp-ddt')
3 files changed, 151 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt/0001-KERNEL_INC-in-modern-kernel-should-point-at-toplevel.patch b/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt/0001-KERNEL_INC-in-modern-kernel-should-point-at-toplevel.patch new file mode 100644 index 0000000000..0b4ee64551 --- /dev/null +++ b/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt/0001-KERNEL_INC-in-modern-kernel-should-point-at-toplevel.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | From e0fc5bea466c16b9d754a8ac8d0453e396678a2c Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 19 Feb 2014 20:28:07 -0800 | ||
4 | Subject: [PATCH] KERNEL_INC in modern kernel should point at toplevel | ||
5 | kerneldir | ||
6 | |||
7 | Reason is kernel headers are not only in toplevel | ||
8 | include/ but also in toplevel arch/ dir | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | Makefile | 6 +++--- | ||
13 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
14 | |||
15 | diff --git a/Makefile b/Makefile | ||
16 | index 031d8bc..73e9b3c 100644 | ||
17 | --- a/Makefile | ||
18 | +++ b/Makefile | ||
19 | @@ -245,15 +245,15 @@ endif | ||
20 | |||
21 | modules_edma: | ||
22 | @echo "Going to compile edma test kernel modules for $(PLATFORM)" | ||
23 | - cd testcases/ddt/edma_test_suite/src/kernel; make CROSS_COMPILE=$(CROSS_COMPILE) KERNEL_DIR=$(KERNEL_INC)/.. PLATFORM=$(PLATFORM) | ||
24 | + cd testcases/ddt/edma_test_suite/src/kernel; make CROSS_COMPILE=$(CROSS_COMPILE) KERNEL_DIR=$(KERNEL_INC) PLATFORM=$(PLATFORM) | ||
25 | |||
26 | modules_gpio: | ||
27 | @echo "Going to compile gpio test kernel modules for $(PLATFORM)" | ||
28 | - cd testcases/ddt/gpio_test_suite/src/kernel; make CROSS_COMPILE=$(CROSS_COMPILE) KERNEL_DIR=$(KERNEL_INC)/.. PLATFORM=$(PLATFORM) | ||
29 | + cd testcases/ddt/gpio_test_suite/src/kernel; make CROSS_COMPILE=$(CROSS_COMPILE) KERNEL_DIR=$(KERNEL_INC) PLATFORM=$(PLATFORM) | ||
30 | |||
31 | modules_ipc: | ||
32 | @echo "Going to compile IPC test kernel modules for $(PLATFORM)" | ||
33 | - cd testcases/ddt/ipc_test_suite/src/kernel; make CROSS_COMPILE=$(CROSS_COMPILE) KERNEL_DIR=$(KERNEL_INC)/.. PLATFORM=$(PLATFORM) | ||
34 | + cd testcases/ddt/ipc_test_suite/src/kernel; make CROSS_COMPILE=$(CROSS_COMPILE) KERNEL_DIR=$(KERNEL_INC) PLATFORM=$(PLATFORM) | ||
35 | |||
36 | modules: $(MODULES_TO_BUILD) | ||
37 | |||
38 | -- | ||
39 | 1.9.0 | ||
40 | |||
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 new file mode 100644 index 0000000000..56b0333ca4 --- /dev/null +++ b/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt/0001-wdt_test_suite-Make-sure-to-include-generated-header.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From 4a8f24892514cd5e4d11b9105c843db49eea921b Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 19 Feb 2014 19:41:33 -0800 | ||
4 | Subject: [PATCH] wdt_test_suite: Make sure to include generated headers | ||
5 | |||
6 | This makes sure that its using the generated headers | ||
7 | and not the raw headers from kernel, generated headers | ||
8 | are built for the given machine already when kernel is | ||
9 | built and are available in configured/compiled kernel tree | ||
10 | already | ||
11 | |||
12 | Signed-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 | |||
17 | diff --git a/testcases/ddt/wdt_test_suite/Makefile b/testcases/ddt/wdt_test_suite/Makefile | ||
18 | index 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 | -- | ||
33 | 1.9.0 | ||
34 | |||
diff --git a/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.4.bb b/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.4.bb new file mode 100644 index 0000000000..a70d5b9753 --- /dev/null +++ b/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.4.bb | |||
@@ -0,0 +1,77 @@ | |||
1 | SUMMARY = "Embedded Linux Device Driver Tests based on Linux Test Project" | ||
2 | HOMEPAGE = "http://arago-project.org/git/projects/test-automation/ltp-ddt.git" | ||
3 | SECTION = "console/utils" | ||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" | ||
6 | PR = "r1" | ||
7 | |||
8 | PROVIDES += "ltp" | ||
9 | DEPENDS += "zip-native virtual/kernel alsa-lib" | ||
10 | |||
11 | inherit autotools module-base kernel-module-split | ||
12 | |||
13 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
14 | |||
15 | SRCREV = "4f77e2e33357d2b23211ecd22f27f521aa01469a" | ||
16 | BRANCH ?= "master" | ||
17 | |||
18 | SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH} \ | ||
19 | file://0001-wdt_test_suite-Make-sure-to-include-generated-header.patch \ | ||
20 | file://0001-KERNEL_INC-in-modern-kernel-should-point-at-toplevel.patch \ | ||
21 | " | ||
22 | |||
23 | S = "${WORKDIR}/git" | ||
24 | |||
25 | LTPROOT = "/opt/ltp" | ||
26 | |||
27 | EXTRA_OEMAKE_append = " \ | ||
28 | prefix=${LTPROOT} \ | ||
29 | CROSS_COMPILE=${HOST_PREFIX} \ | ||
30 | SKIP_IDCHECK=1 \ | ||
31 | KERNEL_INC=${STAGING_KERNEL_DIR} \ | ||
32 | KERNEL_USR_INC=${STAGING_INCDIR} \ | ||
33 | ALSA_INCPATH=${STAGING_INCDIR} \ | ||
34 | ALSA_LIBPATH=${STAGING_LIBDIR} \ | ||
35 | PLATFORM=${MACHINE} \ | ||
36 | RANLIB=${RANLIB} \ | ||
37 | " | ||
38 | |||
39 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
40 | |||
41 | FILES_${PN}-dbg += " \ | ||
42 | ${LTPROOT}/.debug \ | ||
43 | ${LTPROOT}/bin/.debug \ | ||
44 | ${LTPROOT}/runtest/.debug \ | ||
45 | ${LTPROOT}/testcases/bin/.debug \ | ||
46 | ${LTPROOT}/testcases/bin/*/bin/.debug \ | ||
47 | ${LTPROOT}/testcases/bin/*/test/.debug \ | ||
48 | ${LTPROOT}/testcases/bin/ddt/.debug \ | ||
49 | ${LTPROOT}/testcases/bin/ddt/*/bin/.debug \ | ||
50 | ${LTPROOT}/testcases/bin/ddt/*/test/.debug \ | ||
51 | ${LTPROOT}/testcases/realtime/*/*/.debug \ | ||
52 | " | ||
53 | |||
54 | FILES_${PN}-staticdev += "${LTPROOT}/lib" | ||
55 | FILES_${PN} += "${LTPROOT}/*" | ||
56 | |||
57 | do_configure() { | ||
58 | cp ${S}/include/config.h.default ${S}/include/config.h | ||
59 | cp ${S}/include/mk/config.mk.default ${S}/include/mk/config.mk | ||
60 | cp ${S}/include/mk/features.mk.default ${S}/include/mk/features.mk | ||
61 | echo "${TAG}" > ${S}/ChangeLog | ||
62 | } | ||
63 | |||
64 | kmoddir = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/ddt" | ||
65 | |||
66 | do_compile_append () { | ||
67 | oe_runmake DESTDIR=${D} modules | ||
68 | } | ||
69 | |||
70 | do_install() { | ||
71 | oe_runmake DESTDIR=${D} install | ||
72 | install -d ${D}${datadir} | ||
73 | install -d ${D}${kmoddir} | ||
74 | cp -a ${D}${LTPROOT}/share/* ${D}${datadir} | ||
75 | rm -rf ${D}${LTPROOT}/share/ | ||
76 | mv ${D}${LTPROOT}/testcases/bin/ddt/*.ko ${D}${kmoddir} | ||
77 | } | ||