blob: ab39e5b4e43d417cb3b1ff9ccf714332f945c5b2 [file] [log] [blame]
yu.dongc33b3072024-08-21 23:14:49 -07001Upper = $(subst z,Z,$(subst y,Y,$(subst x,X,$(subst w,W,$(subst v,V,$(subst u,U,$(subst t,T,$(subst s,S,$(subst r,R,$(subst q,Q,$(subst p,P,$(subst o,O,$(subst n,N,$(subst m,M,$(subst l,L,$(subst k,K,$(subst j,J,$(subst i,I,$(subst h,H,$(subst g,G,$(subst f,F,$(subst e,E,$(subst d,D,$(subst c,C,$(subst b,B,$(subst a,A,$(1)))))))))))))))))))))))))))
2
3# *************************************************************************
4# Feature Removing / Can't be enabled in custom projects.
5# *************************************************************************
6
7# *************************************************************************
8# Feature Removing / non-MP
9# *************************************************************************
10
11# *************************************************************************
12# Feature Dependency
13# *************************************************************************
14
15ifeq ($(strip $(PRODUCTION_RELEASE)),TRUE)
16 ifdef CUSTOM_CFLAGS
17 ifneq ($(strip $(CUSTOM_CFLAGS)),)
18 $(warning ERROR: Customer projects can not define CUSTOM_CFLAGS such as --debug --no_debug_macros.)
19 DEPENDENCY_CONFLICT = TRUE
20 endif
21 endif
22endif
23
24ifeq ($(strip $(PRODUCTION_RELEASE)),TRUE)
25ifneq ($(filter REL_CR_%,$(strip $(RELEASE_PACKAGE))),)
26 ifdef SCC_SIB_SUPPORT
27 ifeq ($(strip $(SCC_SIB_SUPPORT)),TRUE)
28 $(warning ERROR: SCC_SIB_SUPPORT cannot be enabled in customer projects.)
29 DEPENDENCY_CONFLICT = TRUE
30 endif
31 endif
32endif
33endif
34
35ifeq ($(strip $(PRODUCTION_RELEASE)),TRUE)
36ifneq ($(filter REL_CR_%,$(strip $(RELEASE_PACKAGE))),)
37 ifdef FCS_SUPPORT
38 ifeq ($(strip $(FCS_SUPPORT)),TRUE)
39 $(warning ERROR: Customer projects can not define FCS_SUPPORT. Internal use only!)
40 DEPENDENCY_CONFLICT = TRUE
41 endif
42 endif
43endif
44endif
45
46ifeq ($(filter REL_CR_%,$(strip $(RELEASE_PACKAGE))),)
47 ifeq ($(filter __MTK_INTERNAL_ENG_USER__,$(COM_DEFS)),)
48 $(warning ERROR: __MTK_INTERNAL_ENG_USER__ should be enabled in MTK_INTERNAL(eng/user) projects.)
49 DEPENDENCY_CONFLICT = TRUE
50 endif
51else #neq REL_CR_xxx
52 ifneq ($(filter __MTK_INTERNAL_ENG_USER__,$(COM_DEFS)),)
53 $(warning ERROR: __MTK_INTERNAL_ENG_USER__ cannot be enabled in customer projects.)
54 DEPENDENCY_CONFLICT = TRUE
55 endif
56endif