aboutsummaryrefslogtreecommitdiff
path: root/scripts/genconfig.sh
AgeCommit message (Collapse)Author
2018-07-04Add xgetrandom() with probe for new system call (else open/read /dev/{,u}random)Rob Landley
2018-06-26The prlimit probe broke when implicit function declarations became an errorRob Landley
(see comment in ulimit.c about the glibc header bug), so copy prototype into the probe too. Without this ulimit always disabled by config probe.
2017-04-30Android NDK doesn't have cutils/sched_policy.h so add a probed config symbol.Rob Landley
2016-09-28Kernels between 2006 and 2010 (such as the one in Centos 6.6) provide unshare()Rob Landley
but not nsenter(). So probe for both.
2016-05-26Stabilize another sort.Elliott Hughes
Unstable sorting means confusing diffs if you're checking in the generated files. (Which I shouldn't be doing, but getting this bundle of random scripts into Android's build system isn't going to be easy...)
2016-04-20Replace list_working with just list, "make list list_pending" shows combined ↵Rob Landley
list.
2016-03-23Redo build stuff in response to Andy Chu's suggestions.Rob Landley
Toybox single binaries are now made directly with the new name instead of stomping toybox and getting renamed. Unstripped files now live in generated/unstripped. Target to run all tests is now "make tests" to avoid conflict with "make test". .singleconfig now has .PHONY: entries for all test_$NAME targets. Default install location changed to /usr/toybox, code.html now says how to change it (set $PREFIX). scripts/install.sh --uninstall works now. (And you get to keep the pieces!)
2016-03-01The last-ever release of uClibc hasn't got prlimit, so probe.Rob Landley
2016-02-19Add test_COMMAND for each command, update "make help" to describe TEST_HOSTRob Landley
and VERBOSE=fail, and fix a quote mismatch.
2016-02-14Add "make list", rename make working->list_working and pending->list_pending,Rob Landley
and filter out commands that aren't nofork but aren't installed either (toyflags 0, I.E. recognized aliases like "-sh" called from login).
2016-02-07Dependencies for "make COMMAND"Rob Landley
2016-02-07Add "make ls" and friends targets, with "make working" and "make pending" lists.Rob Landley
2015-08-29Menuconfig option for musl-libc pretending mmu is just pining for the fijords.Rob Landley
2015-07-03Probe for fork() instead of relying on a distro-specific #define.Rob Landley
2015-05-09Probe for -Wno-string-plus-int.Rob Landley
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-04-19Cleanup getprop, add qstrcmp() to lib for qsort (because posix-2008 brokeRob Landley
alphasort), add compile-time probe for config symbol TOYBOX_ON_ANDROID.
2015-01-16AOSP master has <pty.h> and builds netcat/nc.Elliott Hughes
2014-11-19Fixups for the android/bionic build probes patch.Rob Landley
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 Dunham
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-06-28Add fallocate probe for uClibc.Rob Landley
2014-04-23Add example directory, move hello.c into it, add skeleton.c to demonstrate ↵Rob Landley
more complciated stuff (multiple commands per file, etc), and have genconfig.sh sort backwards so posix is first and example last in menuconfig.
2014-04-23As long as uClibc's still around and requires you to jump through hoops to ↵Rob Landley
get iconv(), probe and build defconfig without it if it's not there.
2014-04-16Probe for the existence of FIFREEZE and make fsfreeze depend on it.Rob Landley
2014-04-15Probes for O_NOFOLLOW that compile and run something aren't compatible with ↵Rob Landley
cross compiling, so just #define it to 0 if it's not in fcntl.h where posix-2008 says.
2013-04-16Make genconfig use CFLAGS because building against a libc that isn't ↵Rob Landley
installed on the host may need --static to run the results.
2013-03-11Compile time probe to fish O_NOFOLLOW out of linux headers when fcntl ↵0.4.4Rob Landley
doesn't conform to posix-2008.
2012-12-10Add stat submission to new "pending" directory, along with infrastructure to ↵Rob Landley
support pending.
2012-12-08Add README file to each toys/ directory, teach build infrastructure to get ↵Rob Landley
fancy name from that. This means adding new directories shouldn't require touching build scripts.
2012-08-25Move commands into "posix", "lsb", and "other" menus/directories.Rob Landley
2012-03-19Have probe for unshare test for actual unshare() function in libc.Rob Landley
2012-03-04Fix build on slackware-current.Georgi Chorbadzhiyski
2012-03-03Fix from Georgi Chorbadzhiyski to make cross compiling more robust.0.2.1Rob Landley
2012-02-23Don't mix the the probed symbols with the command symbols.Rob Landley
2012-02-13The unshare test needs $CC defined, source configure to get it.Rob Landley
2012-02-03Add autodetect for container support.Rob Landley
2008-01-20Fluff out hello.c to supply more example code as a skeleton for new commands,Rob Landley
and update a chunk of code.html (much more to do there).
2008-01-19Zap toys/Config.in and instead create generated/Config.in from contents ofRob Landley
toys/*.c. Move relevant info into comment at the top of each toys/*.c. Also convert more of Makefile into a thin wrapper around shell scripts that actually do the work. (Makefile is only still there for the user interface.)