[oe-commits] Tom Rini : dt: convert to .inc, add no_aio patch for uclibc

git version control git at git.openembedded.org
Fri Feb 19 19:11:43 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: ac71f240bf08b559557616f4071e85d55bf9d28c
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=ac71f240bf08b559557616f4071e85d55bf9d28c

Author: Tom Rini <tom_rini at mentor.com>
Date:   Fri Feb 19 12:08:00 2010 -0700

dt: convert to .inc, add no_aio patch for uclibc

Signed-off-by: Tom Rini <tom_rini at mentor.com>
Signed-off-by: Chris Larson <chris_larson at mentor.com>

---

 recipes/dt/dt.inc             |   16 ++++++++++++++++
 recipes/dt/dt_15.14.bb        |   15 ++++-----------
 recipes/dt/files/no_aio.patch |   17 +++++++++++++++++
 3 files changed, 37 insertions(+), 11 deletions(-)

diff --git a/recipes/dt/dt.inc b/recipes/dt/dt.inc
new file mode 100644
index 0000000..7e64bc5
--- /dev/null
+++ b/recipes/dt/dt.inc
@@ -0,0 +1,16 @@
+DESCRIPTION = "The Data Test Program (dt) is a generic data test program used to verify proper \
+operation of peripherals, file systems, device drivers, or any data stream supported by the \
+operating system."
+SECTION = "console/tests"
+HOMEPAGE = "http://home.comcast.net/~SCSIguy/SCSI_FAQ/RMiller_Tools/dt.html"
+LICENSE = "Public domain"
+INC_PR = "r0"
+
+SRC_URI = "http://home.comcast.net/~SCSIguy/SCSI_FAQ/RMiller_Tools/ftp/dt/dt-source.tar.gz"
+S = "${WORKDIR}/dt.d-WIP"
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+do_compile() {
+	${MAKE} -f Makefile.linux
+}
diff --git a/recipes/dt/dt_15.14.bb b/recipes/dt/dt_15.14.bb
index 5185af4..346b312 100644
--- a/recipes/dt/dt_15.14.bb
+++ b/recipes/dt/dt_15.14.bb
@@ -1,16 +1,9 @@
-DESCRIPTION = "The Data Test Program (dt) is a generic data test program used to verify proper \
-operation of peripherals, file systems, device drivers, or any data stream supported by the \
-operating system."
-SECTION = "console/tests"
-HOMEPAGE = "http://home.comcast.net/~SCSIguy/SCSI_FAQ/RMiller_Tools/dt.html"
-LICENSE = "Public domain"
+require dt.inc
 
-SRC_URI = "http://home.comcast.net/~SCSIguy/SCSI_FAQ/RMiller_Tools/ftp/dt/dt-source.tar.gz"
-S = "${WORKDIR}/${PN}.d-WIP"
+PR = "${INC_PR}.1"
 
-do_compile() {
-	${MAKE} -f Makefile.linux
-}
+SRC_URI_append_linux-uclibc = " file://no_aio.patch;patch=1 "
+SRC_URI_append_linux-uclibcgnueabi = " file://no_aio.patch;patch=1 "
 
 do_install() {
 	install -d ${D}${bindir}
diff --git a/recipes/dt/files/no_aio.patch b/recipes/dt/files/no_aio.patch
new file mode 100644
index 0000000..4b65d89
--- /dev/null
+++ b/recipes/dt/files/no_aio.patch
@@ -0,0 +1,17 @@
+---
+ Makefile.linux |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: dt.d-WIP/Makefile.linux
+===================================================================
+--- dt.d-WIP/Makefile.linux
++++ dt.d-WIP/Makefile.linux
+@@ -68,7 +68,7 @@ LINTLIBS=
+ 
+ PORG      = -O3
+ 
+-CFLAGS= $(PORG) -DAIO -DFIFO -DMMAP -DTTY -D__linux__ -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
++CFLAGS= $(PORG) -DFIFO -DMMAP -DTTY -D__linux__ -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
+ CPP=	/lib/cpp
+ CPPOPTS= -D__GNUC__ -DFIFO -DMMAP -D__linux__ -D_GNU_SOURCE
+ LDFLAGS=





More information about the Openembedded-commits mailing list