diff options
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 43 |
1 files changed, 17 insertions, 26 deletions
@@ -6,7 +6,6 @@ LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) -LOCAL_PRELINK_MODULE := false LOCAL_ARM_MODE := arm #phLibNfc @@ -105,28 +104,23 @@ LOCAL_SRC_FILES += Linux_x86/phDal4Nfc.c LOCAL_SRC_FILES += Linux_x86/phDal4Nfc_i2c.c LOCAL_SRC_FILES += Linux_x86/phDal4Nfc_messageQueueLib.c -# Really verbose: -#LOCAL_CFLAGS += -DNXP_MESSAGING -DANDROID -DDEBUG -DDAL_TRACE -DINCLUDE_DALINIT_DEINIT -pipe -fomit-frame-pointer -Wall -Wno-trigraphs -Werror-implicit-function-declaration -fno-strict-aliasing -fpic -# Just show I2C traffic: -#LOCAL_CFLAGS += -DNXP_MESSAGING -DANDROID -DINCLUDE_DALINIT_DEINIT -DLOW_LEVEL_TRACES -pipe -fomit-frame-pointer -Wall -Wno-trigraphs -Werror-implicit-function-declaration -fno-strict-aliasing -fpic -# Quiet: -LOCAL_CFLAGS += -DNXP_MESSAGING -DANDROID -DINCLUDE_DALINIT_DEINIT -pipe -fomit-frame-pointer -Wall -Wno-trigraphs -Werror-implicit-function-declaration -fno-strict-aliasing -fpic - -ifeq ($(TARGET_ARCH),arm) -LOCAL_CFLAGS += -mapcs -mno-sched-prolog -mabi=aapcs-linux -mno-thumb-interwork -msoft-float -Uarm -fno-common -endif - -ifeq ($(NFC_BUILD_VARIANT),debug) -LOCAL_CFLAGS += -DDEBUG -D_DEBUG -LOCAL_CFLAGS += -O0 -g -$(info DEBUG) -endif -ifeq ($(NFC_BUILD_VARIANT),release) -LOCAL_CFLAGS += -DNDEBUG -LOCAL_CFLAGS += -Os -LOCAL_CFLAGS += -Wl,-s -$(info RELEASE) -endif +LOCAL_CFLAGS += -DNXP_MESSAGING -DANDROID -fno-strict-aliasing + +# Uncomment for Chipset command/responses +# Or use "setprop debug.nfc.LOW_LEVEL_TRACES" at run-time +# LOCAL_CFLAGS += -DLOW_LEVEL_TRACES + +# Uncomment for DAL traces +# LOCAL_CFLAGS += -DDEBUG -DDAL_TRACE + +# Uncomment for LLC traces +# LOCAL_CFLAGS += -DDEBUG -DLLC_TRACE + +# Uncomment for LLCP traces +# LOCAL_CFLAGS += -DDEBUG -DLLCP_TRACE + +# Uncomment for HCI traces +# LOCAL_CFLAGS += -DDEBUG -DHCI_TRACE #includes LOCAL_CFLAGS += -I$(LOCAL_PATH)/inc @@ -145,8 +139,6 @@ include $(BUILD_SHARED_LIBRARY) include $(CLEAR_VARS) -LOCAL_PRELINK_MODULE := false - LOCAL_SRC_FILES += src/phFriNfc_NdefRecord.c LOCAL_CFLAGS += -I$(LOCAL_PATH)/inc @@ -157,4 +149,3 @@ LOCAL_MODULE_TAGS := optional LOCAL_SHARED_LIBRARIES := libcutils include $(BUILD_SHARED_LIBRARY) - |