[Toybox] FreeBSD porting, removing bashisms

Rob Landley rob at landley.net
Tue Jan 8 17:54:53 PST 2019



On 1/8/19 7:29 PM, Ed Maste wrote:
> On Tue, 8 Jan 2019 at 20:18, Rob Landley <rob at landley.net> wrote:
>>
>> Could you send me a .config file of what you can build? I'd like to add a "make
>> freebsd_defconfig" target. (Probably via
>> http://landley.net/aboriginal/FAQ.html#dev_miniconfig because then it won't need
>> to change for probed symbols and such...)
> 
> Ok - I've put my current .config at
> http://people.freebsd.org/~emaste/toybox/.config . I've left all of
> pending turned off, and haven't tried building anything in Networking
> yet.

Hmmm, lots of:

@@ -120,8 +120,8 @@
 # CONFIG_CROND is not set
 # CONFIG_CRONTAB is not set
 # CONFIG_DD is not set
-# CONFIG_DHCP6 is not set
 # CONFIG_DHCP is not set
+# CONFIG_DHCP6 is not set
 # CONFIG_DHCPD is not set
 # CONFIG_DEBUG_DHCP is not set
 # CONFIG_DIFF is not set

There's probably a missing "LOCALE=C" in the plumbing somewhere. Anyway...
here's a first stab at a miniconfig, which:

  make allnoconfig KCONFIG_ALLCONFIG=mini.config

Should expand into the full config. Does it work for you? (I think the probed
symbols are filtered out by the miniconfig process since they should be constant
per built environment, but a smoketest would nice before I check it in.)

Thanks,

Rob
-------------- next part --------------
CONFIG_BASENAME=y
CONFIG_CAL=y
CONFIG_CAT=y
CONFIG_CATV=y
CONFIG_CHGRP=y
CONFIG_CHOWN=y
CONFIG_CHMOD=y
CONFIG_CKSUM=y
CONFIG_CRC32=y
CONFIG_CMP=y
CONFIG_COMM=y
CONFIG_CPIO=y
CONFIG_CUT=y
CONFIG_DATE=y
CONFIG_DIRNAME=y
CONFIG_DU=y
CONFIG_ECHO=y
CONFIG_EXPAND=y
CONFIG_FALSE=y
CONFIG_FILE=y
CONFIG_FIND=y
CONFIG_GREP=y
CONFIG_HEAD=y
CONFIG_ICONV=y
CONFIG_ID=y
CONFIG_GROUPS=y
CONFIG_LOGNAME=y
CONFIG_WHOAMI=y
CONFIG_KILL=y
CONFIG_KILLALL5=y
CONFIG_LINK=y
CONFIG_LN=y
CONFIG_LOGGER=y
CONFIG_LS=y
CONFIG_MKDIR=y
CONFIG_MKFIFO=y
CONFIG_NICE=y
CONFIG_NL=y
CONFIG_NOHUP=y
CONFIG_OD=y
CONFIG_PASTE=y
CONFIG_PATCH=y
CONFIG_PRINTF=y
CONFIG_PWD=y
CONFIG_RENICE=y
CONFIG_RM=y
CONFIG_RMDIR=y
CONFIG_SED=y
CONFIG_SLEEP=y
CONFIG_SORT=y
CONFIG_SPLIT=y
CONFIG_STRINGS=y
CONFIG_TEE=y
CONFIG_TEST=y
CONFIG_TIME=y
CONFIG_TOUCH=y
CONFIG_TRUE=y
CONFIG_TTY=y
CONFIG_UNAME=y
CONFIG_UNIQ=y
CONFIG_UNLINK=y
CONFIG_UUDECODE=y
CONFIG_UUENCODE=y
CONFIG_WC=y
CONFIG_WHO=y
CONFIG_XARGS=y
CONFIG_ACPI=y
CONFIG_ASCII=y
CONFIG_BASE64=y
CONFIG_BUNZIP2=y
CONFIG_BZCAT=y
CONFIG_CHROOT=y
CONFIG_CHRT=y
CONFIG_CHVT=y
CONFIG_CLEAR=y
CONFIG_COUNT=y
CONFIG_DOS2UNIX=y
CONFIG_UNIX2DOS=y
CONFIG_FACTOR=y
CONFIG_FALLOCATE=y
CONFIG_FLOCK=y
CONFIG_FMT=y
CONFIG_FSYNC=y
CONFIG_HELP=y
CONFIG_HELP_EXTRAS=y
CONFIG_HEXEDIT=y
CONFIG_LSMOD=y
CONFIG_LSPCI=y
CONFIG_LSPCI_TEXT=y
CONFIG_LSUSB=y
CONFIG_MAKEDEVS=y
CONFIG_MKPASSWD=y
CONFIG_MKSWAP=y
CONFIG_MODINFO=y
CONFIG_MOUNTPOINT=y
CONFIG_PMAP=y
CONFIG_PRINTENV=y
CONFIG_PWDX=y
CONFIG_READLINK=y
CONFIG_REALPATH=y
CONFIG_RESET=y
CONFIG_REV=y
CONFIG_SETSID=y
CONFIG_SHRED=y
CONFIG_SYSCTL=y
CONFIG_TAC=y
CONFIG_TIMEOUT=y
CONFIG_TRUNCATE=y
CONFIG_USLEEP=y
CONFIG_UUIDGEN=y
CONFIG_VMSTAT=y
CONFIG_WATCH=y
CONFIG_W=y
CONFIG_WHICH=y
CONFIG_XXD=y
CONFIG_YES=y
CONFIG_HOSTNAME=y
CONFIG_KILLALL=y
CONFIG_MKNOD=y
CONFIG_MKTEMP=y
CONFIG_PIDOF=y
CONFIG_SEQ=y
CONFIG_SYNC=y
CONFIG_TOYBOX_SUID=y
CONFIG_TOYBOX_FLOAT=y
CONFIG_TOYBOX_HELP=y
CONFIG_TOYBOX_HELP_DASHDASH=y
CONFIG_TOYBOX_I18N=y


More information about the Toybox mailing list