forked from project-voodoo/samsung_fsr
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
53 lines (45 loc) · 1.37 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#
# Makefile for eXtended Sector Remapper (FSR) driver
#
# Copyright(c) 2004-2009, Samsung Electronics, Co., Ltd.
#
EXTRA_CFLAGS += -I$(srctree)/drivers/fsr/Inc \
-I$(srctree)/drivers/fsr
# For FSR 1.5 RC5 and below version
EXTRA_CFLAGS += -DFSR_DUP_BUFFER
EXTRA_CFLAGS += -DFSR_LINUX_OAM
#EXTRA_CFLAGS += -DFSR_OAM_RTLMSG_DISABLE
EXTRA_CFLAGS += -DFSR_OAM_DBGMSG_ENABLE #-DFSR_OAM_ALL_DBGMSG
#EXTRA_CFLAGS += -DFSR_ASSERT
#EXTRA_CFLAGS += -DFSR_MAMMOTH_POWEROFF
EXTRA_CFLAGS += -DFSR_BML_DEVICE_AUTHENTICATION
EXTRA_CFLAGS += -DFSR_BML_SUPPORT_SUSPEND_RESUME
ifeq ($(CONFIG_TINY_FSR),y)
EXTRA_CFLAGS += -DWITH_TINY_FSR
endif
ifeq ($(CONFIG_ARM),y)
EXTRA_CFLAGS += -D__CC_ARM
endif
ifeq ($(CONFIG_LINUSTOREIII_DEBUG),y)
#EXTRA_CFLAGS += -D_RFS_INTERNAL_RESET
#EXTRA_CFLAGS += -D_RFS_INTERNAL_STAT_BH
endif
# Note: The following options are only used for development purpose
# We don't guarantee these options on production
EXTRA_CFLAGS += -D__LINUSTORE_INTERNAL_DEBUG_SYNC__
EXTRA_CFLAGS += -D__LINUSTORE_INTERNAL_IO_PARTTERN__
EXTRA_CFLAGS += -D__LINUSTOREIII_INTERNAL_PM__
EXTRA_CFLAGS += -D__LINUSTORE_INTERNAL_PLATFORM_DRIVER__
# Kernel gcov
ifeq ($(CONFIG_GCOV_PROFILE),y)
ifeq ($(PATCHLEVEL),4)
include Makefile.gcov
else
include $(srctree)/drivers/fsr/Makefile.gcov
endif
endif
ifeq ($(PATCHLEVEL),4)
include Makefile.24
else
include $(srctree)/drivers/fsr/Makefile.26
endif