libril: Fix multisim flags
authorChristopher N. Hesse <raymanfx@gmail.com>
Fri, 20 Oct 2017 16:34:57 +0000 (18:34 +0200)
committerChristopher N. Hesse <raymanfx@gmail.com>
Sat, 20 Jan 2018 22:29:43 +0000 (22:29 +0000)
Change-Id: Idb2ea518c115c1dbfbbbbb79094938ce006f40d8
(cherry picked from commit c98cc605c67e950bf14aa9f0d14966382ec45a0c)

ril/libril/Android.mk

index 793986708735d0647d223ffe05ee5b7c5019e626..b0f982d3fe6a78913a0056853093bf4decd06129 100644 (file)
@@ -22,18 +22,21 @@ LOCAL_SHARED_LIBRARIES := \
 LOCAL_STATIC_LIBRARIES := \
     libprotobuf-c-nano-enable_malloc \
 
+LOCAL_CFLAGS :=
+
 ifeq ($(SIM_COUNT), 2)
+    LOCAL_CFLAGS += -DANDROID_MULTI_SIM
     LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2
 endif
 
 ifneq ($(filter xmm6262 xmm6360,$(BOARD_MODEM_TYPE)),)
-LOCAL_CFLAGS := -DMODEM_TYPE_XMM6262
+LOCAL_CFLAGS += -DMODEM_TYPE_XMM6262
 endif
 ifeq ($(BOARD_MODEM_TYPE),xmm6260)
-LOCAL_CFLAGS := -DMODEM_TYPE_XMM6260
+LOCAL_CFLAGS += -DMODEM_TYPE_XMM6260
 endif
 ifneq ($(filter m7450 mdm9x35 ss333 tss310 xmm7260,$(BOARD_MODEM_TYPE)),)
-LOCAL_CFLAGS := -DSAMSUNG_NEXT_GEN_MODEM
+LOCAL_CFLAGS += -DSAMSUNG_NEXT_GEN_MODEM
 endif
 
 ifeq ($(BOARD_MODEM_NEEDS_VIDEO_CALL_FIELD), true)