diff options
-rw-r--r-- | recipes/dt/dt.inc | 16 | ||||
-rw-r--r-- | recipes/dt/dt_15.14.bb | 15 | ||||
-rw-r--r-- | 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 0000000000..7e64bc5c8d --- /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 5185af4f15..346b312c73 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 0000000000..4b65d89696 --- /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= |