forked from Tasssadar/kexec-tools
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Android.mk
71 lines (65 loc) · 3.6 KB
/
Android.mk
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := mrom_kdump_static
LOCAL_MODULE_TAGS := optional
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_SRC_FILES := kdump/kdump.c
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_STATIC_LIBRARIES := libc
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_MODULE := mrom_libutil_kt
LOCAL_MODULE_TAGS := optional
LOCAL_C_INCLUDES := $(LOCAL_PATH)/util_lib/include
LOCAL_SRC_FILES := util_lib/compute_ip_checksum.c util_lib/sha256.c
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := mrom_kexec_static
LOCAL_MODULE_TAGS := optional
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include \
$(LOCAL_PATH)/util_lib/include \
$(LOCAL_PATH)/kexec/libfdt \
external/zlib
LOCAL_SRC_FILES := kexec/kexec.c kexec/ifdown.c \
kexec/kexec-elf.c kexec/kexec-elf-exec.c \
kexec/kexec-elf-core.c \
kexec/kexec-elf-rel.c \
kexec/kexec-elf-boot.c \
kexec/kexec-iomem.c \
kexec/kexec-xen.c \
kexec/firmware_memmap.c \
kexec/crashdump.c kexec/crashdump-xen.c \
kexec/phys_arch.c kexec/lzma.c \
kexec/zlib.c kexec/proc_iomem.c \
kexec/add_buffer.c \
kexec/kexec-uImage.c kexec/purgatory.c \
kexec/fs2dt.c \
kexec/libfdt/fdt.c kexec/libfdt/fdt_ro.c \
kexec/libfdt/fdt_rw.c kexec/libfdt/fdt_strerror.c \
kexec/libfdt/fdt_sw.c kexec/libfdt/fdt_wip.c
ARM_SRC_FILES := kexec/arch/arm/phys_to_virt.c \
kexec/arch/arm/kexec-elf-rel-arm.c \
kexec/arch/arm/kexec-zImage-arm.c \
kexec/arch/arm/kexec-uImage-arm.c \
kexec/arch/arm/kexec-arm.c \
kexec/arch/arm/mach.c \
kexec/arch/arm/mach-hammerhead.c \
kexec/arch/arm/mach-m8.c \
kexec/arch/arm/mach-shamu.c \
kexec/arch/arm/crashdump-arm.c
ARM_C_INCLUDES := $(LOCAL_PATH)/kexec/arch/arm/include \
LOCAL_SRC_FILES += kexec/arch/arm64/kexec-arm64.c \
kexec/arch/arm64/kexec-image-arm64.c \
kexec/arch/arm64/kexec-gzip-image-arm64.c \
kexec/arch/arm64/kexec-elf-arm64.c \
kexec/arch/arm64/crashdump-arm64.c \
kexec/dt-ops.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/kexec/arch/arm64/include \
$(LOCAL_PATH)/kexec
LOCAL_CFLAGS += -include $(LOCAL_PATH)/kexec/arch/arm64/kexec-arm64.h \
-include $(LOCAL_PATH)/kexec/arch/arm64/crashdump-arm64.h
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_STATIC_LIBRARIES := mrom_libutil_kt libz libc
LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
LOCAL_UNSTRIPPED_PATH := $(TARGET_OUT_EXECUTABLES_UNSTRIPPED)
include $(BUILD_EXECUTABLE)