[oe-commits] org.oe.dev ltp-20080229: Newly arrived, the leap day surprise.

likewise commit openembedded-commits at lists.openembedded.org
Sat Mar 1 00:49:57 UTC 2008


ltp-20080229: Newly arrived, the leap day surprise.

Author: likewise at openembedded.org
Branch: org.openembedded.dev
Revision: 9d236d0f0128c911003134432d186cef6fb7f26f
ViewMTN: http://monotone.openembedded.org/revision/info/9d236d0f0128c911003134432d186cef6fb7f26f
Files:
1
packages/ltp/ltp-20080229
packages/ltp/ltp-20080229/cross-compile.patch
packages/ltp/ltp-20080229/ltp-run
packages/ltp/ltp-20080229/posix_shell_compat.patch
packages/ltp/ltp-20080229/runltp-path.patch
packages/ltp/ltp_20080229.bb
packages/linux/linux_2.6.24.bb
packages/mtd/mtd-utils-native.inc
Diffs:

#
# mt diff -r541709cbb3711ab39533225ca8717fb5f9bb49c7 -r9d236d0f0128c911003134432d186cef6fb7f26f
#
# 
# 
# add_dir "packages/ltp/ltp-20080229"
# 
# add_file "packages/ltp/ltp-20080229/cross-compile.patch"
#  content [9676303d9142bfbb308d7dd1f5ba8cd414d1de12]
# 
# add_file "packages/ltp/ltp-20080229/ltp-run"
#  content [92ccd86130ecd17d5e4b78cf161ed64069e14639]
# 
# add_file "packages/ltp/ltp-20080229/posix_shell_compat.patch"
#  content [fa9dc1575c08087c69629f00c1c8fe09d3197290]
# 
# add_file "packages/ltp/ltp-20080229/runltp-path.patch"
#  content [60b2f63bed93e45d756fb82a7caa59d7180f79e3]
# 
# add_file "packages/ltp/ltp_20080229.bb"
#  content [dcd98407746285869ed6d16ef588839f8d170337]
# 
# patch "packages/linux/linux_2.6.24.bb"
#  from [90c088b9a606dde51c1eb8148602236bd47b8e9f]
#    to [f74834fe4ee98d2a015c5d0281e8be284eb7ad19]
# 
# patch "packages/mtd/mtd-utils-native.inc"
#  from [6b5294b10251b0556a0fcb2a554c8fe2022b6438]
#    to [66ddbc0bb10e9069eb84c259f7470a92ef5d7205]
# 
============================================================
--- packages/ltp/ltp-20080229/cross-compile.patch	9676303d9142bfbb308d7dd1f5ba8cd414d1de12
+++ packages/ltp/ltp-20080229/cross-compile.patch	9676303d9142bfbb308d7dd1f5ba8cd414d1de12
@@ -0,0 +1,31 @@
+Index: ltp-full-20080229/Makefile
+===================================================================
+--- ltp-full-20080229.orig/Makefile	2008-02-29 08:55:41.000000000 +0100
++++ ltp-full-20080229/Makefile	2008-03-01 00:27:33.000000000 +0100
+@@ -33,11 +33,12 @@
+ endif
+ ifdef CROSS_COMPILER
+ CC=$(CROSS_COMPILER)gcc
++CPP=$(CROSS_COMPILER)g++
+ AR=$(CROSS_COMPILER)ar
+ endif
+ 
+ export CFLAGS += -Wall $(CROSS_CFLAGS)
+-export CC AR LDFLAGS
++export CC AR LDFLAGS CPP
+ 
+ -include config.mk
+ 
+Index: ltp-full-20080229/testcases/ballista/ballista/Makefile
+===================================================================
+--- ltp-full-20080229.orig/testcases/ballista/ballista/Makefile	2008-02-29 08:55:46.000000000 +0100
++++ ltp-full-20080229/testcases/ballista/ballista/Makefile	2008-03-01 00:27:33.000000000 +0100
+@@ -24,7 +24,7 @@
+ ########################
+ 
+ # compiler info for the host
+-CC = g++ -Wno-deprecated
++CC = $(CPP) -Wno-deprecated
+ CFLAGS = -w -O ${TARGET_DEF}
+ CLIBS = -lpthread -ldl -lnsl -rdynamic
+ TEST_MAN_FILE = selfHost
============================================================
--- packages/ltp/ltp-20080229/ltp-run	92ccd86130ecd17d5e4b78cf161ed64069e14639
+++ packages/ltp/ltp-20080229/ltp-run	92ccd86130ecd17d5e4b78cf161ed64069e14639
@@ -0,0 +1,4 @@
+#!/bin/sh
+/usr/libexec/ltp/runltp -t 180s > /home/root/testlog.txt
+echo "Benchmark run finished...."
+touch /home/root/testfinished.flag
============================================================
--- packages/ltp/ltp-20080229/posix_shell_compat.patch	fa9dc1575c08087c69629f00c1c8fe09d3197290
+++ packages/ltp/ltp-20080229/posix_shell_compat.patch	fa9dc1575c08087c69629f00c1c8fe09d3197290
@@ -0,0 +1,33 @@
+Index: ltp-full-20080229/testcases/network/generate.sh
+===================================================================
+--- ltp-full-20080229.orig/testcases/network/generate.sh	2008-03-01 00:34:24.000000000 +0100
++++ ltp-full-20080229/testcases/network/generate.sh	2008-03-01 00:35:13.000000000 +0100
+@@ -53,22 +53,24 @@
+ $makeit $data_dir/$jumbo_file $jumbo_size
+ 
+ if [ ! -e $data_dir/bin.sm ] ; then
+-	cnt=6
+-	while [ $((cnt=cnt-1)) -ge 0 ] ; do
++	cnt=5
++	while [ $cnt -ge 0 ] ; do
+ 		gzip -1 -c datafiles/ascii.sm >> $data_dir/bin.sm
++        cnt=$(($cnt-1))
+ 	done
+ fi
+ 
+ genfile() {
+ 	local input=$data_dir/$1 output=$data_dir/$2
+-	local cnt=20
++	local cnt=19
+ 
+ 	if [ -e $output ] ; then
+ 		return 0
+ 	fi
+ 
+-	while [ $((cnt=cnt-1)) -ge 0 ] ; do
++	while [ $cnt -ge 0 ] ; do
+ 		cat $input >> $output
++        cnt=$(($cnt-1))
+ 	done
+ }
+ 
============================================================
--- packages/ltp/ltp-20080229/runltp-path.patch	60b2f63bed93e45d756fb82a7caa59d7180f79e3
+++ packages/ltp/ltp-20080229/runltp-path.patch	60b2f63bed93e45d756fb82a7caa59d7180f79e3
@@ -0,0 +1,24 @@
+Index: runltp
+===================================================================
+--- ltp-full-20060412.orig/runltp       2005-03-12 03:26:14.000000000 +0800
++++ ltp-full-20060412/runltp    2006-04-26 16:42:13.000000000 +0800
+@@ -43,7 +43,7 @@
+         echo "FATAL: unable to change directory to $(dirname $0)"
+         exit 1
+     }
+-    export LTPROOT=${PWD}
++    export LTPROOT=/usr/libexec/ltp
+     export TMPBASE="/tmp"
+     export TMP="${TMPBASE}/ltp-$$"
+     export PATH="${PATH}:${LTPROOT}/testcases/bin"
+--- ltp-full-20060412.orig/runltp      2007-02-28 20:40:17.000000000 -0800
++++ ltp-full-20060412/runltp   2007-04-01 11:38:38.000000000 -0700
+@@ -285,7 +285,7 @@
+                      ${LTPROOT}/runtest/sched ${LTPROOT}/runtest/math \
+                      ${LTPROOT}/runtest/nptl ${LTPROOT}/runtest/pty
+         do
+-            [ -a "$SCENFILES" ] || \
++            [ -e "$SCENFILES" ] || \
+             {
+                 echo "FATAL: missing scenario file $SCENFILES"
+                 exit 1
============================================================
--- packages/ltp/ltp_20080229.bb	dcd98407746285869ed6d16ef588839f8d170337
+++ packages/ltp/ltp_20080229.bb	dcd98407746285869ed6d16ef588839f8d170337
@@ -0,0 +1,66 @@
+DESCRIPTION = "Linux Test Project"
+HOMEPAGE = "http://ltp.sourceforge.net"
+LICENSE = "GPL"
+SECTION = "console/utils"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/ltp/ltp-full-${PV}.tgz \
+           file://cross-compile.patch;patch=1 \
+           file://runltp-path.patch;patch=1 \
+           file://ltp-run \
+           file://posix_shell_compat.patch;patch=1"
+
+S = "${WORKDIR}/ltp-full-${PV}"
+
+EXTRA_OEMAKE_append = " CROSS_COMPILE=${HOST_PREFIX}"
+
+FILES_${PN}-dbg =  "${libexecdir}/ltp/*/*/*/*/*/.debug"
+FILES_${PN}-dbg += "${libexecdir}/ltp/*/*/*/*/.debug"
+FILES_${PN}-dbg += "${libexecdir}/ltp/*/*/*/.debug"
+FILES_${PN}-dbg += "${libexecdir}/ltp/*/*/.debug"
+FILES_${PN}-dbg += "${libexecdir}/ltp/*/.debug"
+#FILES_${PN}-dbg += "${libexecdir}/ltp/testcases/misc/math/float/trigo/.debug"
+#FILES_${PN}-dbg += "${libexecdir}/ltp/testcases/misc/math/float/iperb/.debug"
+#FILES_${PN}-dbg += "${libexecdir}/ltp/testcases/misc/math/float/exp_log/.debug"
+#FILES_${PN}-dbg += "${libexecdir}/ltp/testcases/misc/math/float/power/.debug"
+#FILES_${PN}-dbg += "${libexecdir}/ltp/testcases/misc/math/float/bessel/.debug"
+#FILES_${PN}-dbg += "${libexecdir}/ltp/testcases/misc/math/abs/.debug"
+#FILES_${PN}-dbg += "${libexecdir}/ltp/testcases/misc/math/atof/.debug"
+#FILES_${PN}-dbg += "${libexecdir}/ltp/testcases/misc/math/nextafter/.debug"
+#FILES_${PN}-dbg += "${libexecdir}/ltp/testcases/misc/math/fptests/.debug"
+#FILES_${PN}-dbg += "${libexecdir}/ltp/testcases/misc/f00f/.debug"
+#FILES_${PN}-dbg += "${libexecdir}/ltp/testcases/misc/crash/.debug"
+#FILES_${PN}-dbg += "${libexecdir}/ltp/pan/.debug"
+#FILES_${PN}-dbg += "${libexecdir}/ltp/testcases/network/ipv6/*/.debug"
+#FILES_${PN}-dbg += "${libexecdir}/ltp/testcases/network/rpc/rpc01/.debug"
+#FILES_${PN}-dbg += "${libexecdir}/ltp/testcases/bin/.debug"
+#FILES_${PN}-dbg += "${libexecdir}/ltp/testcases/kernel/syscalls/*/.debug"
+#FILES_${PN}-dbg += "${libexecdir}/ltp/testcases/kernel/mem/*/.debug"
+
+do_compile(){
+        oe_runmake CROSS_COMPILE=${HOST_PREFIX}
+}
+
+do_install(){
+        export CREATE=0
+        export LTPROOT=${D}/usr/libexec/ltp/testcases
+
+        oe_runmake install
+
+        install -d ${D}/usr/libexec/ltp/testcases
+        install -d ${D}/usr/libexec/ltp/pan
+
+        #install testcases 
+        #install -m 0755 ${WORKDIR}/testcases ${D}/usr/libexec/ltp/testcases
+        #install -m 0755 ${WORKDIR}/testcases ${D}/usr/libexec/ltp/
+        
+        # treecopy testcases pan/pan runtest ver_linux IDcheck.sh \
+        # ${D}/usr/libexec/ltp
+        cp testcases    ${D}/usr/libexec/ltp/ -rfp
+        rm              ${D}/usr/libexec/ltp/ballista -rf
+        cp pan/pan      ${D}/usr/libexec/ltp/pan -p
+        cp runtest      ${D}/usr/libexec/ltp/ -rfp
+        cp ver_linux    ${D}/usr/libexec/ltp/ -p
+        cp runltp       ${D}/usr/libexec/ltp/ -p
+        cp IDcheck.sh   ${D}/usr/libexec/ltp/ -p
+}
+
============================================================
--- packages/linux/linux_2.6.24.bb	90c088b9a606dde51c1eb8148602236bd47b8e9f
+++ packages/linux/linux_2.6.24.bb	f74834fe4ee98d2a015c5d0281e8be284eb7ad19
@@ -12,6 +12,8 @@ SRC_URI = "${KERNELORG_MIRROR}/pub/linux
 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.24.tar.bz2 \
            http://kamikaze.waninkoko.info/patches/2.6.24/kamikaze1/broken-out/squashfs-lzma-2.6.24.patch;patch=1 \
            file://powerpc-clockres.patch;patch=1 \
+           file://leds-cpu-activity.patch;patch=1 \
+           file://leds-cpu-activity-powerpc.patch;patch=1 \
            file://defconfig"
 
 # Real-time preemption. This is experimental and requires a different defconfig.
============================================================
--- packages/mtd/mtd-utils-native.inc	6b5294b10251b0556a0fcb2a554c8fe2022b6438
+++ packages/mtd/mtd-utils-native.inc	66ddbc0bb10e9069eb84c259f7470a92ef5d7205
@@ -11,4 +11,3 @@ do_stage () {
                 install -m 0755 $binary ${STAGING_BINDIR}
         done
 }
-






More information about the Openembedded-commits mailing list