-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.mk
59 lines (49 loc) · 1.39 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
LOCAL_PATH := $(call my-dir)
libbootimg_src := libbootimg.c mincrypt/sha.c
libbootimg_cflags := -Os
bootimg_src := bootimg.c
bootimg_cflags := -Os
bootimg_static_libs :=
bootimg_shared_libs :=
ifdef BOOTIMG_STATIC
bootimg_static_libs += libbootimg-static
else
bootimg_shared_libs += libbootimg
endif
ifdef BOOTIMG_LOGGING
bootimg_cflags += -DDEBUG
bootimg_shared_libs += liblog
endif
ifdef BOOTIMG_NO_MTK
libbootimg_cflags += -DNO_MTK_SUPPORT=1
bootimg_cflags += -DNO_MTK_SUPPORT=1
endif
include $(CLEAR_VARS)
LOCAL_MODULE := libbootimg-static
LOCAL_SRC_FILES := $(libbootimg_src)
LOCAL_CFLAGS += $(libbootimg_cflags)
LOCAL_SDK_VERSION := 21
LOCAL_MODULE_TAGS := optional
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := libbootimg
LOCAL_SRC_FILES := $(libbootimg_src)
LOCAL_CFLAGS += $(libbootimg_cflags)
LOCAL_SDK_VERSION := 21
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := bootimg
LOCAL_SRC_FILES := $(bootimg_src)
LOCAL_CFLAGS += $(bootimg_cflags)
LOCAL_STATIC_LIBRARIES := $(bootimg_static_libs)
LOCAL_SHARED_LIBRARIES := $(bootimg_shared_libs)
LOCAL_SDK_VERSION := 21
LOCAL_MODULE_TAGS := optional
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_MODULE := bootimg
LOCAL_SRC_FILES := $(bootimg_src) $(libbootimg_src)
LOCAL_CFLAGS += $(libbootimg_cflags)
LOCAL_MODULE_TAGS := optional
include $(BUILD_HOST_EXECUTABLE)