| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2014 The Android Open Source Project | ||||
| 3 | # | ||||
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 5 | # you may not use this file except in compliance with the License. | ||||
| 6 | # You may obtain a copy of the License at | ||||
| 7 | # | ||||
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 | ||||
| 9 | # | ||||
| 10 | # Unless required by applicable law or agreed to in writing, software | ||||
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 13 | # See the License for the specific language governing permissions and | ||||
| 14 | # limitations under the License. | ||||
| 15 | # | ||||
| 16 | |||||
| 17 | LOCAL_PATH := $(call my-dir) | ||||
| 18 | |||||
| 19 | # | ||||
| 20 | # To update: | ||||
| 21 | # | ||||
| 22 | |||||
| Elliott Hughes | a67bfec | 2015-04-05 10:14:19 -0700 | [diff] [blame] | 23 | # git remote add toybox https://github.com/landley/toybox.git |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 24 | # git fetch toybox |
| 25 | # git merge toybox/master | ||||
| 26 | # mm -j32 | ||||
| 27 | # # (Make any necessary Android.mk changes and test the new toybox.) | ||||
| 28 | # git push aosp HEAD:master # Push directly, avoiding gerrit. | ||||
| 29 | # git push aosp HEAD:refs/for/master # Push to gerrit. | ||||
| 30 | # | ||||
| 31 | # # Now commit any necessary Android.mk changes like normal: | ||||
| 32 | # repo start post-sync . | ||||
| 33 | # git commit -a | ||||
| 34 | |||||
| 35 | |||||
| Elliott Hughes | 361d6ab | 2015-03-13 14:49:52 -0700 | [diff] [blame] | 36 | # |
| 37 | # To add a toy: | ||||
| 38 | # | ||||
| 39 | |||||
| 40 | # make menuconfig | ||||
| 41 | # # (Select the toy you want to add.) | ||||
| 42 | # make clean && make # Regenerate the generated files. | ||||
| 43 | # # Edit LOCAL_SRC_FILES below to add the toy. | ||||
| 44 | # # If you just want to use it as "toybox x" rather than "x", you can stop now. | ||||
| 45 | # # If you want this toy to have a symbolic link in /system/bin, add the toy to ALL_TOOLS. | ||||
| 46 | |||||
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 47 | include $(CLEAR_VARS) |
| 48 | |||||
| 49 | LOCAL_SRC_FILES := \ | ||||
| 50 | lib/args.c \ | ||||
| 51 | lib/dirtree.c \ | ||||
| 52 | lib/getmountlist.c \ | ||||
| 53 | lib/help.c \ | ||||
| 54 | lib/lib.c \ | ||||
| 55 | lib/llist.c \ | ||||
| 56 | lib/net.c \ | ||||
| 57 | lib/portability.c \ | ||||
| 58 | lib/xwrap.c \ | ||||
| 59 | main.c \ | ||||
| Elliott Hughes | 0e6551a | 2015-03-28 12:49:31 -0700 | [diff] [blame] | 60 | toys/android/getenforce.c \ |
| 61 | toys/android/load_policy.c \ | ||||
| Elliott Hughes | e0953ac | 2015-04-07 14:51:26 -0700 | [diff] [blame] | 62 | toys/android/restorecon.c \ |
| Elliott Hughes | cfbb8c1 | 2015-03-23 17:53:47 -0700 | [diff] [blame] | 63 | toys/android/runcon.c \ |
| Elliott Hughes | 0e6551a | 2015-03-28 12:49:31 -0700 | [diff] [blame] | 64 | toys/android/setenforce.c \ |
| Elliott Hughes | 4b39d13 | 2015-04-07 17:42:12 -0700 | [diff] [blame] | 65 | toys/android/setprop.c \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 66 | toys/lsb/dmesg.c \ |
| 67 | toys/lsb/hostname.c \ | ||||
| 68 | toys/lsb/killall.c \ | ||||
| 69 | toys/lsb/md5sum.c \ | ||||
| 70 | toys/lsb/mknod.c \ | ||||
| 71 | toys/lsb/mktemp.c \ | ||||
| 72 | toys/lsb/mount.c \ | ||||
| 73 | toys/lsb/pidof.c \ | ||||
| 74 | toys/lsb/seq.c \ | ||||
| 75 | toys/lsb/sync.c \ | ||||
| 76 | toys/lsb/umount.c \ | ||||
| 77 | toys/other/acpi.c \ | ||||
| Elliott Hughes | 1486223 | 2014-12-18 17:55:47 -0800 | [diff] [blame] | 78 | toys/other/base64.c \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 79 | toys/other/blkid.c \ |
| 80 | toys/other/blockdev.c \ | ||||
| 81 | toys/other/bzcat.c \ | ||||
| Elliott Hughes | bf65a2e | 2015-02-09 12:14:46 -0800 | [diff] [blame] | 82 | toys/other/chcon.c \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 83 | toys/other/chroot.c \ |
| 84 | toys/other/chvt.c \ | ||||
| 85 | toys/other/clear.c \ | ||||
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 86 | toys/other/dos2unix.c \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 87 | toys/other/fallocate.c \ |
| 88 | toys/other/free.c \ | ||||
| 89 | toys/other/freeramdisk.c \ | ||||
| 90 | toys/other/fsfreeze.c \ | ||||
| 91 | toys/other/help.c \ | ||||
| 92 | toys/other/ifconfig.c \ | ||||
| 93 | toys/other/inotifyd.c \ | ||||
| 94 | toys/other/insmod.c \ | ||||
| 95 | toys/other/losetup.c \ | ||||
| 96 | toys/other/lsattr.c \ | ||||
| 97 | toys/other/lsmod.c \ | ||||
| 98 | toys/other/lspci.c \ | ||||
| 99 | toys/other/lsusb.c \ | ||||
| 100 | toys/other/makedevs.c \ | ||||
| 101 | toys/other/mkswap.c \ | ||||
| 102 | toys/other/modinfo.c \ | ||||
| 103 | toys/other/mountpoint.c \ | ||||
| 104 | toys/other/nbd_client.c \ | ||||
| 105 | toys/other/netcat.c \ | ||||
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 106 | toys/other/partprobe.c \ |
| 107 | toys/other/pivot_root.c \ | ||||
| 108 | toys/other/pmap.c \ | ||||
| 109 | toys/other/printenv.c \ | ||||
| 110 | toys/other/pwdx.c \ | ||||
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 111 | toys/other/readlink.c \ |
| 112 | toys/other/realpath.c \ | ||||
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 113 | toys/other/rev.c \ |
| 114 | toys/other/rfkill.c \ | ||||
| 115 | toys/other/rmmod.c \ | ||||
| 116 | toys/other/setsid.c \ | ||||
| 117 | toys/other/stat.c \ | ||||
| 118 | toys/other/swapoff.c \ | ||||
| 119 | toys/other/swapon.c \ | ||||
| 120 | toys/other/switch_root.c \ | ||||
| 121 | toys/other/sysctl.c \ | ||||
| 122 | toys/other/tac.c \ | ||||
| 123 | toys/other/taskset.c \ | ||||
| 124 | toys/other/timeout.c \ | ||||
| 125 | toys/other/truncate.c \ | ||||
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 126 | toys/other/usleep.c \ |
| 127 | toys/other/vconfig.c \ | ||||
| 128 | toys/other/vmstat.c \ | ||||
| 129 | toys/other/which.c \ | ||||
| 130 | toys/other/yes.c \ | ||||
| Elliott Hughes | 3c3e83a | 2014-12-16 20:18:05 -0800 | [diff] [blame] | 131 | toys/pending/dd.c \ |
| Elliott Hughes | 88db412 | 2015-02-18 17:32:09 -0800 | [diff] [blame] | 132 | toys/pending/expr.c \ |
| Elliott Hughes | 9aaeff3 | 2015-01-14 12:26:10 -0800 | [diff] [blame] | 133 | toys/pending/hwclock.c \ |
| Elliott Hughes | 53a43da | 2014-12-11 17:05:54 -0800 | [diff] [blame] | 134 | toys/pending/more.c \ |
| Elliott Hughes | 5d2ad23 | 2015-03-19 22:52:46 -0700 | [diff] [blame] | 135 | toys/pending/pgrep.c \ |
| Elliott Hughes | 3c3e83a | 2014-12-16 20:18:05 -0800 | [diff] [blame] | 136 | toys/pending/ps.c \ |
| 137 | toys/pending/netstat.c \ | ||||
| 138 | toys/pending/route.c \ | ||||
| Elliott Hughes | 88db412 | 2015-02-18 17:32:09 -0800 | [diff] [blame] | 139 | toys/pending/tar.c \ |
| Elliott Hughes | 3c3e83a | 2014-12-16 20:18:05 -0800 | [diff] [blame] | 140 | toys/pending/top.c \ |
| Elliott Hughes | 347e42b | 2015-01-13 18:45:44 -0800 | [diff] [blame] | 141 | toys/pending/tr.c \ |
| Elliott Hughes | 3c3e83a | 2014-12-16 20:18:05 -0800 | [diff] [blame] | 142 | toys/pending/traceroute.c \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 143 | toys/posix/basename.c \ |
| 144 | toys/posix/cal.c \ | ||||
| 145 | toys/posix/cat.c \ | ||||
| 146 | toys/posix/chgrp.c \ | ||||
| 147 | toys/posix/chmod.c \ | ||||
| 148 | toys/posix/cksum.c \ | ||||
| 149 | toys/posix/cmp.c \ | ||||
| 150 | toys/posix/comm.c \ | ||||
| 151 | toys/posix/cp.c \ | ||||
| Elliott Hughes | bfa8d06 | 2015-02-05 10:02:55 -0800 | [diff] [blame] | 152 | toys/posix/cpio.c \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 153 | toys/posix/cut.c \ |
| 154 | toys/posix/date.c \ | ||||
| 155 | toys/posix/df.c \ | ||||
| 156 | toys/posix/dirname.c \ | ||||
| 157 | toys/posix/du.c \ | ||||
| 158 | toys/posix/echo.c \ | ||||
| 159 | toys/posix/env.c \ | ||||
| 160 | toys/posix/expand.c \ | ||||
| 161 | toys/posix/false.c \ | ||||
| 162 | toys/posix/find.c \ | ||||
| 163 | toys/posix/grep.c \ | ||||
| 164 | toys/posix/head.c \ | ||||
| 165 | toys/posix/id.c \ | ||||
| 166 | toys/posix/kill.c \ | ||||
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 167 | toys/posix/ln.c \ |
| 168 | toys/posix/ls.c \ | ||||
| 169 | toys/posix/mkdir.c \ | ||||
| 170 | toys/posix/mkfifo.c \ | ||||
| 171 | toys/posix/nice.c \ | ||||
| 172 | toys/posix/nl.c \ | ||||
| 173 | toys/posix/nohup.c \ | ||||
| 174 | toys/posix/od.c \ | ||||
| 175 | toys/posix/paste.c \ | ||||
| 176 | toys/posix/patch.c \ | ||||
| Elliott Hughes | 0e6551a | 2015-03-28 12:49:31 -0700 | [diff] [blame] | 177 | toys/posix/printf.c \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 178 | toys/posix/pwd.c \ |
| 179 | toys/posix/renice.c \ | ||||
| 180 | toys/posix/rm.c \ | ||||
| 181 | toys/posix/rmdir.c \ | ||||
| Elliott Hughes | 347e42b | 2015-01-13 18:45:44 -0800 | [diff] [blame] | 182 | toys/posix/sed.c \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 183 | toys/posix/sleep.c \ |
| 184 | toys/posix/sort.c \ | ||||
| 185 | toys/posix/split.c \ | ||||
| 186 | toys/posix/strings.c \ | ||||
| 187 | toys/posix/tail.c \ | ||||
| 188 | toys/posix/tee.c \ | ||||
| 189 | toys/posix/time.c \ | ||||
| 190 | toys/posix/touch.c \ | ||||
| 191 | toys/posix/true.c \ | ||||
| 192 | toys/posix/tty.c \ | ||||
| 193 | toys/posix/uname.c \ | ||||
| 194 | toys/posix/uniq.c \ | ||||
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 195 | toys/posix/wc.c \ |
| 196 | toys/posix/xargs.c \ | ||||
| 197 | |||||
| 198 | LOCAL_CFLAGS += \ | ||||
| Elliott Hughes | 4b39d13 | 2015-04-07 17:42:12 -0700 | [diff] [blame] | 199 | -std=c99 \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 200 | -Os \ |
| 201 | -Wno-char-subscripts \ | ||||
| 202 | -Wno-sign-compare \ | ||||
| Elliott Hughes | 0e6551a | 2015-03-28 12:49:31 -0700 | [diff] [blame] | 203 | -Wno-string-plus-int \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 204 | -Wno-uninitialized \ |
| 205 | -Wno-unused-parameter \ | ||||
| Elliott Hughes | d353398 | 2015-01-15 15:04:19 -0800 | [diff] [blame] | 206 | -funsigned-char \ |
| 207 | -ffunction-sections -fdata-sections \ | ||||
| 208 | -fno-asynchronous-unwind-tables \ | ||||
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 209 | |
| Elliott Hughes | 4b39d13 | 2015-04-07 17:42:12 -0700 | [diff] [blame] | 210 | LOCAL_CLANG := true |
| 211 | |||||
| 212 | LOCAL_SHARED_LIBRARIES := libcutils libselinux | ||||
| Elliott Hughes | 7611563 | 2014-12-16 09:14:47 -0800 | [diff] [blame] | 213 | |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 214 | LOCAL_MODULE := toybox |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 215 | |
| Elliott Hughes | cc6fc17 | 2015-04-02 21:27:05 -0700 | [diff] [blame] | 216 | # dupes: dd df du ls mount renice |
| Elliott Hughes | 79984b4 | 2015-02-09 12:16:39 -0800 | [diff] [blame] | 217 | # useless?: chvt freeramdisk fsfreeze install makedevs mkfifo nbd-client |
| Elliott Hughes | bf65a2e | 2015-02-09 12:14:46 -0800 | [diff] [blame] | 218 | # partprobe pivot_root pwdx rev rfkill switch_root tty vconfig |
| Elliott Hughes | 5eec03a | 2015-02-09 14:09:49 -0800 | [diff] [blame] | 219 | # prefer BSD netcat instead?: nc netcat |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 220 | # prefer efs2progs instead?: blkid chattr lsattr |
| 221 | |||||
| 222 | ALL_TOOLS := \ | ||||
| 223 | acpi \ | ||||
| 224 | basename \ | ||||
| 225 | blockdev \ | ||||
| 226 | bzcat \ | ||||
| 227 | cal \ | ||||
| Elliott Hughes | 1e0e5ea | 2015-01-14 10:40:22 -0800 | [diff] [blame] | 228 | cat \ |
| Elliott Hughes | 7611563 | 2014-12-16 09:14:47 -0800 | [diff] [blame] | 229 | chcon \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 230 | chgrp \ |
| Elliott Hughes | 5c7cca0 | 2014-12-11 12:12:59 -0800 | [diff] [blame] | 231 | chmod \ |
| Elliott Hughes | 6ee70fc | 2015-01-15 13:41:34 -0800 | [diff] [blame] | 232 | chown \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 233 | chroot \ |
| 234 | cksum \ | ||||
| Elliott Hughes | 03275a8 | 2014-11-22 22:56:47 -0800 | [diff] [blame] | 235 | clear \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 236 | comm \ |
| Elliott Hughes | d353398 | 2015-01-15 15:04:19 -0800 | [diff] [blame] | 237 | cmp \ |
| Elliott Hughes | 6b4d05c | 2014-12-16 16:15:47 -0800 | [diff] [blame] | 238 | cp \ |
| Elliott Hughes | bfa8d06 | 2015-02-05 10:02:55 -0800 | [diff] [blame] | 239 | cpio \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 240 | cut \ |
| Elliott Hughes | 9aaeff3 | 2015-01-14 12:26:10 -0800 | [diff] [blame] | 241 | date \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 242 | dirname \ |
| Elliott Hughes | c99e20b | 2014-11-26 11:38:43 -0800 | [diff] [blame] | 243 | dmesg \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 244 | dos2unix \ |
| 245 | echo \ | ||||
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 246 | env \ |
| 247 | expand \ | ||||
| Elliott Hughes | 88db412 | 2015-02-18 17:32:09 -0800 | [diff] [blame] | 248 | expr \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 249 | fallocate \ |
| Elliott Hughes | 03275a8 | 2014-11-22 22:56:47 -0800 | [diff] [blame] | 250 | false \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 251 | find \ |
| 252 | free \ | ||||
| Elliott Hughes | 9250c95 | 2014-12-24 11:29:44 -0800 | [diff] [blame] | 253 | getenforce \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 254 | groups \ |
| 255 | head \ | ||||
| 256 | hostname \ | ||||
| Elliott Hughes | 9aaeff3 | 2015-01-14 12:26:10 -0800 | [diff] [blame] | 257 | hwclock \ |
| Elliott Hughes | c8fa5ee | 2015-01-16 19:27:31 -0800 | [diff] [blame] | 258 | id \ |
| Elliott Hughes | 4f060a3 | 2015-01-14 11:07:28 -0800 | [diff] [blame] | 259 | ifconfig \ |
| Elliott Hughes | 123aecf | 2015-01-14 11:00:47 -0800 | [diff] [blame] | 260 | inotifyd \ |
| Elliott Hughes | 6a646ef | 2014-11-24 11:41:35 -0800 | [diff] [blame] | 261 | insmod \ |
| Elliott Hughes | 95211ea | 2014-12-04 20:09:44 -0800 | [diff] [blame] | 262 | kill \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 263 | killall \ |
| Elliott Hughes | 0e6551a | 2015-03-28 12:49:31 -0700 | [diff] [blame] | 264 | load_policy \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 265 | ln \ |
| 266 | logname \ | ||||
| 267 | losetup \ | ||||
| Elliott Hughes | 6a646ef | 2014-11-24 11:41:35 -0800 | [diff] [blame] | 268 | lsmod \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 269 | lspci \ |
| 270 | lsusb \ | ||||
| 271 | md5sum \ | ||||
| Elliott Hughes | d13bf6a | 2014-12-16 15:17:17 -0800 | [diff] [blame] | 272 | mkdir \ |
| Elliott Hughes | 0a0435c | 2014-12-11 18:34:09 -0800 | [diff] [blame] | 273 | mknod \ |
| Elliott Hughes | 620bc1a | 2014-11-24 16:12:40 -0800 | [diff] [blame] | 274 | mkswap \ |
| Elliott Hughes | 79984b4 | 2015-02-09 12:16:39 -0800 | [diff] [blame] | 275 | mktemp \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 276 | modinfo \ |
| Elliott Hughes | 53a43da | 2014-12-11 17:05:54 -0800 | [diff] [blame] | 277 | more \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 278 | mountpoint \ |
| Elliott Hughes | dbcacc6 | 2014-12-16 19:18:43 -0800 | [diff] [blame] | 279 | mv \ |
| Elliott Hughes | 5f9893b | 2014-12-23 09:12:18 -0800 | [diff] [blame] | 280 | netstat \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 281 | nice \ |
| 282 | nl \ | ||||
| Elliott Hughes | 9f98941 | 2014-11-25 17:00:40 -0800 | [diff] [blame] | 283 | nohup \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 284 | od \ |
| 285 | paste \ | ||||
| 286 | patch \ | ||||
| Elliott Hughes | 5d2ad23 | 2015-03-19 22:52:46 -0700 | [diff] [blame] | 287 | pgrep \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 288 | pidof \ |
| Elliott Hughes | 5d2ad23 | 2015-03-19 22:52:46 -0700 | [diff] [blame] | 289 | pkill \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 290 | pmap \ |
| Elliott Hughes | 68e18cd | 2014-11-24 15:36:51 -0800 | [diff] [blame] | 291 | printenv \ |
| Elliott Hughes | 0e6551a | 2015-03-28 12:49:31 -0700 | [diff] [blame] | 292 | printf \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 293 | pwd \ |
| Elliott Hughes | 8f7bc7a | 2014-11-26 15:21:03 -0800 | [diff] [blame] | 294 | readlink \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 295 | realpath \ |
| Elliott Hughes | e0953ac | 2015-04-07 14:51:26 -0700 | [diff] [blame] | 296 | restorecon \ |
| Elliott Hughes | f5275f9 | 2014-12-16 16:22:32 -0800 | [diff] [blame] | 297 | rm \ |
| Elliott Hughes | d4a6d66 | 2014-12-16 15:26:53 -0800 | [diff] [blame] | 298 | rmdir \ |
| Elliott Hughes | 6a646ef | 2014-11-24 11:41:35 -0800 | [diff] [blame] | 299 | rmmod \ |
| Elliott Hughes | 84974ec | 2015-03-30 11:25:18 -0700 | [diff] [blame] | 300 | route \ |
| Elliott Hughes | cfbb8c1 | 2015-03-23 17:53:47 -0700 | [diff] [blame] | 301 | runcon \ |
| Elliott Hughes | 347e42b | 2015-01-13 18:45:44 -0800 | [diff] [blame] | 302 | sed \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 303 | seq \ |
| Elliott Hughes | 9250c95 | 2014-12-24 11:29:44 -0800 | [diff] [blame] | 304 | setenforce \ |
| Elliott Hughes | 176eae9 | 2015-04-07 20:36:38 -0700 | [diff] [blame] | 305 | setprop \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 306 | setsid \ |
| 307 | sha1sum \ | ||||
| Elliott Hughes | 62cf8d6 | 2014-11-24 15:23:04 -0800 | [diff] [blame] | 308 | sleep \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 309 | sort \ |
| 310 | split \ | ||||
| 311 | stat \ | ||||
| 312 | strings \ | ||||
| Elliott Hughes | 620bc1a | 2014-11-24 16:12:40 -0800 | [diff] [blame] | 313 | swapoff \ |
| 314 | swapon \ | ||||
| Elliott Hughes | 8536828 | 2014-11-24 14:53:36 -0800 | [diff] [blame] | 315 | sync \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 316 | sysctl \ |
| 317 | tac \ | ||||
| 318 | tail \ | ||||
| Elliott Hughes | 88db412 | 2015-02-18 17:32:09 -0800 | [diff] [blame] | 319 | tar \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 320 | taskset \ |
| 321 | tee \ | ||||
| 322 | time \ | ||||
| 323 | timeout \ | ||||
| Elliott Hughes | 5eec03a | 2015-02-09 14:09:49 -0800 | [diff] [blame] | 324 | touch \ |
| Elliott Hughes | 347e42b | 2015-01-13 18:45:44 -0800 | [diff] [blame] | 325 | tr \ |
| Elliott Hughes | 03275a8 | 2014-11-22 22:56:47 -0800 | [diff] [blame] | 326 | true \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 327 | truncate \ |
| Elliott Hughes | cc6fc17 | 2015-04-02 21:27:05 -0700 | [diff] [blame] | 328 | umount \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 329 | uname \ |
| 330 | uniq \ | ||||
| 331 | unix2dos \ | ||||
| Elliott Hughes | 10bd49e | 2014-11-21 14:53:43 -0800 | [diff] [blame] | 332 | usleep \ |
| Elliott Hughes | 2080060 | 2014-11-25 17:25:05 -0800 | [diff] [blame] | 333 | vmstat \ |
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 334 | wc \ |
| 335 | which \ | ||||
| 336 | whoami \ | ||||
| 337 | xargs \ | ||||
| 338 | yes \ | ||||
| 339 | |||||
| Ying Wang | 331b22d | 2014-11-24 12:42:09 -0800 | [diff] [blame] | 340 | # Install the symlinks. |
| 341 | LOCAL_POST_INSTALL_CMD := $(hide) $(foreach t,$(ALL_TOOLS),ln -sf toybox $(TARGET_OUT)/bin/$(t);) | ||||
| Elliott Hughes | d8d2d3c | 2014-11-20 10:39:27 -0800 | [diff] [blame] | 342 | |
| Ying Wang | 331b22d | 2014-11-24 12:42:09 -0800 | [diff] [blame] | 343 | include $(BUILD_EXECUTABLE) |