Patch sources and generate files for BusyBox on Android
Go to file
2020-01-20 20:51:54 +08:00
busybox_patches Add SELinux support to BusyBox 2020-01-20 18:45:19 +08:00
jni Add SELinux support to BusyBox 2020-01-20 18:45:19 +08: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 Add SELinux support to BusyBox 2020-01-20 18:45:19 +08:00
busybox.mk Add SELinux support to BusyBox 2020-01-20 18:45:19 +08:00
busybox.sh Generate embedded_scripts.h 2020-01-20 20:51:54 +08:00
external.mk Add SELinux support to BusyBox 2020-01-20 18:45:19 +08:00
README.md Add SELinux support to BusyBox 2020-01-20 18:45:19 +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://busybox.net/busybox.git
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.