This commit is contained in:
TriForceX
2019-09-25 20:51:37 -03:00
commit 6203ff3e7c
11215 changed files with 428258 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
Don't force build-dir-in-build-dir logic, symlink the os-specific SCSI
support file in place.
Status: not suitable for upstream.
Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com>
diff -Nura Makefile.linux Makefile.linux
--- a/Makefile.linux 2016-01-26 09:10:03.939963780 -0300
+++ b/Makefile.linux 2016-01-26 09:10:27.140763863 -0300
@@ -129,7 +129,7 @@
echo "Please specify OS={aix,linux,hpux,solaris,windows}"; \
exit 1; \
fi; \
- ln -sf ../scsilib-$(OS).c scsilib.c
+ ln -sf scsilib-$(OS).c scsilib.c
print:;
@$(PRINTER) $(PRINTFLAGS) $(ALL_CFILES)

View File

@@ -0,0 +1,20 @@
Patch taken from Fedora:
http://pkgs.fedoraproject.org/cgit/rpms/dt.git/commit/dt-default-source-define.patch?id=a3107b34a3efc6af66a5f892514f233bb66eb6b5
_BSD_SOURCE was deprecated, hence switch to use _DEFAULT_SOURCE as well
to avoid the build from breaking on newer toolchains.
Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com>
diff -rupN dt.v18.32.old/common.h dt.v18.32/common.h
--- dt.v18.32.old/common.h 2013-03-01 23:52:30.000000000 +0100
+++ dt.v18.32/common.h 2014-09-24 17:41:40.777604710 +0200
@@ -127,7 +127,7 @@ typedef volatile slarge_t v_slarge;
#endif /* defined(_WIN64) */
-#elif defined(__GNUC__) && defined(_BSD_SOURCE) || defined(SCO) || defined(__QNXNTO__) || defined(SOLARIS) || defined(HP_UX) || defined(AIX) || defined(_NT_SOURCE)
+#elif defined(__GNUC__) && defined(_BSD_SOURCE) || defined (_DEFAULT_SOURCE) || defined(SCO) || defined(__QNXNTO__) || defined(SOLARIS) || defined(HP_UX) || defined(AIX) || defined(_NT_SOURCE)
#define QuadIsLongLong
typedef unsigned long long int large_t;

21
package/dt/Config.in Normal file
View File

@@ -0,0 +1,21 @@
comment "dt needs a glibc or uClibc toolchain w/ threads"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_USES_MUSL
config BR2_PACKAGE_DT
bool "dt"
depends on BR2_USE_MMU # fork()
depends on BR2_TOOLCHAIN_HAS_THREADS
# Build fails because of several BSDisms
depends on !BR2_TOOLCHAIN_USES_MUSL
help
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.
In its' simplest mode of operation, dt writes and then
verifys its' default data pattern, then displays
performance statisics and other test parameters
before exiting. Since verification of data is performed,
dt can be thought of as a generic diagnostic tool.
http://www.scsifaq.org/RMiller_Tools/dt.html

5
package/dt/dt.hash Normal file
View File

@@ -0,0 +1,5 @@
# From http://pkgs.fedoraproject.org/repo/pkgs/dt/dt-source-v18.32.tar.gz
# (directory name is md5 hash)
md5 3054aeaaba047a1dbe90c2132a382ee2 dt-source-v18.32.tar.gz
# Calculated based on the hash above
sha256 10d164676e918a4d07f233bcd11e4cb6bfd1052c996182cd1827ccd0c063fcc6 dt-source-v18.32.tar.gz

39
package/dt/dt.mk Normal file
View File

@@ -0,0 +1,39 @@
################################################################################
#
# dt
#
################################################################################
DT_VERSION = v18.32
DT_SITE = http://pkgs.fedoraproject.org/repo/pkgs/dt/$(DT_SOURCE)/3054aeaaba047a1dbe90c2132a382ee2
DT_SOURCE = dt-source-$(DT_VERSION).tar.gz
DT_STRIP_COMPONENTS = 2
DT_LICENSE = ISC-like
DT_LICENSE_FILES = LICENSE
DT_CFLAGS = \
-std=c99 \
-DMMAP \
-D__linux__ \
-D_GNU_SOURCE \
-D_FILE_OFFSET_BITS=64 \
-DTHREADS \
-DSCSI
# uClibc doesn't provide POSIX AIO
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),)
DT_CFLAGS += -DAIO
endif
define DT_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) -f Makefile.linux \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) $(DT_CFLAGS)" \
OS=linux
endef
define DT_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/dt $(TARGET_DIR)/usr/bin/dt
endef
$(eval $(generic-package))