Patch sources and generate files for BusyBox on Android
Go to file
2024-10-06 01:43:13 -07:00
jni Add 16k page support 2024-07-17 11:10:24 -07:00
patches Fix DNS issues on Bionic 2024-10-06 01:43:13 -07:00
.gitignore Update scripts and README 2024-07-16 18:07:02 -07:00
busybox.config Update patches and config 2024-07-16 08:40:01 -07:00
busybox.mk Fix DNS issues on Bionic 2024-10-06 01:43:13 -07:00
README.md Update scripts and README 2024-07-16 18:07:02 -07:00
run.sh Update scripts and README 2024-07-16 18:07:02 -07: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.

Usage

Clone the following repos:

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

We currently support BusyBox version 1.36.1, please checkout to the correct tags before running scripts

./run.sh patch to apply patches

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

$NDK/ndk-build -j$(nproc) to build the executables

./run.sh archive to archive all built artifacts into busybox.zip