summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/toolbox/Makefile24
-rw-r--r--package/toolbox/src/Makefile516
-rw-r--r--package/toolbox/src/cat/Makefile5
-rw-r--r--package/toolbox/src/cat/cat.c163
-rw-r--r--package/toolbox/src/chmod/Makefile3
-rw-r--r--package/toolbox/src/chown/Makefile3
-rw-r--r--package/toolbox/src/clear/Makefile3
-rw-r--r--package/toolbox/src/cmp/Makefile3
-rw-r--r--package/toolbox/src/common.mk21
-rw-r--r--package/toolbox/src/cp/Makefile4
-rw-r--r--package/toolbox/src/cp/cp.c549
-rw-r--r--package/toolbox/src/cp/extern.h63
-rw-r--r--package/toolbox/src/cp/utils.c441
-rw-r--r--package/toolbox/src/date/Makefile5
-rw-r--r--package/toolbox/src/date/date.c272
-rw-r--r--package/toolbox/src/dd/Makefile4
-rw-r--r--package/toolbox/src/df/Makefile3
-rw-r--r--package/toolbox/src/dmesg/Makefile3
-rw-r--r--package/toolbox/src/du/Makefile3
-rw-r--r--package/toolbox/src/exists/Makefile3
-rw-r--r--package/toolbox/src/grep/Makefile4
-rw-r--r--package/toolbox/src/grep/fastgrep.c336
-rw-r--r--package/toolbox/src/grep/file.c215
-rw-r--r--package/toolbox/src/grep/grep.c695
-rw-r--r--package/toolbox/src/grep/grep.h149
-rw-r--r--package/toolbox/src/grep/queue.c116
-rw-r--r--package/toolbox/src/grep/util.c499
-rw-r--r--package/toolbox/src/hd/Makefile3
-rw-r--r--package/toolbox/src/id/Makefile3
-rw-r--r--package/toolbox/src/ifconfig/Makefile3
-rw-r--r--package/toolbox/src/iftop/Makefile3
-rw-r--r--package/toolbox/src/insmod/Makefile3
-rw-r--r--package/toolbox/src/ioctl/Makefile3
-rw-r--r--package/toolbox/src/kill/Makefile3
-rw-r--r--package/toolbox/src/lib/Makefile24
-rw-r--r--package/toolbox/src/lib/fgetln.c48
-rw-r--r--package/toolbox/src/lib/md5.c242
-rw-r--r--package/toolbox/src/lib/md5.h48
-rw-r--r--package/toolbox/src/lib/md5hlp.c13
-rw-r--r--package/toolbox/src/lib/string.h9
-rw-r--r--package/toolbox/src/lib/strlfun.c185
-rw-r--r--package/toolbox/src/ln/Makefile3
-rw-r--r--package/toolbox/src/ls/Makefile4
-rw-r--r--package/toolbox/src/lsof/Makefile3
-rw-r--r--package/toolbox/src/md5/Makefile3
-rw-r--r--package/toolbox/src/mkdir/Makefile3
-rw-r--r--package/toolbox/src/mknod/Makefile6
-rw-r--r--package/toolbox/src/mknod/mknod.c190
-rw-r--r--package/toolbox/src/mknod/setmode.c462
-rw-r--r--package/toolbox/src/mount/Makefile3
-rw-r--r--package/toolbox/src/mv/Makefile3
-rw-r--r--package/toolbox/src/netstat/Makefile3
-rw-r--r--package/toolbox/src/notify/Makefile3
-rw-r--r--package/toolbox/src/printenv/Makefile3
-rw-r--r--package/toolbox/src/ps/Makefile3
-rw-r--r--package/toolbox/src/readlink/Makefile3
-rw-r--r--package/toolbox/src/renice/Makefile3
-rw-r--r--package/toolbox/src/rm/Makefile3
-rw-r--r--package/toolbox/src/rmdir/Makefile3
-rw-r--r--package/toolbox/src/rmmod/Makefile3
-rw-r--r--package/toolbox/src/route/Makefile3
-rw-r--r--package/toolbox/src/schedtop/Makefile3
-rw-r--r--package/toolbox/src/sed/Makefile6
-rw-r--r--package/toolbox/src/sed/compile.c870
-rw-r--r--package/toolbox/src/sed/defs.h147
-rw-r--r--package/toolbox/src/sed/extern.h65
-rw-r--r--package/toolbox/src/sed/main.c523
-rw-r--r--package/toolbox/src/sed/misc.c166
-rw-r--r--package/toolbox/src/sed/process.c642
-rw-r--r--package/toolbox/src/setkey/Makefile3
-rw-r--r--package/toolbox/src/sleep/Makefile3
-rw-r--r--package/toolbox/src/src/chmod.c101
-rw-r--r--package/toolbox/src/src/chown.c73
-rw-r--r--package/toolbox/src/src/clear.c41
-rw-r--r--package/toolbox/src/src/cmp.c91
-rw-r--r--package/toolbox/src/src/dd.c1323
-rw-r--r--package/toolbox/src/src/dd.h94
-rw-r--r--package/toolbox/src/src/df.c85
-rw-r--r--package/toolbox/src/src/dmesg.c64
-rw-r--r--package/toolbox/src/src/du.c322
-rw-r--r--package/toolbox/src/src/dynarray.c104
-rw-r--r--package/toolbox/src/src/dynarray.h80
-rw-r--r--package/toolbox/src/src/exists.c16
-rw-r--r--package/toolbox/src/src/hd.c97
-rw-r--r--package/toolbox/src/src/id.c51
-rw-r--r--package/toolbox/src/src/ifconfig.c164
-rw-r--r--package/toolbox/src/src/iftop.c278
-rw-r--r--package/toolbox/src/src/insmod.c97
-rw-r--r--package/toolbox/src/src/ioctl.c124
-rw-r--r--package/toolbox/src/src/kill.c149
-rw-r--r--package/toolbox/src/src/ln.c34
-rw-r--r--package/toolbox/src/src/ls.c424
-rw-r--r--package/toolbox/src/src/lsof.c253
-rw-r--r--package/toolbox/src/src/md5.c75
-rw-r--r--package/toolbox/src/src/mkdir.c77
-rw-r--r--package/toolbox/src/src/mount.c360
-rw-r--r--package/toolbox/src/src/mv.c59
-rw-r--r--package/toolbox/src/src/netstat.c155
-rw-r--r--package/toolbox/src/src/notify.c145
-rw-r--r--package/toolbox/src/src/printenv.c33
-rw-r--r--package/toolbox/src/src/ps.c244
-rw-r--r--package/toolbox/src/src/readlink.c95
-rw-r--r--package/toolbox/src/src/renice.c161
-rw-r--r--package/toolbox/src/src/rm.c126
-rw-r--r--package/toolbox/src/src/rmdir.c28
-rw-r--r--package/toolbox/src/src/rmmod.c53
-rw-r--r--package/toolbox/src/src/route.c113
-rw-r--r--package/toolbox/src/src/schedtop.c332
-rw-r--r--package/toolbox/src/src/setkey.c91
-rw-r--r--package/toolbox/src/src/sleep.c64
-rw-r--r--package/toolbox/src/src/sync.c7
-rw-r--r--package/toolbox/src/src/top.c542
-rw-r--r--package/toolbox/src/src/touch.c115
-rw-r--r--package/toolbox/src/src/umount.c91
-rw-r--r--package/toolbox/src/src/vmstat.c248
-rw-r--r--package/toolbox/src/sync/Makefile3
-rw-r--r--package/toolbox/src/tool.mk22
-rw-r--r--package/toolbox/src/top/Makefile3
-rw-r--r--package/toolbox/src/touch/Makefile3
-rw-r--r--package/toolbox/src/umount/Makefile3
-rw-r--r--package/toolbox/src/vmstat/Makefile3
-rw-r--r--target/config/Config.in.runtime5
122 files changed, 15154 insertions, 0 deletions
diff --git a/package/toolbox/Makefile b/package/toolbox/Makefile
new file mode 100644
index 000000000..af658336a
--- /dev/null
+++ b/package/toolbox/Makefile
@@ -0,0 +1,24 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${ADK_TOPDIR}/rules.mk
+
+PKG_NAME:= toolbox
+PKG_VERSION:= 1.0
+PKG_RELEASE:= 1
+PKG_DESCR:= openadk toolbox for very small systems
+PKG_SECTION:= base/apps
+
+NO_DISTFILES:= 1
+
+include ${ADK_TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,TOOLBOX,toolbox,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIG_STYLE:= manual
+
+toolbox-install:
+ $(INSTALL_DIR) $(IDIR_TOOLBOX)/bin
+ $(CP) $(WRKINST)/bin/* $(IDIR_TOOLBOX)/bin
+
+include ${ADK_TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/toolbox/src/Makefile b/package/toolbox/src/Makefile
new file mode 100644
index 000000000..50afea707
--- /dev/null
+++ b/