OSDN Git Service

android-x86/external-toybox.git
6 years agoRevert "Fix toybox_vendor dependencies on libselinux_vendor."
Jeff Vander Stoep [Mon, 10 Jul 2017 07:51:14 +0000 (07:51 +0000)]
Revert "Fix toybox_vendor dependencies on libselinux_vendor."
am: 4ab405afe2

Change-Id: I8c945e89a3b56ffe9ce43f76bb294f91a74f9390

6 years agoRevert "Fix toybox_vendor dependencies on libselinux_vendor."
Jeff Vander Stoep [Mon, 10 Jul 2017 07:13:39 +0000 (00:13 -0700)]
Revert "Fix toybox_vendor dependencies on libselinux_vendor."

This reverts commit 9e5e16264cf411f4efbb509e8df4630f4996a21a.
Test: "mma external/toybox" builds successfully

Merged-In: I13b1bf1af3537aff489be0c02572c44fd69414d6
Change-Id: I8782b3718bc62b7787819647a26d7a7e5c29369b

6 years agoFix toybox_vendor dependencies on libselinux_vendor. am: 9e5e16264c am: 537e6e363e
Yifan Hong [Mon, 10 Jul 2017 03:55:00 +0000 (03:55 +0000)]
Fix toybox_vendor dependencies on libselinux_vendor. am: 9e5e16264c am: 537e6e363e
am: 4876bcc290

Change-Id: I7d439ea59d0d0a1a82c350bdf43a84858854706d

6 years agoFix toybox_vendor dependencies on libselinux_vendor. am: 9e5e16264c
Yifan Hong [Mon, 10 Jul 2017 03:50:00 +0000 (03:50 +0000)]
Fix toybox_vendor dependencies on libselinux_vendor. am: 9e5e16264c
am: 537e6e363e

Change-Id: Ie15f7887c803e5597613ab7f43a707fae580a2b5

6 years agoFix toybox_vendor dependencies on libselinux_vendor.
Yifan Hong [Mon, 10 Jul 2017 03:45:32 +0000 (03:45 +0000)]
Fix toybox_vendor dependencies on libselinux_vendor.
am: 9e5e16264c

Change-Id: Iace953ff7dff37810c5889fb8ebefb038ee5578a

6 years agoFix toybox_vendor dependencies on libselinux_vendor.
Yifan Hong [Mon, 26 Jun 2017 23:16:43 +0000 (16:16 -0700)]
Fix toybox_vendor dependencies on libselinux_vendor.

toybox_vendor now links to other libraries as shared libraries.
This allows toybox_vendor to use the "vendor" version of these libraries
(in particular, liblog and libselinx_vendor).

Test: mma -j
Test: m -j, flash, boots
Test: `adb shell /vendor/bin/restorecon /dev/null` shows error message
Test: `adb shell /vendor/bin/getprop -Z' shows error message
Test: mma -j BOARD_VNDK_VERSION=current

Bug: 62886649
Change-Id: If01094b71ef7e99b5756b851132de643660a1e2c

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: a379d5ee15 am: a4f4fa78eb
Elliott Hughes [Wed, 5 Jul 2017 19:51:55 +0000 (19:51 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: a379d5ee15 am: a4f4fa78eb
am: cb13c3da93

Change-Id: I627d5f6fa77e1083ea1167ff8179c94c3046918e

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: a379d5ee15
Elliott Hughes [Wed, 5 Jul 2017 19:47:56 +0000 (19:47 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: a379d5ee15
am: a4f4fa78eb

Change-Id: Icfa74ce051e6151fc206329884311e54adef8021

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Wed, 5 Jul 2017 19:43:55 +0000 (19:43 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am: a379d5ee15

Change-Id: I2120b3a09b81b1aa593b6bf2b8b7a5192d1b5738

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Wed, 5 Jul 2017 17:27:25 +0000 (10:27 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: I81d3056bfb854ba9e312cb6a02b4eb200abd1eb4

6 years agoAdd -t, deviations from posix, redo loop to have fewer duplicate tests.
Rob Landley [Mon, 3 Jul 2017 02:39:32 +0000 (21:39 -0500)]
Add -t, deviations from posix, redo loop to have fewer duplicate tests.

6 years agostrings tests and bugfixes
Ilya Kuzmich [Mon, 29 May 2017 04:05:16 +0000 (07:05 +0300)]
strings tests and bugfixes

Fixes missing newline in output if last byte of the input is string.
Fixes one-off offset bug.
Adds strings tests.

Signed-off-by: Ilya Kuzmich <ilya.kuzmich@gmail.com>
6 years agowhitespace/comment tweaks.
Rob Landley [Tue, 27 Jun 2017 19:57:28 +0000 (14:57 -0500)]
whitespace/comment tweaks.

6 years agoteach head -c
Ilya Kuzmich [Sun, 28 May 2017 15:29:19 +0000 (18:29 +0300)]
teach head -c

Not POSIX, but implemented in coreutils, busybox and freebsd.

6 years agoBuild vendor toybox unconditionally. am: 3829236617 am: cb54b3a2cf
padarshr [Tue, 27 Jun 2017 19:03:28 +0000 (19:03 +0000)]
Build vendor toybox unconditionally. am: 3829236617 am: cb54b3a2cf
am: 4dfba4ea3a

Change-Id: I2790203d483605d8f0ad33f509a233c8780313ba

6 years agoBuild vendor toybox unconditionally. am: 3829236617
padarshr [Tue, 27 Jun 2017 19:00:28 +0000 (19:00 +0000)]
Build vendor toybox unconditionally. am: 3829236617
am: cb54b3a2cf

Change-Id: I76b168233472338a23522467bb3c6137477ff4d5

6 years agoBuild vendor toybox unconditionally.
padarshr [Tue, 27 Jun 2017 18:57:25 +0000 (18:57 +0000)]
Build vendor toybox unconditionally.
am: 3829236617

Change-Id: Icea5df4c2e9e986364efb742e45e5baf77dc0f39

6 years agoMost things seem to want the "b" suffix to mean 512 instead of 1.
Rob Landley [Mon, 26 Jun 2017 20:32:27 +0000 (15:32 -0500)]
Most things seem to want the "b" suffix to mean 512 instead of 1.
(According to the git history I added "b" for "od" but the man page says 512
there too.)

6 years agoBuild vendor toybox unconditionally.
padarshr [Mon, 19 Jun 2017 17:34:15 +0000 (23:04 +0530)]
Build vendor toybox unconditionally.

Always build vendor toybox irrespective of whether
PRODUCT_FULL_TREBLE is enabled or not, as even on Non-Full
treble builds this can be used in vendor scripts.

Change-Id: I91d0fc9be198d95d82530a3b1e21c4463d9398dd

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: f353b240a5 am: 66859184e5
Elliott Hughes [Mon, 19 Jun 2017 22:56:02 +0000 (22:56 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: f353b240a5 am: 66859184e5
am: 86fb74fe51

Change-Id: I915bb8c5ee24107acedc88cca27a5bd7da9dfa86

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: f353b240a5
Elliott Hughes [Mon, 19 Jun 2017 22:49:31 +0000 (22:49 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: f353b240a5
am: 66859184e5

Change-Id: I23b47ac02e42705de3dca793d2125a2c8b86ca22

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Mon, 19 Jun 2017 22:43:33 +0000 (22:43 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am: f353b240a5

Change-Id: I06997a45f022ede7080ab0b163b8b0c018438cb4

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Mon, 19 Jun 2017 19:47:01 +0000 (12:47 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: If21b4f8a327f584912c9021d9792031e6d79c065

6 years agoPast time for 0.7.4.
Rob Landley [Mon, 19 Jun 2017 17:34:50 +0000 (12:34 -0500)]
Past time for 0.7.4.

6 years agoManually inline TOP_COMMON and PGKILL_COMMON help text until I can teach
Rob Landley [Mon, 19 Jun 2017 12:51:58 +0000 (07:51 -0500)]
Manually inline TOP_COMMON and PGKILL_COMMON help text until I can teach
the help infrastructure to handle it.

(The lifetime rules are all wrong for hunks that get reused. Needs a largeish
rewrite.)

6 years agoGrep exits with 2 for errors, which can happen at any time ( > /dev/full).
Rob Landley [Wed, 14 Jun 2017 16:23:01 +0000 (11:23 -0500)]
Grep exits with 2 for errors, which can happen at any time ( > /dev/full).

6 years agoconfig2help.c: Rename trim() to skip_spaces(), fluff out comments a bit.
Rob Landley [Tue, 13 Jun 2017 21:33:13 +0000 (16:33 -0500)]
config2help.c: Rename trim() to skip_spaces(), fluff out comments a bit.

6 years agoAdd grep -M match and -S skip supporting wildcard patterns.
Rob Landley [Mon, 12 Jun 2017 16:26:07 +0000 (11:26 -0500)]
Add grep -M match and -S skip supporting wildcard patterns.

They don't imply -r because you might do find . -type f | xargs -S blah regex

6 years agoTwitter's code of conduct page went down, so mirror the old archive.org version.
Rob Landley [Sun, 11 Jun 2017 20:39:03 +0000 (15:39 -0500)]
Twitter's code of conduct page went down, so mirror the old archive.org version.
Move link from README to header.html menu bar.

6 years agoProvide error messages for files we can open but not read (ala directories).
Rob Landley [Sun, 11 Jun 2017 17:23:00 +0000 (12:23 -0500)]
Provide error messages for files we can open but not read (ala directories).

6 years agoFix bug where grep stopped at first dangling symlink and error_exited().
Rob Landley [Sat, 10 Jun 2017 18:17:31 +0000 (13:17 -0500)]
Fix bug where grep stopped at first dangling symlink and error_exited().

6 years agoPromote dmesg back to lsb.
Rob Landley [Fri, 9 Jun 2017 20:01:07 +0000 (15:01 -0500)]
Promote dmesg back to lsb.

6 years agoCleanup dmesg (as posted to the list).
Rob Landley [Fri, 9 Jun 2017 19:59:51 +0000 (14:59 -0500)]
Cleanup dmesg (as posted to the list).

6 years agoAdd comment explaining strend()
Rob Landley [Tue, 6 Jun 2017 18:21:03 +0000 (13:21 -0500)]
Add comment explaining strend()

6 years agoHave help_exit() give a brief "See %s --help" message instead of the
Rob Landley [Tue, 6 Jun 2017 02:22:02 +0000 (21:22 -0500)]
Have help_exit() give a brief "See %s --help" message instead of the
full help text, and put it back in the args constraint failures.

6 years agoDon't add cpio TRAILER!!! entry by default, add new --trailer option if you
Rob Landley [Sun, 4 Jun 2017 18:15:51 +0000 (13:15 -0500)]
Don't add cpio TRAILER!!! entry by default, add new --trailer option if you
want that. (This lets you concatenate cpio archives with "cat". Kernel's
initramfs extractor doesn't need it.)

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: fe3d63b269 am: 21b59f15b6...
Elliott Hughes [Fri, 2 Jun 2017 21:46:56 +0000 (21:46 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: fe3d63b269 am: 21b59f15b6 am: 3622386f99
am: f9429258b1

Change-Id: I6087ca2bcc333c093c4ea8d99bf95d918d0aeed8

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: fe3d63b269 am: 21b59f15b6
Elliott Hughes [Fri, 2 Jun 2017 21:40:02 +0000 (21:40 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: fe3d63b269 am: 21b59f15b6
am: 3622386f99

Change-Id: Iee1ef5cb9ebea90fde424529700c23fb45651092

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: fe3d63b269
Elliott Hughes [Fri, 2 Jun 2017 21:36:35 +0000 (21:36 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: fe3d63b269
am: 21b59f15b6

Change-Id: I8587fbaf631b789749f9f7d6ec30bbd309f3bad0

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Fri, 2 Jun 2017 21:32:45 +0000 (21:32 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am: fe3d63b269

Change-Id: I80107b04678e61d1fc356dc7e6efe1a875a7f7c9

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Fri, 2 Jun 2017 21:16:31 +0000 (14:16 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: I4e1f8b76f8bd04e64aebf3f2f90afb7d07f9e357

6 years agoAllow ':' in property names.
Elliott Hughes [Wed, 31 May 2017 18:01:11 +0000 (11:01 -0700)]
Allow ':' in property names.

Bug: http://b/62114389
Test: setprop
Change-Id: I165bcc01bb2422d991f746c5e6490cbdfb74472f

6 years agoAllow ':' in property names. am: 35cd738175
Elliott Hughes [Wed, 31 May 2017 22:34:21 +0000 (22:34 +0000)]
Allow ':' in property names. am: 35cd738175
am: 79dfcb8a1f

Change-Id: I19ff24f2a1018f8dae73d12e25229dbab966cf85

6 years agoAllow ':' in property names.
Elliott Hughes [Wed, 31 May 2017 22:32:20 +0000 (22:32 +0000)]
Allow ':' in property names.
am: 35cd738175

Change-Id: I9e0b14908f4d77d2a37535dc2585fe6f0af24e50

6 years agoMerge "Allow ':' in property names." am: 04a2c850db am: 613a9738e3 am: c042a40488
Elliott Hughes [Wed, 31 May 2017 20:46:45 +0000 (20:46 +0000)]
Merge "Allow ':' in property names." am: 04a2c850db am: 613a9738e3 am: c042a40488
am: 2479bd2ef5

Change-Id: I4c337b36f6b5fee25a6bd03d71caac46519c8154

6 years agoMerge "Allow ':' in property names." am: 04a2c850db am: 613a9738e3
Elliott Hughes [Wed, 31 May 2017 20:20:56 +0000 (20:20 +0000)]
Merge "Allow ':' in property names." am: 04a2c850db am: 613a9738e3
am: c042a40488

Change-Id: If71691b4bba1f286819949d615070daa3f7f3c0f

6 years agoMerge "Allow ':' in property names." am: 04a2c850db
Elliott Hughes [Wed, 31 May 2017 20:15:26 +0000 (20:15 +0000)]
Merge "Allow ':' in property names." am: 04a2c850db
am: 613a9738e3

Change-Id: Ie9730fe2834012de7387e9452783fb52a2f7714b

6 years agoMerge "Allow ':' in property names."
Elliott Hughes [Wed, 31 May 2017 20:10:27 +0000 (20:10 +0000)]
Merge "Allow ':' in property names."
am: 04a2c850db

Change-Id: Ia43b65daf50af36326610715f98f58474d1b5944

6 years agoAllow ':' in property names.
Elliott Hughes [Wed, 31 May 2017 18:01:11 +0000 (11:01 -0700)]
Allow ':' in property names.

Bug: http://b/62114389
Test: setprop

(cherry picked from commit c69eba340488113b05c06155ee96df2b7e4989e3)

Change-Id: I44952370bbe31bc07f5bd6100a455a4579b0c48a

6 years agoMerge "Allow ':' in property names."
Treehugger Robot [Wed, 31 May 2017 19:59:16 +0000 (19:59 +0000)]
Merge "Allow ':' in property names."

6 years agoAllow ':' in property names.
Elliott Hughes [Wed, 31 May 2017 18:01:11 +0000 (11:01 -0700)]
Allow ':' in property names.

Bug: http://b/62114389
Test: setprop
Change-Id: I165bcc01bb2422d991f746c5e6490cbdfb74472f

6 years agotoybox: Enable LSPCI functionality am: 1014fe7467 am: 08d5751f0e am: 107f33d5e4
Dmitry Shmidt [Wed, 31 May 2017 00:46:21 +0000 (00:46 +0000)]
toybox: Enable LSPCI functionality am: 1014fe7467 am: 08d5751f0e am: 107f33d5e4
am: 452612c13b

Change-Id: I47a013aba8a0b992ed0276cdc62c95b22158adbb

6 years agotoybox: Enable LSPCI functionality am: 1014fe7467 am: 08d5751f0e
Dmitry Shmidt [Wed, 31 May 2017 00:31:38 +0000 (00:31 +0000)]
toybox: Enable LSPCI functionality am: 1014fe7467 am: 08d5751f0e
am: 107f33d5e4

Change-Id: I829bc3e4116dacb9cab4d2cf4bd2d9edd3179f87

6 years agotoybox: Enable LSPCI functionality am: 1014fe7467
Dmitry Shmidt [Wed, 31 May 2017 00:27:37 +0000 (00:27 +0000)]
toybox: Enable LSPCI functionality am: 1014fe7467
am: 08d5751f0e

Change-Id: Ib5782ab2d9cc4351ff1c241aaa7f83fe816ac02b

6 years agotoybox: Enable LSPCI functionality
Dmitry Shmidt [Wed, 31 May 2017 00:24:08 +0000 (00:24 +0000)]
toybox: Enable LSPCI functionality
am: 1014fe7467

Change-Id: I44fa133b69cef11d2723275d82efa99f2cff3d97

6 years agotoybox: Enable LSPCI functionality
Dmitry Shmidt [Tue, 30 May 2017 22:25:12 +0000 (15:25 -0700)]
toybox: Enable LSPCI functionality

Bug: 37852727
Test: Manual

Change-Id: I6c3767f7d888f07093593f715190f6131949421a
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
6 years agoteach head -v and -q
Ilya Kuzmich [Sun, 28 May 2017 14:03:26 +0000 (17:03 +0300)]
teach head -v and -q

Not POSIX, but implemented in coreutils and busybox.
Tests use sed to compensate for the stdin naming difference.

Signed-off-by: Ilya Kuzmich <ilya.kuzmich@gmail.com>
6 years agoReplace two space indents with tab indents in help text (for consistency).
Rob Landley [Sat, 27 May 2017 20:54:16 +0000 (15:54 -0500)]
Replace two space indents with tab indents in help text (for consistency).

6 years agoAdd separators in help -a with command name.
Rob Landley [Sat, 27 May 2017 19:57:45 +0000 (14:57 -0500)]
Add separators in help -a with command name.

6 years agoBe more consistent about periods in help text.
Elliott Hughes [Fri, 26 May 2017 00:56:11 +0000 (17:56 -0700)]
Be more consistent about periods in help text.

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: 3233e2f9c1 am: 5aa96f14c1...
Elliott Hughes [Fri, 26 May 2017 00:04:34 +0000 (00:04 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: 3233e2f9c1 am: 5aa96f14c1 am: 79cc039a81
am: 802a63d203

Change-Id: I25ee3cd2469640dfe4ecdc7b97636a3aa03fa891

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: 3233e2f9c1 am: 5aa96f14c1
Elliott Hughes [Thu, 25 May 2017 23:49:59 +0000 (23:49 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: 3233e2f9c1 am: 5aa96f14c1
am: 79cc039a81

Change-Id: I9766ab17027afb62730f63119cb9b186ca041008

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: 3233e2f9c1
Elliott Hughes [Thu, 25 May 2017 23:45:29 +0000 (23:45 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: 3233e2f9c1
am: 5aa96f14c1

Change-Id: I3ecf7f93f6eab051b753c65952f801c5645ac8c4

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Thu, 25 May 2017 23:40:31 +0000 (23:40 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am: 3233e2f9c1

Change-Id: Iabb93478d99e3b15b48ceafb0284fc41418bcf59

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Thu, 25 May 2017 21:16:21 +0000 (14:16 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: I509bcbfc1215b09f0b4559397408a8e785395651

6 years agoAdd -0 to env.
Rob Landley [Thu, 25 May 2017 18:27:22 +0000 (13:27 -0500)]
Add -0 to env.

6 years agoTeach env that - as first argument means -i for some reason. (Posix!)
Rob Landley [Thu, 25 May 2017 18:00:00 +0000 (13:00 -0500)]
Teach env that - as first argument means -i for some reason. (Posix!)

6 years agoAdd and use xmmap.
Elliott Hughes [Wed, 24 May 2017 00:35:49 +0000 (17:35 -0700)]
Add and use xmmap.

Everyone forgets that mmap returns MAP_FAILED rather than NULL on failure.
Every use of mmap in toybox was either doing the wrong check, or no check
at all (including the two I personally added).

7 years agoAdd minof/maxof macros that autodetect type. Make xzcat use them.
Rob Landley [Tue, 23 May 2017 20:48:26 +0000 (15:48 -0500)]
Add minof/maxof macros that autodetect type. Make xzcat use them.

7 years agofixup code style
Joyounger [Tue, 23 May 2017 16:36:35 +0000 (00:36 +0800)]
fixup code style

Signed-off-by: Joyounger <aquanox@163.com>
7 years agoPromote chrt
Rob Landley [Sun, 21 May 2017 18:23:34 +0000 (13:23 -0500)]
Promote chrt

7 years agoCleaup chrt
Rob Landley [Sun, 21 May 2017 18:11:42 +0000 (13:11 -0500)]
Cleaup chrt

7 years agoAdd bzip2 support to tar.
Elliott Hughes [Sat, 13 May 2017 01:30:03 +0000 (18:30 -0700)]
Add bzip2 support to tar.

Also trivial cleanup of pipe -> xpipe.

Bug: http://b/38215123

7 years agoImplement date %N, loosely inspired by Elliott Hughes's patch.
Rob Landley [Fri, 19 May 2017 17:35:36 +0000 (12:35 -0500)]
Implement date %N, loosely inspired by Elliott Hughes's patch.

I didn't implement %37N's ability to insert zeroes, so removed those
two tests. If you really need it, I can add the divide loop back.

7 years agofactor shouldn't give incorrect answers for >64-bit integers.
Elliott Hughes [Sat, 13 May 2017 19:48:35 +0000 (12:48 -0700)]
factor shouldn't give incorrect answers for >64-bit integers.

7 years agoMinor tweaks to install.sh.
Rob Landley [Sun, 14 May 2017 20:10:29 +0000 (15:10 -0500)]
Minor tweaks to install.sh.

7 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: d94bd8e917 am: db6c38177a...
Elliott Hughes [Fri, 12 May 2017 07:24:07 +0000 (07:24 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: d94bd8e917 am: db6c38177a am: c8e7472945
am: 9ad4b73c95

Change-Id: Ic382b27a6cdc81157dcc6e0dee7a322b6f035109

7 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: d94bd8e917 am: db6c38177a
Elliott Hughes [Fri, 12 May 2017 03:27:04 +0000 (03:27 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: d94bd8e917 am: db6c38177a
am: c8e7472945

Change-Id: I3d28b09f9df6ee737452fe68ba6d92568e3342e4

7 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: d94bd8e917
Elliott Hughes [Fri, 12 May 2017 02:33:23 +0000 (02:33 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: d94bd8e917
am: db6c38177a

Change-Id: Icec86477f8ea713f6d1044ac3c71081a69c3b42c

7 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Fri, 12 May 2017 02:31:24 +0000 (02:31 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am: d94bd8e917

Change-Id: Ibb56d49b198ca37e38053392f744c9f0128910d8

7 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Fri, 12 May 2017 00:21:45 +0000 (17:21 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: I6f2e84dbc875ca0e85c0a87685fd2bd39d1df617

7 years agoSwitch to testcmd and add "-e all but \c" test.
Rob Landley [Thu, 11 May 2017 17:31:43 +0000 (12:31 -0500)]
Switch to testcmd and add "-e all but \c" test.

7 years agoMake fewer assumptions about the shell in echo.test.
Elliott Hughes [Wed, 10 May 2017 20:51:44 +0000 (13:51 -0700)]
Make fewer assumptions about the shell in echo.test.

This test fails with mksh, but we're not here to test mksh.

7 years agoAdd all the toybox symbolic links to recovery. am: 1ca2399829 am: 26c2d744af am:...
Elliott Hughes [Wed, 10 May 2017 23:31:03 +0000 (23:31 +0000)]
Add all the toybox symbolic links to recovery. am: 1ca2399829 am: 26c2d744af am: cdbdc705c0
am: 9a01506882

Change-Id: I68b38c2839152593b1950f91dde42dade5352250

7 years agoAdd all the toybox symbolic links to recovery. am: 1ca2399829 am: 26c2d744af
Elliott Hughes [Wed, 10 May 2017 20:27:04 +0000 (20:27 +0000)]
Add all the toybox symbolic links to recovery. am: 1ca2399829 am: 26c2d744af
am: cdbdc705c0

Change-Id: I0795eee3b61fb0acf762e49179bcc301e3f7d57d

7 years agoAdd all the toybox symbolic links to recovery. am: 1ca2399829
Elliott Hughes [Wed, 10 May 2017 20:07:39 +0000 (20:07 +0000)]
Add all the toybox symbolic links to recovery. am: 1ca2399829
am: 26c2d744af

Change-Id: Id005f4465c2980feb2e3ff0ca29fcb04c3b60fe6

7 years agoAdd all the toybox symbolic links to recovery.
Elliott Hughes [Wed, 10 May 2017 20:05:09 +0000 (20:05 +0000)]
Add all the toybox symbolic links to recovery.
am: 1ca2399829

Change-Id: I3d74c9de5b0620fc5699f8afbae869531bdf246c

7 years agoMove strend() to lib/lib.c
Rob Landley [Tue, 9 May 2017 04:01:06 +0000 (23:01 -0500)]
Move strend() to lib/lib.c

7 years agoRemove old uClibc compatibility glue. It's been 5 years since the last release.
Rob Landley [Tue, 9 May 2017 03:09:08 +0000 (22:09 -0500)]
Remove old uClibc compatibility glue. It's been 5 years since the last release.
See http://lists.busybox.net/pipermail/buildroot/2016-December/180102.html
for a full post-mortem on the project.

7 years agoNow that xopen() no longer returns stdio, !fd doesn't need strcmp("-") to verify
Rob Landley [Mon, 8 May 2017 23:25:22 +0000 (18:25 -0500)]
Now that xopen() no longer returns stdio, !fd doesn't need strcmp("-") to verify

7 years agoFix error in writing output that was causing zcat to always fail.
Mike Moreton [Fri, 23 Sep 2016 07:46:11 +0000 (08:46 +0100)]
Fix error in writing output that was causing zcat to always fail.

7 years agoError if we can't autodetect filesystem type.
Rob Landley [Mon, 8 May 2017 03:48:44 +0000 (22:48 -0500)]
Error if we can't autodetect filesystem type.

7 years agoAdd all the toybox symbolic links to recovery.
Elliott Hughes [Sat, 6 May 2017 01:02:04 +0000 (18:02 -0700)]
Add all the toybox symbolic links to recovery.

We're currently shipping a full toybox binary in /sbin on the recovery image,
so it seems silly to only have the modprobe symbolic link when you could have
the full set.

Bug: N/A
Test: builds
Change-Id: I307a93dbba79d4f306eb0b20c4190b9571433c37

7 years agoInclude $(BUILD_NUMBER_FROM_FILE) in the toybox --version. am: 77666693a1 am: f95c192...
Elliott Hughes [Fri, 5 May 2017 23:29:51 +0000 (23:29 +0000)]
Include $(BUILD_NUMBER_FROM_FILE) in the toybox --version. am: 77666693a1 am: f95c1921ba am: 0cbc1fc469
am: 1d589555e6

Change-Id: Ic6dab00fd3306a9095dfb529d3e9c883874ce0ce

7 years agoInclude $(BUILD_NUMBER_FROM_FILE) in the toybox --version. am: 77666693a1 am: f95c1921ba
Elliott Hughes [Fri, 5 May 2017 23:23:26 +0000 (23:23 +0000)]
Include $(BUILD_NUMBER_FROM_FILE) in the toybox --version. am: 77666693a1 am: f95c1921ba
am: 0cbc1fc469

Change-Id: Id8adaed50481e2207c464427366d9f63aede4917

7 years agoInclude $(BUILD_NUMBER_FROM_FILE) in the toybox --version. am: 77666693a1
Elliott Hughes [Fri, 5 May 2017 22:54:35 +0000 (22:54 +0000)]
Include $(BUILD_NUMBER_FROM_FILE) in the toybox --version. am: 77666693a1
am: f95c1921ba

Change-Id: I069166499cc43fa00e06b90b7aa70306d8428de3

7 years agoInclude $(BUILD_NUMBER_FROM_FILE) in the toybox --version.
Elliott Hughes [Fri, 5 May 2017 22:47:51 +0000 (22:47 +0000)]
Include $(BUILD_NUMBER_FROM_FILE) in the toybox --version.
am: 77666693a1

Change-Id: I3b68a87b5595096e8ec2aa76916369dafd61c593

7 years agoInclude $(BUILD_NUMBER_FROM_FILE) in the toybox --version.
Elliott Hughes [Fri, 5 May 2017 20:28:50 +0000 (13:28 -0700)]
Include $(BUILD_NUMBER_FROM_FILE) in the toybox --version.

Also remove the SHA, which we haven't needed yet and isn't particularly
easy to turn back into source anyway.

Also switch to sed rather than awk, because macOS awk is lame:

  awk: syntax error at source line 1
   context is
          match($0, >>>  /TOYBOX_VERSION.*"(.*)"/, <<<
  awk: bailing out at source line 1

Bug: http://b/27534935 (for the macOS awk problem)
Test: toybox --version
Change-Id: If2d86b1ef098f1710843e32f7345ae5cf251fabb

7 years agoSwitch to toybox gzip/gunzip/zcat. am: 429b7a378b am: 564d755a1c am: 1d98c5f49f
Elliott Hughes [Fri, 5 May 2017 00:02:17 +0000 (00:02 +0000)]
Switch to toybox gzip/gunzip/zcat. am: 429b7a378b am: 564d755a1c am: 1d98c5f49f
am: c0fe3011a0

Change-Id: Ief8250eabb62324c177c826c0f3acc26f565326f

7 years agoSwitch to toybox gzip/gunzip/zcat. am: 429b7a378b am: 564d755a1c
Elliott Hughes [Thu, 4 May 2017 23:34:17 +0000 (23:34 +0000)]
Switch to toybox gzip/gunzip/zcat. am: 429b7a378b am: 564d755a1c
am: 1d98c5f49f

Change-Id: I0c83d1db9fc4eda98918d6700a887eb39344ff71