forked from CyanogenDefy/android_external_bootmenu
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Android.mk
108 lines (71 loc) · 2.54 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
ifeq ($(BOARD_USES_BOOTMENU),true)
################################
LOCAL_PATH := $(call my-dir)
bootmenu_local_path := $(LOCAL_PATH)
bootmenu_sources := \
extendedcommands.c \
overclock.c \
bootmenu.c \
checkup.c \
default_bootmenu_ui.c \
ui.c \
BOOTMENU_VERSION:=1.1.2
# Variables available in BoardConfig.mk related to mount devices
EXTRA_CFLAGS :=
ifdef BOARD_DATA_DEVICE
EXTRA_CFLAGS += -DDATA_DEVICE=\"$(BOARD_DATA_DEVICE)\"
endif
ifdef BOARD_SYSTEM_DEVICE
EXTRA_CFLAGS += -DSYSTEM_DEVICE=\"$(BOARD_SYSTEM_DEVICE)\"
endif
ifdef BOARD_SDCARD_DEVICE_SECONDARY
EXTRA_CFLAGS += -DSDCARD_DEVICE=\"$(BOARD_SDCARD_DEVICE_SECONDARY)\"
endif
ifdef BOARD_SDEXT_DEVICE
EXTRA_CFLAGS += -DSDEXT_DEVICE=\"$(BOARD_SDEXT_DEVICE)\"
endif
# one-shot reboot mode file location
ifneq ($(BOARD_BOOTMODE_CONFIG_FILE),)
EXTRA_CFLAGS += -DBOARD_BOOTMODE_CONFIG_FILE=\"$(BOARD_BOOTMODE_CONFIG_FILE)\"
endif
######################################
# Cyanogen version
ifneq ($(BUILD_BOOTMENU_STANDALONE),1)
include $(CLEAR_VARS)
LOCAL_MODULE := bootmenu
LOCAL_MODULE_TAGS := eng debug
LOCAL_SRC_FILES := $(bootmenu_sources)
BOOTMENU_SUFFIX := -ICS
LOCAL_CFLAGS += \
-DBOOTMENU_VERSION="${BOOTMENU_VERSION}${BOOTMENU_SUFFIX}" -DSTOCK_VERSION=0 \
-DMAX_ROWS=40 -DMAX_COLS=96 ${EXTRA_CFLAGS}
LOCAL_STATIC_LIBRARIES := libminui_bm libpixelflinger_static libpng libz
LOCAL_STATIC_LIBRARIES += libstdc++ libc libcutils
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_MODULE_PATH := $(PRODUCT_OUT)/system/bin
include $(BUILD_EXECUTABLE)
endif # !BUILD_BOOTMENU_STANDALONE
#####################################
# Standalone version for stock roms
ifeq ($(BUILD_BOOTMENU_STANDALONE),1)
LOCAL_PATH := $(bootmenu_local_path)
include $(CLEAR_VARS)
LOCAL_MODULE := Bootmenu
LOCAL_MODULE_TAGS := eng debug
LOCAL_SRC_FILES := $(bootmenu_sources)
BOOTMENU_SUFFIX := -$(TARGET_BOOTLOADER_BOARD_NAME)
LOCAL_CFLAGS := \
-DBOOTMENU_VERSION="${BOOTMENU_VERSION}${BOOTMENU_SUFFIX}" -DSTOCK_VERSION=1 \
-DMAX_ROWS=40 -DMAX_COLS=96 ${EXTRA_CFLAGS}
LOCAL_STATIC_LIBRARIES := libminui_bm libpixelflinger_static libpng libz
LOCAL_STATIC_LIBRARIES += libstdc++ libc libcutils
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_MODULE_PATH := $(PRODUCT_OUT)/system/bootmenu/binary
LOCAL_MODULE_STEM := bootmenu-standalone
include $(BUILD_EXECUTABLE)
endif #BUILD_BOOTMENU_STANDALONE
#####################################
# Include minui
include $(call all-makefiles-under,$(bootmenu_local_path))
#####################################
endif #BOARD_USES_BOOTMENU