libril: add Samsung flags to makefile
authorMartin Bouchet <tincho5588@gmail.com>
Sat, 23 Sep 2017 07:57:42 +0000 (04:57 -0300)
committerChristopher N. Hesse <raymanfx@gmail.com>
Sun, 21 Jan 2018 12:27:48 +0000 (13:27 +0100)
Change-Id: I5deb1f7582b207acf908691a7ac69a9ebbc62505

ril/libril/Android.mk

index b83ca01bb048d26b2204f42d852453078523cbf8..056390f3c712b42ec5b8ebeeadad39c7b0c02881 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 2006 The Android Open Source Project
 
-ifneq ($(BOARD_PROVIDES_LIBRIL),true)
+ifeq ($(BOARD_PROVIDES_LIBRIL),true)
 
 LOCAL_PATH:= $(call my-dir)
 include $(CLEAR_VARS)
@@ -36,6 +36,21 @@ ifeq ($(SIM_COUNT), 2)
     LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2
 endif
 
+ifneq ($(filter xmm6262 xmm6360,$(BOARD_MODEM_TYPE)),)
+LOCAL_CFLAGS += -DMODEM_TYPE_XMM6262
+endif
+ifeq ($(BOARD_MODEM_TYPE),xmm6260)
+LOCAL_CFLAGS += -DMODEM_TYPE_XMM6260
+endif
+ifneq ($(filter m7450 mdm9x35 ss333 tss310 xmm7260,$(BOARD_MODEM_TYPE)),)
+LOCAL_CFLAGS += -DSAMSUNG_NEXT_GEN_MODEM
+endif
+
+ifeq ($(BOARD_MODEM_NEEDS_VIDEO_CALL_FIELD), true)
+LOCAL_CFLAGS += -DNEEDS_VIDEO_CALL_FIELD
+endif
+
+LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
 LOCAL_C_INCLUDES += external/nanopb-c
 LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include
 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include