Patch sources and generate files for BusyBox on Android
Go to file
2021-05-08 15:09:44 -07:00
busybox_patches Update for BusyBox 1.32.1 2021-01-21 00:16:34 -08:00
jni Move global config to local 2021-05-08 15:09:44 -07:00
toybox_patches Add toybox support 2018-08-12 18:11:33 +08:00
.gitignore Add SELinux support to BusyBox 2020-01-20 18:45:19 +08:00
busybox.config Update for BusyBox 1.32.1 2021-01-21 00:16:34 -08:00
busybox.mk Move global config to local 2021-05-08 15:09:44 -07:00
busybox.sh Update config and patch files 2020-05-02 03:25:13 -07:00
README.md Fix links in README 2020-01-21 19:58:46 +08:00
toybox.config Add toybox support 2018-08-12 18:11:33 +08:00
toybox.mk Add toybox support 2018-08-12 18:11:33 +08:00
toybox.sh Update for new NDK versions 2018-12-25 18:25:08 +08:00

ndk-box-kitchen

This repo is the kitchen used to create headers and Makefiles for building *box with the command ndk-build in NDK. All scripts in this repo expect to run on Linux, however the generated code and Makefiles can be used on all NDK supported platforms.

Download Sources

To build BusyBox, clone the following repos:

git clone https://git.busybox.net/busybox/
git clone https://github.com/SELinuxProject/selinux.git jni/selinux
git clone https://android.googlesource.com/platform/external/pcre jni/pcre

Currently, the script supports BusyBox version 1.31.1, please checkout to the correct tags before running scripts

To build ToyBox, clone the following repo:

git clone https://github.com/landley/toybox.git

Busybox

./busybox.sh patch to apply patches

./busybox.sh generate to generate required Makefiles and headers

Toybox

./toybox.sh patch to apply patches

./toybox.sh generate to generate required Makefiles and headers

Credits

All files in busybox_patches are directly copied from osm0sis/android-busybox-ndk. Theses patches are required for a fully functioning BusyBox building with NDK + Bionic libc.