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