Skip to contentSkip to conversation

ltp-ddt: import initial version 0.0.4 plus fixes

PATCH In review Denys Dmytriyenko 2 participants 4 messages Oct 13, 2011 – Oct 14, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ltp-ddt: import initial version 0.0.4 plus fixes

From: Denys Dmytriyenko <[email protected]>

Imported from Arago, adapted for meta-openembedded

---
 meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.4.bb |   63 +++++++++++++++++++++
 1 files changed, 63 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.4.bb
meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.4.bb new file +63 -0
new file mode 100644
index 0000000..4b8ff98
@@ -0,0 +1,63 @@
+DESCRIPTION = "Embedded Linux Device Driver Tests based on Linux Test Project"
+HOMEPAGE = "http://arago-project.org/git/projects/test-automation/ltp-ddt.git"
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
+PR = "r1"
+
+PROVIDES += "ltp"
+DEPENDS += "zip-native virtual/kernel alsa-lib"
+
+inherit autotools
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+SRCREV = "5fba3d42f126ce13333fb7d0412d729b753ee5a4"
+BRANCH ?= "master"
+
+SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;protocol=git;branch=${BRANCH}"
+
+S = "${WORKDIR}/git"
+
+LTPROOT = "/opt/ltp"
+
+EXTRA_OEMAKE_append = " \
+	prefix=${LTPROOT} \
+	CROSS_COMPILE=${HOST_PREFIX} \
+	SKIP_IDCHECK=1 \
+	KERNEL_INC=${STAGING_KERNEL_DIR}/include \
+	KERNEL_USR_INC=${STAGING_INCDIR} \
+	ALSA_INCPATH=${STAGING_INCDIR} \
+	ALSA_LIBPATH=${STAGING_LIBDIR} \
+	PLATFORM=${MACHINE} \
+"
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+FILES_${PN}-dbg += " \
+	${LTPROOT}/.debug \
+	${LTPROOT}/bin/.debug \
+	${LTPROOT}/runtest/.debug \
+	${LTPROOT}/testcases/bin/.debug \
+	${LTPROOT}/testcases/bin/*/bin/.debug \
+	${LTPROOT}/testcases/bin/*/test/.debug \
+	${LTPROOT}/testcases/bin/ddt/.debug \
+	${LTPROOT}/testcases/bin/ddt/*/bin/.debug \
+	${LTPROOT}/testcases/bin/ddt/*/test/.debug \
+"
+
+FILES_${PN} += "${LTPROOT}/*"
+
+do_configure() {
+	cp ${S}/include/config.h.default ${S}/include/config.h
+	cp ${S}/include/mk/config.mk.default ${S}/include/mk/config.mk
+	cp ${S}/include/mk/features.mk.default ${S}/include/mk/features.mk
+	echo "${TAG}" > ${S}/ChangeLog
+}
+
+do_install() {
+	oe_runmake DESTDIR=${D} install
+	install -d ${D}${datadir}
+	cp -a ${D}${LTPROOT}/share/* ${D}${datadir}
+	rm -rf ${D}${LTPROOT}/share/
+}
Signature · 1 line
1.7.0.4
#1 lore raw

meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.4.bb line 36

Quoted 3 lines · Denys Dmytriyenko
meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.4.bb new file +3 -0
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+

why is this needed ?

#2 lore raw
Quoted 6 lines · Khem Raj

meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.4.bb line 36

Quoted 3 lines · Denys Dmytriyenko
meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.4.bb new file +3 -0
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+

why is this needed ?

In Classic OE it was used to pass global LDFLAGS with things like GNU_HASH and optimizations down to the app's build command, so all the QA checks are in balance :) Not sure if it's still needed with oe-core/meta-oe...

Signature · 1 line
Denys
#3 lore raw
Quoted 8 lines · Denys Dmytriyenko
Quoted 6 lines · Khem Raj

meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.4.bb line 36

Quoted 3 lines · Denys Dmytriyenko
meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.4.bb new file +3 -0
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+

why is this needed ?

Quoted 4 lines

In Classic OE it was used to pass global LDFLAGS with things like GNU_HASH and optimizations down to the app's build command, so all the QA checks are in balance :) Not sure if it's still needed with oe-core/meta-oe...

It would be nice to test it if it still is needed.

Quoted 8 lines

--
Denys

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel