opentechinstitute / commotion-android

The Android application bundle components for the Commotion Wireless project.
https://commotionwireless.net
GNU General Public License v3.0
39 stars 13 forks source link

Makefile has hardcoded paths to tools #2

Closed westbywest closed 11 years ago

westbywest commented 11 years ago

external/Makefile has some hard-coded paths to tools under /opt, causing a build to fail if these paths don't exist. These tool paths are not mentioned in the top-level README.md

# Android NDK setup
SDK_BASE ?= /opt/android-sdk
NDK_BASE ?=  /opt/android-ndk
NDK_PLATFORM_LEVEL ?= 9
SDK_PLATFORM_LEVEL ?= 9
NDK_SYSROOT=$(NDK_BASE)/platforms/android-$(NDK_PLATFORM_LEVEL)/arch-arm
SDK_PLATFORM=$(SDK_BASE)/platforms/android-$(SDK_PLATFORM_LEVEL)/
NDK_UNAME := $(shell uname -s | tr '[A-Z]' '[a-z]')
NDK_TOOLCHAIN=$(NDK_BASE)/toolchains/arm-linux-androideabi-4.4.3/prebuilt/$(NDK_UNAME)-x86
westbywest commented 11 years ago

Likewise, it looks like these Makefile have hardcoded tool paths too:

external/olsrd/make/Makefile.android external/shell-fork/Makefile.android