aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-07-23Don't use wait3()linaro-1.21-master-20140515Bernhard Rosenkraenzer
wait3() is obsolete and has been removed from 64-bit Bionic. Use wait4() instead, that's available anywhere. Change-Id: I5513ae77e8d6033d463cdc3a26e8e7ee2e5bb448 Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> (cherry picked from commit 5e84abef9654e87625b930e760c7f1227806cddf)
2014-05-22busybox: modify to compile with aosp master 20140515 snapshortYongqin Liu
change busybox to compile into PIE format, so that it can be run on the android system. otherwise we will get problem: error: only position independent executables (PIE) are supported. when we run it on device. Change-Id: I6953c0067cd5ceeee26b9d219754c63b6ef45b1d Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2013-01-28busybox: Add less symlinkBernhard Rosenkränzer
Fixes lp bug 1107997 Change-Id: I0f2aed1980b8cc2facb6d979c30c516a5fb752a4 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
2013-01-24busybox udhcp: Fix build on AndroidBernhard Rosenkränzer
Change-Id: I184699234c0da95944bfad8c00a69c6aaa5ab5a0 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
2013-01-24busybox: Add usleep and taskset symlinksBernhard Rosenkränzer
Enable taskset and symlinks for usleep and taskset Change-Id: I0b19482ff7d5a992cbccf27f1ef112b4e4312a7f Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
2013-01-24busybox: Default to BB_ADD_SYMLINKS=trueBernhard Rosenkränzer
Can be overridden by setting BB_ADD_SYMLINKS=false Change-Id: If825c0bc3e5d7ca4e3ca8e5de5769a6b03ed8ee8 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
2013-01-24busybox: Don't copy 4 bytes to an uint16_tBernhard Rosenkränzer
Don't overwrite arbitrary memory by copying 4 bytes into a uint16_t in move_to_unaligned16 Change-Id: I8389fce3e322efc664a47cefc490aa540851075d Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
2013-01-24busybox: Fix build of route on AndroidBernhard Rosenkränzer
<net/route.h> needs <sys/socket.h> included first for some typedefs on Android Change-Id: I9450364b2e280ffe7d85e6175483cacb84803f00 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
2013-01-24Copy zconf.tab.c and friends in placeBernhard Rosenkränzer
Without those files getting their final names, busybox fails to build Change-Id: I64af87a75e6c6f2796a9c717de5edbb27145b738 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
2013-01-24Add -L$(CURDIR)/$(TARGET_OUT_SHARED_LIBRARIES)Bernhard Rosenkränzer
Make sure we find libc.so Change-Id: I5b1582e049d51a9c0ca2e86aca3b668e4023e5ee Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
2013-01-24busybox: Improve build systemBernhard Rosenkraenzer
Avoid creating busybox objects in the source directory and better integrate with the Android build system Based on submission http://review.android.git.linaro.org/#change,2361 by Mike Hommey<mh@glandium.org> Change-Id: I9a31ac635a75faadf2f25505adeeaf69e0c7a29e Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
2013-01-24busybox: Don't use -Tarmelf.x on JellyBeanBernhard Rosenkraenzer
Change-Id: I6c7fdc5f261cd3a44eff3ad7c85235fd6e3170e8 Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
2013-01-24busybox: Allow lines in .config to be > 1024 charactersBernhard Rosenkraenzer
With the new compiler flags added, the CONFIG_EXTRA_CFLAGS parameter in .config can become larger than 1024 characters, resulting in a parse error. This patch allows lines up to 4096 characters, that should be enough even after adding some more flags. Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
2013-01-24busybox: Pull in Linaro changes to android_defconfigBernhard Rosenkraenzer
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> Conflicts: configs/android_defconfig
2013-01-24busybox: Add Android.mkBernhard Rosenkraenzer
Add Android.mk for building inside the Android tree Change-Id: Id103f62dbd68883cbbbcf875a78e089e4f99b169 Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
2013-01-21Bump version to 1.21.0Denys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-21fix testsuite false positiveDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-21mdev: fix mode of dir1 in =dir1/dir2/file ruleDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-20ifconfig: do not accept "ifconfig eth0 up 1.2.3.4/17" (ip with mask). Closes ↵Denys Vlasenko
5786 function old new delta ifconfig_main 1221 1237 +16 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-20grep: fix grep -Fw not respecting the -w option. Closes 5792Denys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-20syslogd: do not segfault on parse error when using default config. Closes 5762Denys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-20sha3: code shrinkDenys Vlasenko
function old new delta sha3_hash 155 101 -54 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-18syslogd: convert dummy functions to statics and get rid of IF_FEATURE_* checksPeter Korsgaard
As suggested by Mike. No bloat-o-meter difference, but a bit nicer to look at. We cannot convert the call to log_to_shmem() as it checks for G.shbuf outside the function, and G.shbuf is only available when IPC support is enabled. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-18dc: code shrinkDenys Vlasenko
function old new delta stack_machine 103 101 -2 operators 176 168 -8 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-17ash: revert wrong "fix" for an apparent memory leak. Closes 5822Denys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-17code shrinkDenys Vlasenko
function old new delta applet_name_compare 36 31 -5 find_applet_by_name 43 25 -18 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-17fix a typo in config help text. Closes 5714Denys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-17mount: fix -o user=foo mishandling, fix unc= generation, add prefixpath=Bernhard Reutner-Fischer
function old new delta singlemount 1019 1049 +30 packed_usage 29252 29257 +5 parse_mount_options 230 232 +2 mount_option_str 337 338 +1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/0 up/down: 38/0) Total: 38 bytes Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-16sha3: s/sha3_process_block76/sha3_process_block72/Denys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-16sha3: rename KeccakF->sha3_process_block76.Denys Vlasenko
This brings the naming more in line with other hashes. Pulled most statics and constants into it. Also noticed that two byte arrays are 1 element too big. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-16mount: add unc option to CIFS mount (needed for Linux 3.4+)Martin Santesson
unc option for CIFS mount is mandatory after CIFS option parsing was rewritten in Linux 3.4 Signed-off-by: Martin Santesson <martinsn@axis.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-15sha3: cache ctx->bytes_queuedDenys Vlasenko
function old new delta sha3_hash 171 155 -16 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-15sha3: remove two "small code" codepaths: I can't reproduce code size win on ↵Denys Vlasenko
them anymore Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-15sha3: tweak choice of a fast code path for 64-bitDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-15sha3: cosmetic tweaks to various names, comments. No logic changes.Denys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-15sha3: code shrinkDenys Vlasenko
function old new delta KeccakF 1053 1078 +25 KeccakF_RoundConstants 192 48 -144 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-15sha3: code shrinkDenys Vlasenko
function old new delta KeccakF 1064 1053 -11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-15sha3: another speedup for SHA3_SMALL=0 caseDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-15whitespace fixes. no code changesDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-15sha3: make size/speed optimization decision configurableDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-14whitespace cleanup. no code changesDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-14sha3sum: new appletLauri Kasanen
function old new delta KeccakF - 496 +496 KeccakF_RoundConstants - 192 +192 sha3_hash - 171 +171 sha3_end - 40 +40 hash_file 274 299 +25 KeccakF_RotationConstants - 25 +25 KeccakF_PiLane - 25 +25 packed_usage 29213 29232 +19 sha3_begin - 18 +18 KeccakF_Mod5 - 10 +10 applet_names 2445 2453 +8 applet_main 1420 1424 +4 applet_nameofs 710 712 +2 ------------------------------------------------------------------------------ (add/remove: 8/0 grow/shrink: 9/7 up/down: 1049/-54) Total: ~995 bytes Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-14ntpd: fix incorrect m_status field in outgoing packets. Closes 5120Paul Marks
When using busybox ntpd with an NTPv3 client and NTPv4 server (or vice versa), the version numbers can be incorrectly ORed together, yielding the bogus value of "NTPv7". This makes ntpd unusable with clients such as Chrony and Windows "Internet Time". This patch avoids the version mangling, by copying only the Leap Indicator bits from the server's status field. Signed-off-by: Paul Marks <paul@pmarks.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-14Remove redundant 'config FEATURE_VOLUMEID_SQUASHFS'Denys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-14volume_id: add squashfs detectionSven-Göran Bergh
function old new delta volume_id_probe_squashfs - 74 +74 fs1 12 16 +4 Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-14whitespace fixes. no code changesDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-14volume_id: uuid_format small code shrinkSven-Göran Bergh
function old new delta volume_id_set_uuid 318 300 -18 Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-14volume_id: display hfs[+] 128-bit UUID properlySven-Göran Bergh
Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-14blkid: add type display for hfsplusSven-Göran Bergh
Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-01-06syslogd: add option to log to Linux kernel printk bufferPeter Korsgaard
Why invent our own shared memory circular buffer when the kernel has a perfectly fine one already? This can be used as a smaller/simpler alternative to the syslogd IPC support (as IPC shmem/klogd/logread aren't needed), while also allowing centralised logging of everything (kernel messages, userspace bootup and syslog) when used together with ttyprintk. Notice that kernel 3.5+ is needed to store syslog facility in printk buffer, otherwise only the priority is stored. bloat-o-meter compared to IPC+klogd+logread: function old new delta get_linux_version_code - 84 +84 lbb_prepare 25 90 +65 applet_nameofs 6 - -6 static.stdout@@GLIBC_2 8 - -8 applet_names 23 9 -14 bb_msg_standard_output 16 - -16 init_sem 18 - -18 xatoull_range 19 - -19 overlapping_strcpy 21 - -21 init_data 56 32 -24 applet_main 24 - -24 main 124 99 -25 full_write2_str 26 - -26 error_exit 26 - -26 bb_basename 30 - -30 sem_up 32 - -32 interrupted 35 - -35 fflush_stdout_and_exit 38 - -38 bb_banner 46 - -46 find_applet_by_name 59 - -59 bb_signals_recursive_norestart 90 - -90 run_applet_no_and_exit 104 - -104 timestamp_and_log 651 523 -128 syslogd_main 798 581 -217 xstrtoull_range_sfx 267 - -267 run_applet_and_exit 432 - -432 klogd_main 490 - -490 logread_main 508 - -508 .rodata 1870 937 -933 bb_common_bufsiz1 8193 - -8193 ------------------------------------------------------------------------------ (add/remove: 2/26 grow/shrink: 1/6 up/down: 149/-11829) Total: -11680 bytes Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Mike Frysinger <vapier@gentoo.org>