Skip to content

Commit

Permalink
hardware: FM: Add BOARD_HAVE_QCOM_FM back and prevent build errors
Browse files Browse the repository at this point in the history
Only build QCOM FM if BOARD_HAVE_QCOM_FM flag is true

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Ib2e928b5701011fdbbf04f1c59a8fccea70e8023
  • Loading branch information
humberos committed May 4, 2016
1 parent dace318 commit 8f98407
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Android.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ifeq ($(BOARD_HAVE_QCOM_FM),true)

LOCAL_PATH:= $(call my-dir)
LOCAL_DIR_PATH:= $(call my-dir)
include $(CLEAR_VARS)
Expand All @@ -6,8 +8,6 @@ LOCAL_MODULE_TAGS := optional

#ifneq ($(TARGET_USES_AOSP),true)

#ifeq ($(BOARD_HAVE_QCOM_FM),true)

LOCAL_SRC_FILES := $(call all-java-files-under, qcom/fmradio)
LOCAL_JNI_SHARED_LIBRARIES := libqcomfm_jni

Expand All @@ -34,9 +34,10 @@ LOCAL_PATH := $(LOCAL_DIR_PATH)
include $(LOCAL_PATH)/fmapp2/Android.mk
#LOCAL_PATH := $(LOCAL_DIR_PATH)
#include $(LOCAL_PATH)/FMRecord/Android.mk
#endif # BOARD_HAVE_QCOM_FM

#endif # Not (TARGET_USES_AOSP)

LOCAL_PATH := $(LOCAL_DIR_PATH)
include $(LOCAL_PATH)/libfm_jni/Android.mk

endif # BOARD_HAVE_QCOM_FM

0 comments on commit 8f98407

Please sign in to comment.