blob: b82065fb32c851b59b3502d889bc188a4e6ae70e [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
xf.liaa4d92f2023-09-13 00:18:58 -070033
34ifeq ($(USE_NVRO_BACKUP),yes)
35CFLAGS += -DUSE_NVRO_BACKUP
36endif
37