Patch sources and generate files for BusyBox on Android
Go to file
2022-01-25 03:29:27 -08:00
jni Fix build for latest pcre2 2021-11-21 12:38:53 -08:00
patches Add a missing patch back 2022-01-25 03:29:27 -08:00
.gitignore Update scripts and remove toybox support 2021-09-23 02:11:12 -07:00
busybox.config Enable nsenter applet 2022-01-24 23:08:37 -08:00
busybox.mk Use APP_SHORT_COMMANDS instead 2021-09-23 02:17:21 -07:00
README.md Update for BusyBox 1.34.1 2021-11-21 12:38:53 -08:00
run.sh Update for BusyBox 1.34.1 2021-11-21 12:38:53 -08:00

ndk-box-kitchen

This repo is the kitchen used to create headers and Makefiles for building BusyBox with the command ndk-build in NDK. 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

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.34.1, please checkout to the correct tags before running scripts

Busybox

./run.sh patch to apply patches

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

Credits

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