Script and patches to cross compile bash for android
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
old_patches
patches_4 Add 5.0 stuff Jan 15, 2019
patches_5
.gitattributes
.gitignore
README.md
build-bash.sh

README.md

Build Bash for Android

A script that patches & cross-compiles bash for Android

Prerequisites

  • Linux or Linux WSL on W10 (tested on Ubuntu WSL on W10 Pro)
  • GNU Make
  • Common sense

Compile

$ git clone ...

$ ./build-bash.sh

Notes

The android patches are for bash 4.4-23 and 5.0 stable. If you're compiling any other version of bash, make sure the patch files are targeting the correct lines (use check argument)

If building fails, you likely need to add/remove/modify patches. Just place the patches in the patches folder and the script will apply them

Issues

Arm64 always compiles with dynamic linker (/lib/ld-linux-aarch64.so.1) for reasons unknown and so won't work

Credits

License

MIT