lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | |
| 2 | include $(COMMON_BASE_MK) |
| 3 | |
| 4 | ifeq ($(USERDATA_FS_TYPE),jffs2) |
| 5 | CFLAGS += -DUSE_JFFS2 |
| 6 | endif |
| 7 | |
| 8 | ifeq ($(USERDATA_FS_TYPE),ubifs) |
| 9 | CFLAGS += -DUSE_UBIFS |
| 10 | endif |
| 11 | |
| 12 | ifeq ($(GLOBAL_DEBUG),yes) |
| 13 | CFLAGS += -DGLOBAL_DEBUG |
| 14 | endif |
| 15 | |
| 16 | ifeq ($(LIBC_TYPE),glibc) |
| 17 | CUSTOM_MACRO += -DHAVE_STRDUP |
| 18 | CUSTOM_MACRO += -DHAVE_STRNLEN |
| 19 | CUSTOM_MACRO += -DUSE_GLIBC |
| 20 | endif |
| 21 | |
| 22 | ifneq ($(CUSTOM_MACRO),"") |
| 23 | CFLAGS += $(CUSTOM_MACRO) |
| 24 | endif |
| 25 | |
| 26 | ifeq ($(CONFIG_SINGLECORE),yes) |
| 27 | CFLAGS += -DCONFIG_SINGLECORE |
| 28 | endif |
| 29 | |
| 30 | ifeq ($(USE_FOTA_AB),yes) |
| 31 | CFLAGS += -DFOTA_AB |
| 32 | endif |
xf.li | aa4d92f | 2023-09-13 00:18:58 -0700 | [diff] [blame] | 33 | |
| 34 | ifeq ($(USE_NVRO_BACKUP),yes) |
| 35 | CFLAGS += -DUSE_NVRO_BACKUP |
| 36 | endif |
| 37 | |