busybox makes heavy usage of linux kernel headers, which have a tendency to clash with userspace. in order to make it build almost "out of the box", some patches (1, 2, 3, 4, 5) are needed for the kernel headers so that they respect musl's userspace headers in the same way as glibc's. for convenience, sabotage linux has a kernel-headers repo based on linux 3.12.6 headers for all archs supported by musl, where those patches are already applied.
note that these headers are "forwards and backwards-compatible"; you only need newer headers if you need a feature that was added to linux after 3.12, which cannot be accessed using libc headers.
to compile busybox 1.22.1 allyesconfig, the following config changes are needed to support musl
# CONFIG_EXTRA_COMPAT is not set # CONFIG_SELINUX is not set # CONFIG_FEATURE_HAVE_RPC is not set # CONFIG_WERROR is not set # CONFIG_FEATURE_SYSTEMD is not set # CONFIG_FEATURE_VI_REGEX_SEARCH is not set # CONFIG_PAM is not set # CONFIG_FEATURE_INETD_RPC is not set # CONFIG_SELINUXENABLED is not set # CONFIG_FEATURE_MOUNT_NFS is not set
additionally this patch for ifplugd is required, if this applet is desired.
You can contribute to this wiki! Submit pull-requests to somasis/musl-wiki.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported license, unless otherwise noted.
Last edited by Kylie McClain, 2016-07-01 16:55:02