blob: a2b26caa56a5d0629d446c758280dda8af07e17c [file] [log] [blame]
LOCAL_DIR := $(GET_LOCAL_DIR)
MODULE := $(LOCAL_DIR)
ifeq ($(MTK_MRDUMP_SUPPORT), yes)
MODULE_SRCS += $(LOCAL_DIR)/mrdump_aee.c \
$(LOCAL_DIR)/kdump_ext4.c \
$(LOCAL_DIR)/kdump_zip.c \
$(LOCAL_DIR)/mrdump_sddev.c \
$(LOCAL_DIR)/env.c \
$(LOCAL_DIR)/reboot_record.c \
$(LOCAL_DIR)/mrdump_elf.c \
$(LOCAL_DIR)/mrdump_elf64.c
endif
ifeq ($(MTK_KEDUMP_MINI_SUPPORT), yes)
MODULE_SRCS += $(LOCAL_DIR)/KEDump.c
ifneq ($(MTK_MRDUMP_SUPPORT), yes)
# for mrdump_reboot when disable mrdump
MODULE_SRCS += $(LOCAL_DIR)/kdump_aee.c
endif
endif
ifeq ($(MTK_BOOT_REASON_SUPPORT), yes)
MODULE_SRCS += $(LOCAL_DIR)/ram_console.c \
$(LOCAL_DIR)/dump_joint.c \
$(LOCAL_DIR)/mrdump_rsvmem.c \
$(LOCAL_DIR)/mrdump_setup.c \
$(LOCAL_DIR)/mrdump_dummy.c
endif
MODULE_DEPS += \
lib/kcmdline \
lib/zlib
ifeq ($(MTK_MRDUMP_SUPPORT), yes)
#Now only support SRAM_CB
GLOBAL_DEFINES += MTK_MRDUMP_SRAM_CB
endif
MODULE_COMPILEFLAGS += -Wno-sign-compare
include make/module.mk