blob: eb6eab5512b7591144bd4ea3b63a6277db43868f [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#
2# Makefile for the linux ramdump
3#
4ifeq ($(CONFIG_MMU),y)
5ccflags-y += -D__USE_MMU__
6endif
7
8ifeq ($(CONFIG_MPU),y)
9ccflags-y += -D__USE_MPU__
10endif
11
12ifeq ($(CONFIG_TRANS_WITH_COLLECT),y)
13ccflags-y += -D__USE_TRANS_WITH_COLLECT__
14endif
15
16ifeq ($(CONFIG_RAMDUMP_TRANS_SERVER),y)
17ccflags-y += -D__USE_RAMDUMP_TRANS_SERVER__
18endif
19
20ifeq ($(CONFIG_RAMDUMP_CLIENT),y)
21ccflags-y += -D__USE_RAMDUMP_CLIENT__
22endif
23
24ifeq ($(CONFIG_CLIENT_WITH_COLLECT),y)
25ccflags-y += -D__USE_CLIENT_WITH_COLLECT__
26endif
27
28ccflags-y += -D_OS_LINUX
29
30ccflags-y += -I$(srctree)/include/linux/ramdump
31obj-$(CONFIG_RAMDUMP_TRANS_SERVER) += ramdump_oss.o
32#obj-$(CONFIG_RAMDUMP) += ramdump_oss.o
33obj-$(CONFIG_TRANS_WITH_COLLECT) += ramdump_collect_server.o
34obj-$(CONFIG_RAMDUMP_TRANS_SERVER) += ramdump_trans_server.o
35obj-$(CONFIG_RAMDUMP_CLIENT) += ramdump_client.o
36obj-$(CONFIG_SYSTEM_CAP) += ramdump_client_cap.o