48 lines
1.6 KiB
Makefile
48 lines
1.6 KiB
Makefile
|
LOCAL_PATH := $(call my-dir)
|
||
|
|
||
|
#######################
|
||
|
include $(CLEAR_VARS)
|
||
|
CEDARM_PATH=$(LOCAL_PATH)/..
|
||
|
include $(CEDARM_PATH)/config.mk
|
||
|
|
||
|
ifeq ($(CONFIG_OS), $(OPTION_OS_ANDROID))
|
||
|
product = $(shell echo $(TARGET_PRODUCT) | cut -d '_' -f 1)
|
||
|
ifeq (sugar, $(product)) #A20
|
||
|
LOCAL_SRC_FILES := sugar_cedarx.conf
|
||
|
else ifeq (jaws, $(product)) #A80
|
||
|
LOCAL_SRC_FILES := jaws_cedarx.conf
|
||
|
else ifeq (eagle, $(product)) #H8
|
||
|
LOCAL_SRC_FILES := eagle_cedarx.conf
|
||
|
else ifeq (dolphin, $(product)) #H3
|
||
|
ifeq ($(CONFIG_CMCC), $(OPTION_CMCC_YES))
|
||
|
LOCAL_SRC_FILES := dolphin_cmcc_cedarx.conf
|
||
|
else
|
||
|
LOCAL_SRC_FILES := dolphin_cedarx.conf
|
||
|
endif
|
||
|
else ifeq (rabbit, $(product)) #H64
|
||
|
ifeq ($(CONFIG_CMCC), $(OPTION_CMCC_YES))
|
||
|
LOCAL_SRC_FILES := rabbit_cmcc_cedarx.conf
|
||
|
else
|
||
|
LOCAL_SRC_FILES := rabbit_cedarx.conf
|
||
|
endif
|
||
|
else ifeq (astar, $(product)) #A33
|
||
|
LOCAL_SRC_FILES := astar_cedarx.conf
|
||
|
else ifeq (octopus, $(product)) #A83
|
||
|
LOCAL_SRC_FILES := octopus_cedarx.conf
|
||
|
else ifeq (tulip, $(product)) #A64
|
||
|
LOCAL_SRC_FILES := tulip_cedarx.conf
|
||
|
else ifeq (kylin, $(product)) #A80
|
||
|
LOCAL_SRC_FILES := kylin_cedarx.conf
|
||
|
else ifeq (magton, $(product)) #V40
|
||
|
LOCAL_SRC_FILES := magton_cedarx.conf
|
||
|
else ifeq (aston, $(product)) #V66
|
||
|
LOCAL_SRC_FILES := aston_cedarx.conf
|
||
|
else
|
||
|
$(warning no config file found for product $(product))
|
||
|
endif
|
||
|
endif
|
||
|
LOCAL_MODULE := cedarx.conf
|
||
|
LOCAL_MODULE_TAGS := optional
|
||
|
LOCAL_MODULE_PATH := $(TARGET_OUT)/etc
|
||
|
LOCAL_MODULE_CLASS := FAKE
|
||
|
include $(BUILD_PREBUILT)
|