summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2018-04-17Revert "Add -Wprint-abs-path to generate absolute path for buildwarnings"submit/tizen_5.0/20181101.000008submit/tizen/20180417.090848accepted/tizen/unified/20180417.173239accepted/tizen/5.0/unified/20181102.025606tizen_5.0accepted/tizen_5.0_unifiedJaehun Jeong1-1/+1
This reverts commit 06c4c30907004afb917eb3c00856adadbffebfda. Change-Id: I8bf28b2a5e5426b8f002ce2cbdfcfa4b2a0be28b
2018-03-15Add -Wprint-abs-path to generate absolute path for buildwarningssubmit/tizen/20180320.043504submit/tizen/20180318.232021submit/tizen/20180318.231541accepted/tizen/unified/20180320.141338Jaehun Jeong1-1/+1
Change-Id: Ife735f35dacad281c5d291eaad32fd867aa796dd Signed-off-by: Jaehun Jeong <jh4u.jeong@samsung.com>
2016-03-17Revert back to upstream 0.6.0 and remove all except for dhcp relatedsubmit/tizen/20160323.053424Yu Jiung2-3/+0
Change-Id: Ide839cfefc7c4049715f86a2bf769c333175b2bf
2015-08-08scripts/mkflags.c: add missing unistd.h, ctype.hIsaac Dunham1-0/+2
2015-08-05Cosmetic tweak: newline at the end of "make change".Rob Landley1-0/+1
2015-07-06Save failure reason for each make change .bad file.Rob Landley1-2/+3
2015-07-03Probe for fork() instead of relying on a distro-specific #define.Rob Landley1-0/+6
2015-06-25Suggestion from Elliott Hughes: tweak test infrastructure to notice ifRob Landley1-0/+4
command exits with high errno and assume it segfaulted.
2015-05-31Redo mkstatus.py to grep pending for pending data and trust toyboxRob Landley1-27/+46
defconfig output for ready command list, to reduce manual updating.
2015-05-09Probe for -Wno-string-plus-int.Rob Landley2-2/+14
LLVM has its own nuts warnings about things that aren't wrong, but disabling them with the relevant -Wno-* warning disabling command line option drives gcc nuts because it's a command line option it doesn't recognize. (gcc 4.2.1 dies with an error. gcc 4.6 warns about it _only_ if it's warning about something else. (PICK ONE, either you warn about this or you don't, distract people from actual problems with noise about something clearly unrelated to what just changed is extra-stupid.) So just probe for it, and add the flag only if it doesn't complain about it while we're producing an unrelated warning.
2015-05-03Yank smack from singleconfig.Rob Landley1-1/+1
Need to come up with a better solution to this, but the problem is that single.sh's symbol enabling isn't dependency aware, and "silentoldconfig" prompts. I suspect the better solution is "write a kconfig replacement".
2015-05-03If a shortopt is configured out right before a bare longopt, the option ↵Rob Landley1-3/+6
parsing infrastructure segfaults because there's no next shortopt but the list isn't empty. (There was a test for this, but we're simultaneously traversing two lists and it was testing the wrong one.)
2015-04-19Cleanup getprop, add qstrcmp() to lib for qsort (because posix-2008 brokeRob Landley1-0/+7
alphasort), add compile-time probe for config symbol TOYBOX_ON_ANDROID.
2015-04-17Link against libattr and libsmack.Xavier Roche1-1/+1
2015-04-17Make toybox --version use the "git describe" info if it's available.Rob Landley1-1/+3
2015-03-06Yank $STRIP from config (and STRIP=no weirdness) and just allow strip to fail.Rob Landley1-4/+3
2015-03-04scripts/mkflags.c : main function need return 0 if normal exitHyejin Kim1-0/+2
2015-02-28Add LDFLAGS and STRIP=no support.Rob Landley1-2/+7
2015-02-14Fix --help for single.sh builds.Rob Landley1-1/+1
2015-02-14Move guts of "make change" to scripts/change.sh, don't try to build sh or ↵Rob Landley1-0/+19
help standalone. sh builtin commands need multiplexer, help describes other enabled commands.
2015-02-07Build standalone commands where "depends on" config entries need to be ↵Rob Landley2-9/+18
switched on.
2015-01-16AOSP master has <pty.h> and builds netcat/nc.Elliott Hughes1-8/+1
2015-01-02Need to update install.c for the changed OLDTOY() argument list.Rob Landley1-2/+2
2015-01-01Tweak status.htmlRob Landley1-2/+5
2014-12-31Redo option parsing infrastructure so #define FORCE_FLAGS can unzero flag ↵Rob Landley2-12/+58
macros for a disabled command (needed when multiple commands share infrastructure with a common set of flags). This means the flag space is no longer packed, but leaves gaps where the zeroes go. (Actual flag bit positions are the same for all configs.) Since the option parsing needs to know where the holes are, the OPTSTR values are now generated as part of flags.h with ascii 1 values for the disabled values. (So generated/oldflags.h went away.) This also means that the option string argument for OLDTOY() went away, it now uses the same arguments as the NEWTOY() it references.
2014-12-23those of us who need to check in generated files find that 'tr' andElliott Hughes1-2/+2
'traceroute' keep swapping places. self-inflicted, yes, but not much i can do about it :-(
2014-12-13Oops. xfork() moved to portability.c and the config2help.c build wasn't ↵Rob Landley1-1/+1
including that. (Worked until I did a "make clean".)
2014-12-11here's a patch that should let us replace toolbox's chcon.Elliott Hughes1-1/+1
(it also adds a feature, -R, because toybox makes that so easy.) you'll probably want fancier configuration here because although the --as-needed works okay, a typical Ubuntu box will have the .so but not the .h files. i did consider adding a toys/selinux/ directory, but given that existing tools like ls and id will want -Z SELinux options, i wasn't sure whether you'd think it was worth segregating the SELinux-only toys. note that this won't help the tizen smack users (and patch for smack won't help SELinux users). so you might want to think about where you'd like us to be aiming: #if USE_SELINUX/USE_SMACK in all the relevant places, or a toys/selinux and a toys/smack (though we'd still need #if in at least ls and id), or a lib/security.c that concentrates all the differences into one file?
2014-11-28Improve error reporting in parallel build. (On error, wait for all children ↵Rob Landley1-2/+8
to finish before exiting.)
2014-11-28When running a test, the diff is always an ascii diff, not binary.Rob Landley1-1/+1
2014-11-28Add "make change" target to build the big toybox binary as a bunch of little ↵Rob Landley1-80/+120
ones (in the "change" subdirectory), and tweak scripts/make.sh to avoid redundant work when rebuilding.
2014-11-19Fixups for the android/bionic build probes patch.Rob Landley1-1/+1
The CFG_* symbols are always defined so if() can use them as compile-time constants, so don't if defined() them. Doing USE_BLAH() around variable definitions opens up the same potential for config-dependent build breaks as #ifdefs do, just make the whole command depend on the symbol for now, factor out the utmpx infrastructure later. The PTY probe was always failing because it used NULL without #including the header that defines it. Substitute 0 instead.
2014-11-19probe for getspnam(), forkpty(), utmpx, replace sethostname()Isaac Dunham1-0/+28
Android is missing all of these; we need to probe for some so we have a config symbol to depend on. sethostname() is easily replaced. We got termios.h via pty.h; now it's not included in configure-step tools, so we need termios.h to generate globals.
2014-11-14Add color support for scripts/test.sh and new SKIP_HOST for tests expected ↵Rob Landley1-5/+17
to fail on non-toybox implementations.
2014-09-27Multi-build single.sh should exit with an error when build breaks.Rob Landley1-1/+1
2014-09-27Allow single.sh to build more than one command per invocation.Rob Landley1-14/+17
2014-09-20Delete generated/README.txt (the contents are in code.html now) so clean can ↵Rob Landley1-0/+1
just remove the "generated" directory entirely.
2014-09-20Remove debug echo checked in by mistake.Rob Landley1-2/+0
2014-09-20Move testsuite out of scripts/test into its own top level tests directory, ↵Rob Landley74-3184/+13
and make ctrl-c kill "make test" more reliably.
2014-09-20Give library probe a progress indicator, and use 150% of detected CPUs to ↵Rob Landley1-2/+9
try to keep large SMP machines busy (each compiler invocation is short so they exit almost as fast as we launch them).
2014-09-11Create a generated/build.sh with a single compiler command line to rebuild ↵Rob Landley1-3/+16
the toybox_unstripped binary using the existing generated/*.h files. This way we can snapshot the generated/*.{h,sh} from a defconfig build into a "shipped" directory or something, and then people can maybe build on crazy crippled environments like pcbsd that haven't got gmake and put bash under /usr/local so none of the #!/scripts can find it. This solves at least part of the "toybox can build with itself but you need to build toybox first to have the tools to run the build scripts" problem. Next up: work out the minimal config to provide the build tools needed to run an actual build. (This should, eventually, include a "make" command if freebsd's kernel is going to refuse to build with netbsd's "make" and we don't just write off the whole thing as crazy. But it probably shouldn't include commands that #include <linux/*.h> if we are trying to make that work.)
2014-09-11Oops, unbreak make.sh.Rob Landley1-1/+1
Clearing out old .o files needs -r now that generated/obj has its own subdirectory. (Works if you make clean between, but shouldn't need it.)
2014-09-09Make tweaks: collate generated/*.o files into their own subdirectory, add ↵Rob Landley1-18/+6
PIPEFAIL for better error reporting, and simpler regex to select toys/*/*.c list based on NEWTOY/OLDTOY macros.
2014-09-04Don't hang for $CPUS=1.Rob Landley1-1/+1
echo prints a newline if it has nothing to print, so wc -l always returns at least 1. Fix: echo -n
2014-09-03Testsuites for toybox command - "tar", "bzcat", "xzcat", "zcat" and "hostname".Divya Kothari5-0/+169
2014-09-03chmod testsuite and link testsuite.Divya Kothari2-51/+69
Chmod ? In this testsuite after change file mode bits, we are comparing file mode with expected ones. One additional "." is coming with modes (actual result). That?s why test cases are getting failed. This patch will remove additional "." from actual result. Link ? Added more test cases.
2014-08-31More parallel build tweaks.Rob Landley1-2/+2
echo "$PENDING" needs the quotes to avoid gluing the lines together, which prevents wc -l or head -n +2 from working right.
2014-08-30Old compilers complain about linker options passed with -c, so split out ↵Rob Landley1-1/+1
$LDOPTIMIZE.
2014-08-30Another fix from Johan Bergstr?m, using the gnu/dammit version of sort on ↵Rob Landley1-0/+1
the host can be screwed up by more than one environment variable.
2014-08-30Add VERBOSE=fail to "make tests", based on suggestion from Johan Bergstr?m.Rob Landley1-0/+2