Check if libantradio module is present before declaring build target
Change-Id: I748f378c007ea3302a2ddbc67d62d2c4ae024899
diff --git a/Android.mk b/Android.mk
index e86b5c1..e7a07fb 100644
--- a/Android.mk
+++ b/Android.mk
@@ -17,6 +17,7 @@
#
ifneq ($(BOARD_ANT_WIRELESS_DEVICE),)
+ifneq ($(filter $(ALL_MODULES),libantradio),)
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
@@ -41,4 +42,5 @@
include $(BUILD_PACKAGE)
+endif # ALL_MODULES contains libantradio
endif # BOARD_ANT_WIRELESS_DEVICE defined