blob: 3736593aef0770c0980a78b22d1ade5ec295d459 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001
2include $(COMMON_BASE_MK)
3
4ifeq ($(USERDATA_FS_TYPE),jffs2)
5CFLAGS += -DUSE_JFFS2
6endif
7
8ifeq ($(USERDATA_FS_TYPE),ubifs)
9CFLAGS += -DUSE_UBIFS
10endif
11
12ifeq ($(GLOBAL_DEBUG),yes)
13CFLAGS += -DGLOBAL_DEBUG
14endif
15
16ifeq ($(LIBC_TYPE),glibc)
17CUSTOM_MACRO += -DHAVE_STRDUP
18CUSTOM_MACRO += -DHAVE_STRNLEN
19CUSTOM_MACRO += -DUSE_GLIBC
20endif
21
22ifneq ($(CUSTOM_MACRO),"")
23CFLAGS += $(CUSTOM_MACRO)
24endif
25
26ifeq ($(CONFIG_SINGLECORE),yes)
27CFLAGS += -DCONFIG_SINGLECORE
28endif
29
30ifeq ($(USE_FOTA_AB),yes)
31CFLAGS += -DFOTA_AB
32endif