summaryrefslogtreecommitdiffstats
path: root/60xx/libsensors_iio/software/build/android/shared.mk
diff options
context:
space:
mode:
authorScott Warner <Tortel1210@gmail.com>2015-10-11 08:30:01 -0400
committerScott Warner <Tortel1210@gmail.com>2015-10-12 09:40:33 -0400
commit901b63272e2eb758fe2f4a588e6e9f308fe50f6c (patch)
treeeefd9603dc5f829b80bc7bb116e9de5ba4297714 /60xx/libsensors_iio/software/build/android/shared.mk
parente0c1691f695f828608c36315fa405db2fa8d153e (diff)
downloadandroid_hardware_invensense-901b63272e2eb758fe2f4a588e6e9f308fe50f6c.tar.gz
android_hardware_invensense-901b63272e2eb758fe2f4a588e6e9f308fe50f6c.tar.bz2
android_hardware_invensense-901b63272e2eb758fe2f4a588e6e9f308fe50f6c.zip
Revert "Remove files for unsupported devices."
This reverts commit f5f584ee173faef40f226c6e0e8580a2ecbe079b. Change-Id: I4e1b41922b5ccaac2314dac7f43df5740e2e9361
Diffstat (limited to '60xx/libsensors_iio/software/build/android/shared.mk')
-rw-r--r--60xx/libsensors_iio/software/build/android/shared.mk74
1 files changed, 74 insertions, 0 deletions
diff --git a/60xx/libsensors_iio/software/build/android/shared.mk b/60xx/libsensors_iio/software/build/android/shared.mk
new file mode 100644
index 0000000..47dedfe
--- /dev/null
+++ b/60xx/libsensors_iio/software/build/android/shared.mk
@@ -0,0 +1,74 @@
+SHELL=/bin/bash
+
+TARGET ?= android
+PRODUCT ?= beagleboard
+ANDROID_ROOT ?= /Android/trunk/0xdroid/beagle-eclair
+KERNEL_ROOT ?= /Android/trunk/0xdroid/kernel
+MLSDK_ROOT ?= $(CURDIR)
+
+ifeq ($(VERBOSE),1)
+ DUMP=1>/dev/stdout
+else
+ DUMP=1>/dev/null
+endif
+
+include common.mk
+
+################################################################################
+## targets
+
+INV_ROOT = ../..
+LIB_FOLDERS = $(INV_ROOT)/core/mllite/build/$(TARGET)
+ifeq ($(BUILD_MPL),1)
+ LIB_FOLDERS += $(INV_ROOT)/core/mpl/build/$(TARGET)
+endif
+APP_FOLDERS = $(INV_ROOT)/simple_apps/mpu_iio/build/$(TARGET)
+APP_FOLDERS += $(INV_ROOT)/simple_apps/self_test/build/$(TARGET)
+APP_FOLDERS += $(INV_ROOT)/simple_apps/gesture_test/build/$(TARGET)
+
+INSTALL_DIR = $(CURDIR)
+
+################################################################################
+## macros
+
+define echo_in_colors
+ echo -ne "\e[1;34m"$(1)"\e[0m"
+endef
+
+################################################################################
+## rules
+
+.PHONY : all mllite mpl clean
+
+all:
+ for DIR in $(LIB_FOLDERS); do ( \
+ cd $$DIR && $(MAKE) -f shared.mk $@ ); \
+ done
+ for DIR in $(APP_FOLDERS); do ( \
+ cd $$DIR && $(MAKE) -f shared.mk $@ ); \
+ done
+
+clean:
+ for DIR in $(LIB_FOLDERS); do ( \
+ cd $$DIR && $(MAKE) -f shared.mk $@ ); \
+ done
+ for DIR in $(APP_FOLDERS); do ( \
+ cd $$DIR && $(MAKE) -f shared.mk $@ ); \
+ done
+
+cleanall:
+ for DIR in $(LIB_FOLDERS); do ( \
+ cd $$DIR && $(MAKE) -f shared.mk $@ ); \
+ done
+ for DIR in $(APP_FOLDERS); do ( \
+ cd $$DIR && $(MAKE) -f shared.mk $@ ); \
+ done
+
+install:
+ for DIR in $(LIB_FOLDERS); do ( \
+ cd $$DIR && $(MAKE) -f shared.mk $@ ); \
+ done
+ for DIR in $(APP_FOLDERS); do ( \
+ cd $$DIR && $(MAKE) -f shared.mk $@ ); \
+ done
+