50 Commits

Author SHA1 Message Date
Rob Landley
79cd1a4537 Move allyesconfig, allnoconfig, and randconfig over to new kconfig.c 2025-05-01 14:06:17 -05:00
Rob Landley
35e26cec34 Move defconfig to new infrastructure. 2025-04-25 12:56:56 -05:00
Rob Landley
82720e5954 Add uname to freebsd_miniconfig (pointed out by Vidar Karlsen) 2024-04-13 07:07:49 -05:00
Elliott Hughes
20d5dade3a Add fold(1) to the default macOS configuration. 2023-12-15 01:07:43 -06:00
Rob Landley
93c8ea40a1 Add more things Ed Maste says build on FreeBSD to bsd_defconfig. 2023-11-09 12:56:03 -06:00
Rob Landley
b9d040bc98 Missed two.
Dunno how useful CONFIG_DEVMEM would be, but it compiles which is all I'm
filtering for here.
2022-12-05 19:21:45 -06:00
Rob Landley
2c7057c8c6 Add more things that build on freebsd 13 and remove one that broke. 2022-12-04 17:34:55 -06:00
Rob Landley
5d7b5c2505 Fix FreeBSD 13 build. 2022-12-03 03:41:24 -06:00
Rob Landley
dea2ace534 Some build environments no longer have PATH_MAX. 2022-09-14 00:43:02 -05:00
Elliott Hughes
1d657cff59 Enlarge macos_defconfig.
Add everything that uses xgetrandom(), and also everything that has
tests (but isn't still in pending) to the macos_defconfig.

I've sorted the list because it's impossible to manage otherwise.

All of the tests pass, except for the tar tests that were already
failing because there's no *group* called "root" on macOS (group 0
is called "wheel" instead). I haven't fixed that because it's quite
invasive, and TIL we're already ignoring macOS test failures in the
github CI (which is why we hadn't noticed this). There's also one
failure in the truncate tests: macOS doesn't do sparse file extension.
2022-06-20 17:31:11 -05:00
Rob Landley
d69a77d817 Add a few more things macos should be able to build. 2022-05-04 22:54:03 -05:00
Rob Landley
15839e5b61 First stab at an android_defconfig.
Not actually used by the android build, but I should keep better track.
Based on .config-device in the Android tree.
2022-05-04 22:30:56 -05:00
Rob Landley
3e6797bb69 Remove obsolete config symbols. 2022-05-02 23:22:03 -05:00
Rob Landley
b08d3573d4 Add kconfig-language.txt from Linux 2.6.12. 2022-04-12 03:48:32 -05:00
Elliott Hughes
d57dddaf26 Add df to the macOS default configuration.
"Works for me".
2021-02-23 01:02:13 -06:00
Elliott Hughes
2fa16e73fb Remove last traces of CONFIG_TOYBOX_I18N.
`make macos_defconfig` was grumbling.
2020-12-08 02:00:33 -06:00
Rob Landley
7e7ab8fd29 Allow KCONFIG_ALLCONFIG to delta against defconfig. 2020-04-27 12:32:24 -05:00
Elliott Hughes
5332688a2a Fix macOS build.
I'd put the rtc_wkalarm struct in the globals to get it zeroed for
free, but since there's no such type on macOS, that breaks the
build. Rather than define a bogus struct in portability.h, I've
gone for making it an explicitly-zeroed local. (And I've sorted the
locals largest-first.)

Note that the use of struct rtc_time as if it was the same as struct
tm in this code follows the existing code in hwclock, but I worry
that we're going to have trouble with that because of the extra
tm_gmtoff and tm_zone fields in struct tm. But that's a worry for
another day...

This patch also removes the CONFIG_CP_PRESERVE from the macos_miniconfig,
since that option was removed a while back.
2020-04-02 21:10:34 -05:00
Elliott Hughes
efe73887bb Fix bitrot in macos_miniconfig. 2020-02-20 19:46:58 -06:00
Rob Landley
8fe62cd6c3 Don't feed "y" to silentoldconfig, it puts menus in a loop. Hit enter instead. 2020-01-09 17:56:12 -06:00
Elliott Hughes
05fe7ad1b6 macos_miniconfig: add cp, mktemp, and mv.
All three have been in use for the Android build for a while now,
and all the tests pass.
2019-11-23 10:28:10 -06:00
Elliott Hughes
d64dfbabf3 mac: build fallocate and stat by default.
fallocate is fairly new, but I'm not sure why we didn't have stat
on the list already. Having it fixes the truncate tests.
2019-11-22 06:52:32 -06:00
Rob Landley
511e6a97d4 Disable conflicting internal symbol "ARCH". 2019-10-08 14:35:39 -05:00
Rob Landley
a5977aa2e8 Quiet "make clean" so it doesn't fill a whole screen with output. 2019-08-22 09:29:45 -05:00
Elliott Hughes
81eb18b480 Clean up remaining TAIL_SEEK references. 2019-06-03 21:07:39 -05:00
Elliott Hughes
c8a52bd25f tail: fix macOS build.
Trivial breakage from the recent refactoring.

Also add tail to the default config for macOS.

I'm still unconvinced that CONFIG_TAIL_SEEK makes sense in a world
where inotify support is always built in, but that's an argument
for another day...
2019-06-03 18:36:39 -05:00
Elliott Hughes
b2a3fad140 macos_miniconfig: remove pending tr and add non-pending toys.
Aside: I was surprised that `make defconfig` installs the default *Linux*
config even on macOS.
2019-05-23 19:15:10 -05:00
Rob Landley
ec3b378c03 Add "make bsd_defconfig" and "make macos_defconfig". 2019-01-25 08:06:00 -06:00
Rob Landley
ad63ea18f8 Set of commands Ed Maste got building on FreeBSD. 2019-01-18 08:34:05 -06:00
Rob Landley
c9571603db Fix "make distclean defconfig toybox" all on one line (good of $CROSS_COMPILER
changed), better error message when .config missing.
2018-10-27 10:54:18 -05:00
Rob Landley
8014d31278 Add SPDX identifier, update copyright year, move kconfig note into kconfig/
directory.
2018-10-20 09:59:58 -05:00
Rob Landley
456b363175 Expand defconfig/allyesconfig/allnoconfig help text to explain what they're for. 2016-01-12 10:45:58 -06:00
Rob Landley
7cdb8af914 Work around bug in gcc 5.2.0 that miscompiles linux 2.6.12's kconfig. 2015-08-31 21:42:47 -05:00
Rob Landley
324e615106 Cosmetic tweak: no need for pages of text from "make defconfig" and friends. 2015-06-10 11:58:47 -05:00
Rob Landley
a89f05496c Explain the craptacular nature of kconfig, and the plan to replace it. 2015-03-26 13:25:20 -05:00
Bernhard Rosenkr?nzer
76f148583a Fix toybox build with C99 compilers
toybox "make menuconfig" currently fails to build if the compiler is in C99
mode (clang 3.6 and gcc 5.0 snapshots default to C99 mode, you can also
reproduce the failure with older gcc by using 'make menuconfig HOSTCC="gcc
-std=gnu99"').

The problem is that inline semantics changed in C99, and kconf_id_lookup's
inline-ness depends on C89 semantics there.
2015-03-25 13:46:34 -05:00
Rob Landley
bdcb80e9d3 Silence pointless warnings. 2012-05-20 14:58:39 -05:00
Rob Landley
2896480c49 Zap toys/Config.in and instead create generated/Config.in from contents of
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.)
2008-01-19 17:08:39 -06:00
Rob Landley
e35f2b8312 Fix makefile to defconfig properly, and leak in a bit of the new test
infrastructure so I don't have to revert it to check this in. :)
2007-06-18 01:09:00 -04:00
Rob Landley
9fdf465b91 Humor dash, which is broken. 2007-06-01 11:46:56 -04:00
Rob Landley
d989df3d7d Apply uClibc's changes to this kconfig. 2007-03-15 13:59:06 -04:00
Rob Landley
217047b6b2 Move project name to Makefile. 2007-03-12 22:54:02 -04:00
Rob Landley
6126b258dc Convert HOST_CC to HOSTCC to be more like uClibc build. 2007-03-12 21:17:01 -04:00
Rob Landley
d1ed4c625d Change help text: not just used for the kernel. 2007-03-12 21:10:06 -04:00
Rob Landley
6275b1f7a5 Make kconfig build on MacOS X. (Because it's there.) 2007-02-12 19:59:12 -05:00
Rob Landley
de05a7024f Add "make defconfig". Modify global options to start with CONFIG_TOYBOX_. 2007-01-31 14:37:01 -05:00
Rob Landley
cd2edfd6a1 Add bloat-o-meter, make bloatcheck, and scripts/showasm. 2006-11-26 18:47:14 -05:00
Rob Landley
61a9cc57e7 Reduce flag duplication and make kconfig use HOST_CC. 2006-11-26 17:18:29 -05:00
Rob Landley
65b7df5882 Leftover from when I cleaned this up for another project. 2006-11-25 16:23:47 -05:00
landley
5257cf54a5 Add menuconfig, plus some basic Config info, lots of which is just future
plans for toysh.  Nothing's currently _using_ this config info, but at least
it's being generated now.
2006-10-31 23:30:06 -05:00