summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-03-11 13:56:39 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-03-11 13:56:39 +0100
commitb782769986db676b49d10b22e20f2b8184448fc0 (patch)
treeefd24832508a9e98d40db89985d8fac6c8409e96 /package
parent2ab43784187e124e517e361e342e3b482e99d6d0 (diff)
add adk-test-tools package
- scripts to shutdown qemu from linux - only start klogd when printk is available
Diffstat (limited to 'package')
-rw-r--r--package/adk-test-tools/Makefile28
-rwxr-xr-xpackage/adk-test-tools/files/test.init11
-rwxr-xr-xpackage/adk-test-tools/src/qmp4
-rwxr-xr-xpackage/adk-test-tools/src/quit2
-rw-r--r--package/base-files/Makefile2
-rw-r--r--package/base-files/src/etc/init.d/boot5
-rwxr-xr-xpackage/base-files/src/etc/init.d/rcS4
-rw-r--r--package/busybox/Makefile2
-rw-r--r--package/busybox/files/syslog.init8
-rw-r--r--package/dropbear/Makefile2
-rw-r--r--package/strace/patches/patch-util_c12
11 files changed, 70 insertions, 10 deletions
diff --git a/package/adk-test-tools/Makefile b/package/adk-test-tools/Makefile
new file mode 100644
index 000000000..bc2624fe9
--- /dev/null
+++ b/package/adk-test-tools/Makefile
@@ -0,0 +1,28 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= adk-test-tools
+PKG_VERSION:= 0.1
+PKG_RELEASE:= 1
+PKG_DESCR:= helper tools and scripts for adk-test-framework
+PKG_SECTION:= misc
+PKG_URL:= http://openadk.org/
+
+NO_DISTFILES:= 1
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,ADK_TEST_TOOLS,adk-test-tools,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIG_STYLE:= manual
+BUILD_STYLE:= manual
+INSTALL_STYLE:= manual
+
+adk-test-tools-install:
+ $(INSTALL_DIR) $(IDIR_ADK_TEST_TOOLS)/usr/bin
+ $(INSTALL_BIN) $(WRKBUILD)/{qmp,quit} \
+ $(IDIR_ADK_TEST_TOOLS)/usr/bin
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/adk-test-tools/files/test.init b/package/adk-test-tools/files/test.init
new file mode 100755
index 000000000..81095fa39
--- /dev/null
+++ b/package/adk-test-tools/files/test.init
@@ -0,0 +1,11 @@
+#!/bin/sh
+#PKG adk-test-tools
+#INIT 90
+[[ $1 = autostart ]] || exit 0
+echo "Starting test script ..."
+if [ -x /run.sh ];then
+ exec /run.sh
+else
+ echo "no run.sh found"
+fi
+quit
diff --git a/package/adk-test-tools/src/qmp b/package/adk-test-tools/src/qmp
new file mode 100755
index 000000000..8f9912222
--- /dev/null
+++ b/package/adk-test-tools/src/qmp
@@ -0,0 +1,4 @@
+#!/bin/sh
+echo '{ "execute": "qmp_capabilities" }'
+sleep 1
+echo '{ "execute": "quit" }'
diff --git a/package/adk-test-tools/src/quit b/package/adk-test-tools/src/quit
new file mode 100755
index 000000000..a625553e2
--- /dev/null
+++ b/package/adk-test-tools/src/quit
@@ -0,0 +1,2 @@
+#!/bin/sh
+socat exec:/usr/bin/qmp tcp:10.0.2.2:4444
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index f320d6b82..f325d2210 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -6,7 +6,7 @@ include $(TOPDIR)/mk/rootfs.mk
PKG_NAME:= base-files
PKG_VERSION:= 1.0
-PKG_RELEASE:= 68
+PKG_RELEASE:= 69
PKG_SECTION:= base
PKG_DESCR:= basic files and scripts
PKG_BUILDDEP:= pkgconf-host file-host
diff --git a/package/base-files/src/etc/init.d/boot b/package/base-files/src/etc/init.d/boot
index 8daf52b89..fc2f79ac2 100644
--- a/package/base-files/src/etc/init.d/boot
+++ b/package/base-files/src/etc/init.d/boot
@@ -4,11 +4,6 @@
. /etc/functions.sh
-# disable kernel messages
-if [ -f /proc/sys/kernel/printk ];then
- echo 0 > /proc/sys/kernel/printk
-fi
-
# remount /dev with smaller size
mount -o remount,nosuid,size=128k,mode=0755 -t tmpfs mdev /dev
diff --git a/package/base-files/src/etc/init.d/rcS b/package/base-files/src/etc/init.d/rcS
index d34cce6e9..9daa8f5cd 100755
--- a/package/base-files/src/etc/init.d/rcS
+++ b/package/base-files/src/etc/init.d/rcS
@@ -1,4 +1,8 @@
#!/bin/sh
+# disable kernel messages
+if [ -f /proc/sys/kernel/printk ];then
+ echo 0 > /proc/sys/kernel/printk
+fi
echo "System initialization ..."
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
ln -s /proc/self/fd/2 /dev/stderr
diff --git a/package/busybox/Makefile b/package/busybox/Makefile
index 1fe63ff0a..c1923708e 100644
--- a/package/busybox/Makefile
+++ b/package/busybox/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= busybox
PKG_VERSION:= 1.21.1
-PKG_RELEASE:= 4
+PKG_RELEASE:= 5
PKG_MD5SUM:= 795394f83903b5eec6567d51eebb417e
PKG_DESCR:= core utilities for embedded systems
PKG_SECTION:= base
diff --git a/package/busybox/files/syslog.init b/package/busybox/files/syslog.init
index 7a84815a6..7a85430ca 100644
--- a/package/busybox/files/syslog.init
+++ b/package/busybox/files/syslog.init
@@ -11,10 +11,14 @@ autostart)
;;
start)
/sbin/syslogd $syslogd_flags
- /sbin/klogd
+ if [ -f /proc/sys/kernel/printk ];then
+ /sbin/klogd
+ fi
;;
stop)
- kill $(pgrep -f /sbin/klogd)
+ if [ -f /proc/sys/kernel/printk ];then
+ kill $(pgrep -f /sbin/klogd)
+ fi
kill $(pgrep -f /sbin/syslogd)
;;
restart)
diff --git a/package/dropbear/Makefile b/package/dropbear/Makefile
index 0e497279f..319c7522f 100644
--- a/package/dropbear/Makefile
+++ b/package/dropbear/Makefile
@@ -14,7 +14,7 @@ PKG_SITES:= http://matt.ucc.asn.au/dropbear/releases/
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
-PKG_DFLT_DROPBEAR:= y if !ADK_TOOLCHAIN_ONLY
+PKG_DFLT_DROPBEAR:= y if !ADK_TOOLCHAIN_ONLY && !ADK_PKG_TEST
PKG_SUBPKGS:= DROPBEAR DBCONVERT
PKGSD_DBCONVERT:= Utility for converting SSH private keys
diff --git a/package/strace/patches/patch-util_c b/package/strace/patches/patch-util_c
new file mode 100644
index 000000000..34181a22f
--- /dev/null
+++ b/package/strace/patches/patch-util_c
@@ -0,0 +1,12 @@
+--- strace-4.8.orig/util.c 2013-05-06 20:23:01.000000000 +0200
++++ strace-4.8/util.c 2014-03-07 15:34:01.074036954 +0100
+@@ -55,7 +55,9 @@
+ # ifdef HAVE_STRUCT_PT_ALL_USER_REGS
+ # define pt_all_user_regs XXX_pt_all_user_regs
+ # endif
++#if !defined(SH)
+ # include <linux/ptrace.h>
++#endif
+ # undef ia64_fpreg
+ # undef pt_all_user_regs
+ #endif