Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gromnitsky/bash-on-android
A makefile that patches & cross-compiles bash 4.4-beta to Android
https://github.com/gromnitsky/bash-on-android
Last synced: about 6 hours ago
JSON representation
A makefile that patches & cross-compiles bash 4.4-beta to Android
- Host: GitHub
- URL: https://github.com/gromnitsky/bash-on-android
- Owner: gromnitsky
- Created: 2015-12-20T00:43:55.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-21T11:03:57.000Z (almost 9 years ago)
- Last Synced: 2023-04-10T15:02:38.167Z (over 1 year ago)
- Language: Makefile
- Size: 4.88 KB
- Stars: 10
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bash on Android
A makefile that patches & cross-compiles bash 4.4-beta to Android (on
ARM, but that's configurable).This is not a "port" or a fork. We simply produce a cross-compiled
stand-alone executable. bash itself is kept pristine w/o behavioral
modifications.## Prerequisites
* Android NDK (tested w/ r10e)
* Linux (tested on Fedora 23)
* GNU Make## Compile
$ git clone ...
$ mkdir tmp && cd tmp
$ wget ftp://ftp.gnu.org/gnu/bash/bash-4.4-beta.tar.gzThe arm target:
$ ../bash-on-android/bash-on-android compile
This presumes that the NDK was installed in
`/opt/s/android-ndk-r10e`. If not, set the correct path via a command
line override:$ ../bash-on-android/bash-on-android compile NDK=my/android-ndk/installation
If the cross-compilation succeeds, `build-arm-bash-4.4-beta/bash`
appears:$ file build-arm-bash-4.4-beta/bash
build-arm-bash-4.4-beta/bash: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, not stripped## Installation
$ adb push build-arm-bash-4.4-beta/bash /system/bin
Don't put it in `/sdcard`; the 1st partition of the card is usually
formatted w/ FAT32 & your ROM may mount it w/o execute access.## License
MIT.