Move GNSS_CFLAGS to build/ to be fully included

GNSS_CFLAGS included in pla module cannot be included by all the
modules. Define it in build/target_specific_features.mk to make it
included by the whole project.

Change-Id: Ib13c43a65ecd14a7a97050dd80b4dce6aa8ad339
CRs-fixed: 2168176
This commit is contained in:
Yingjie Wang 2018-01-09 11:24:55 +08:00
parent 0a5adeaa17
commit 6e98d17e6a
2 changed files with 18 additions and 0 deletions

View file

@ -1,5 +1,6 @@
ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
LOCAL_PATH := $(call my-dir)
include $(LOCAL_PATH)/build/target_specific_features.mk
include $(call all-makefiles-under,$(LOCAL_PATH))
endif

View file

@ -0,0 +1,17 @@
GNSS_CFLAGS := \
-Werror \
-Wno-error=unused-parameter \
-Wno-error=format \
-Wno-error=macro-redefined \
-Wno-error=reorder \
-Wno-error=missing-braces \
-Wno-error=self-assign \
-Wno-error=enum-conversion \
-Wno-error=logical-op-parentheses \
-Wno-error=null-arithmetic \
-Wno-error=null-conversion \
-Wno-error=parentheses-equality \
-Wno-error=undefined-bool-conversion \
-Wno-error=tautological-compare \
-Wno-error=switch \
-Wno-error=date-time