-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.mk
119 lines (108 loc) · 2.46 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
108
109
110
111
112
113
114
115
116
117
118
119
LOCAL_PATH := $(call my-dir)
# ========================================================
# bash
# ========================================================
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
alias.c \
array.c \
arrayfunc.c \
assoc.c \
bashhist.c \
bashline.c \
bracecomp.c \
braces.c \
copy_cmd.c \
dispose_cmd.c \
error.c \
eval.c \
execute_cmd.c \
expr.c \
findcmd.c \
flags.c \
general.c \
hashcmd.c \
hashlib.c \
input.c \
jobs.c \
list.c \
locale.c \
mailcheck.c \
make_cmd.c \
pathexp.c \
pcomplete.c \
pcomplib.c \
print_cmd.c \
redir.c \
shell.c \
sig.c \
siglist.c \
stringlib.c \
subst.c \
syntax.c \
test.c \
trap.c \
unwind_prot.c \
variables.c \
version.c \
xmalloc.c \
y.tab.c
LOCAL_C_INCLUDES += \
$(LOCAL_PATH) \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/lib
LOCAL_CFLAGS += \
-DHAVE_CONFIG_H \
-DPROGRAM=\"bash\" \
-DPACKAGE=\"bash\" \
-DCONF_HOSTTYPE=\"arm\" \
-DCONF_OSTYPE=\"android-eabi\" \
-DCONF_MACHTYPE=\"arm-android-eabi\" \
-DCONF_VENDOR=\"unknown\" \
-DLOCALEDIR=\"/data/locale\" \
-DSHELL
LOCAL_SHARED_LIBRARIES += \
libncurses
LOCAL_STATIC_LIBRARIES += \
libbuiltins \
libglob \
libsh \
libtilde \
libhistory \
libreadline
LOCAL_CFLAGS += \
-Wno-char-subscripts \
-Wno-format \
-Wno-implicit-function-declaration \
-Wno-incompatible-pointer-types \
-Wno-incompatible-pointer-types-discards-qualifiers \
-Wno-missing-field-initializers \
-Wno-non-literal-null-conversion \
-Wno-parentheses \
-Wno-sign-compare \
-Wno-sometimes-uninitialized \
-Wno-switch \
-Wno-unused-function \
-Wno-unused-label \
-Wno-unused-parameter \
-Wno-unused-variable \
-Wno-user-defined-warnings
LOCAL_MODULE := bash
LOCAL_MODULE_TAGS := optional
LOCAL_SYSTEM_EXT_MODULE := true
include $(BUILD_EXECUTABLE)
# ========================================================
# bash configs
# ========================================================
etc_files := $(wildcard $(LOCAL_PATH)/etc/*)
BASH_ETC := $(TARGET_OUT_SYSTEM_EXT_ETC)/$(LOCAL_MODULE)
BASH_CONFIGS := $(addprefix $(BASH_ETC)/,$(notdir $(etc_files)))
$(BASH_CONFIGS): $(BASH_ETC)/%: $(LOCAL_PATH)/etc/% | $(LOCAL_BUILT_MODULE)
@echo "Install: $@ -> $(BASH_ETC)"
@mkdir -p $(dir $@)
$(hide) cp $< $@
ALL_DEFAULT_INSTALLED_MODULES += $(BASH_CONFIGS)
ALL_MODULES.$(LOCAL_MODULE).INSTALLED := \
$(ALL_MODULES.$(LOCAL_MODULE).INSTALLED) $(BASH_CONFIGS)
# ========================================================
include $(call all-makefiles-under,$(LOCAL_PATH))