Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 202 lines (166 sloc) 6.195 kb
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
1 LOCAL_PATH := $(call my-dir)
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
2 BB_PATH := $(LOCAL_PATH)
eba4519c »
2011-07-15 update config
3
aa905ab3 »
2011-11-14 1.19.3: Allow a common tree for ICS/Gingerbread by a single switch
4 # Bionic Branches Switches (CM7/AOSP/ICS)
5 BIONIC_ICS := false
6
7
8 # Make a static library for regex.
eba4519c »
2011-07-15 update config
9 include $(CLEAR_VARS)
aa905ab3 »
2011-11-14 1.19.3: Allow a common tree for ICS/Gingerbread by a single switch
10 LOCAL_SRC_FILES := android/regex/regex.c
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
11 LOCAL_C_INCLUDES := $(BB_PATH)/android/regex
d4b20a23 »
2012-05-05 fix most sign and variable initialization warnings
12 LOCAL_CFLAGS := -Wno-sign-compare
eba4519c »
2011-07-15 update config
13 LOCAL_MODULE := libclearsilverregex
14 include $(BUILD_STATIC_LIBRARY)
15
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
16 # Make a static library for RPC library (coming from uClibc).
17 include $(CLEAR_VARS)
18 LOCAL_SRC_FILES := $(shell cat $(BB_PATH)/android/librpc.sources)
19 LOCAL_C_INCLUDES := $(BB_PATH)/android/librpc
20 LOCAL_MODULE := libuclibcrpc
21 include $(BUILD_STATIC_LIBRARY)
29d8ebe3 »
2011-10-29 busybox v1.19.3 update
22
b2ccaf3f »
2011-07-05 execute busybox_prepare without CFLAGS
23
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
24 LOCAL_PATH := $(BB_PATH)
b2ccaf3f »
2011-07-05 execute busybox_prepare without CFLAGS
25 include $(CLEAR_VARS)
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
26
27 # Each profile require a compressed usage/config, outside the source tree for git history
28 # We keep the uncompressed headers in local include-<profile> to track config changes.
d4b20a23 »
2012-05-05 fix most sign and variable initialization warnings
29 # TODO: generate includes in out/
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
30
d4b20a23 »
2012-05-05 fix most sign and variable initialization warnings
31 # BB_INCLUDES_OUT := $(TARGET_OUT_INTERMEDIATES)/include
32 # $(BB_INCLUDES_OUT):
33 # mkdir -p $(ANDROID_BUILD_TOP)/$(BB_INCLUDES_OUT)
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
34
d4b20a23 »
2012-05-05 fix most sign and variable initialization warnings
35 # Execute make clean, make prepare and copy profiles required for normal & static lib (recovery)
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
36
eba4519c »
2011-07-15 update config
37 KERNEL_MODULES_DIR ?= /system/lib/modules
38 BUSYBOX_CONFIG := minimal full
b2ccaf3f »
2011-07-05 execute busybox_prepare without CFLAGS
39 $(BUSYBOX_CONFIG):
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
40 @echo -e ${CL_PFX}"prepare config for busybox $@ profile"${CL_RST}
41 @cd $(BB_PATH) && make clean
42 @cd $(BB_PATH) && git clean -f -- ./include-$@/
43 cp $(BB_PATH)/.config-$@ $(BB_PATH)/.config
44 cd $(BB_PATH) && make prepare
45 @#cp $(BB_PATH)/.config $(BB_PATH)/.config-$@
46 @mkdir -p $(BB_PATH)/include-$@
47 cp $(BB_PATH)/include/*.h $(BB_PATH)/include-$@/
48 @rm $(BB_PATH)/include/usage_compressed.h
49 @rm $(BB_PATH)/include/autoconf.h
50 @rm -f $(BB_PATH)/.config-old
b2ccaf3f »
2011-07-05 execute busybox_prepare without CFLAGS
51
52 busybox_prepare: $(BUSYBOX_CONFIG)
53 LOCAL_MODULE := busybox_prepare
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
54 LOCAL_MODULE_TAGS := eng debug
b2ccaf3f »
2011-07-05 execute busybox_prepare without CFLAGS
55 include $(BUILD_STATIC_LIBRARY)
56
57
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
58 LOCAL_PATH := $(BB_PATH)
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
59 include $(CLEAR_VARS)
60
eba4519c »
2011-07-15 update config
61 KERNEL_MODULES_DIR ?= /system/lib/modules
b2ccaf3f »
2011-07-05 execute busybox_prepare without CFLAGS
62
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
63 SUBMAKE := make -s -C $(BB_PATH) CC=$(CC)
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
64
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
65 BUSYBOX_SRC_FILES = $(shell cat $(BB_PATH)/busybox-$(BUSYBOX_CONFIG).sources) \
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
66 libbb/android.c
67
68 ifeq ($(TARGET_ARCH),arm)
69 BUSYBOX_SRC_FILES += \
aa905ab3 »
2011-11-14 1.19.3: Allow a common tree for ICS/Gingerbread by a single switch
70 android/libc/arch-arm/syscalls/adjtimex.S \
71 android/libc/arch-arm/syscalls/getsid.S \
72 android/libc/arch-arm/syscalls/stime.S \
73 android/libc/arch-arm/syscalls/swapon.S \
74 android/libc/arch-arm/syscalls/swapoff.S \
75 android/libc/arch-arm/syscalls/sysinfo.S
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
76 endif
77
8f997dac »
2011-10-03 Added MIPS syscalls for busybox
78 ifeq ($(TARGET_ARCH),mips)
79 BUSYBOX_SRC_FILES += \
80 android/libc/arch-mips/syscalls/adjtimex.S \
81 android/libc/arch-mips/syscalls/getsid.S \
82 android/libc/arch-mips/syscalls/stime.S \
83 android/libc/arch-mips/syscalls/swapon.S \
84 android/libc/arch-mips/syscalls/swapoff.S \
85 android/libc/arch-mips/syscalls/sysinfo.S
86 endif
87
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
88 BUSYBOX_C_INCLUDES = \
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
89 $(BB_PATH)/include-$(BUSYBOX_CONFIG) \
90 $(BB_PATH)/include $(BB_PATH)/libbb \
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
91 bionic/libc/private \
92 bionic/libm/include \
93 bionic/libm \
aa905ab3 »
2011-11-14 1.19.3: Allow a common tree for ICS/Gingerbread by a single switch
94 libc/kernel/common \
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
95 $(BB_PATH)/android/regex \
96 $(BB_PATH)/android/librpc
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
97
98 BUSYBOX_CFLAGS = \
99 -Werror=implicit \
100 -DNDEBUG \
c81b2cf3 »
2011-07-04 remove obsolete define ANDROID_CHANGES
101 -DANDROID \
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
102 -include include-$(BUSYBOX_CONFIG)/autoconf.h \
103 -D'CONFIG_DEFAULT_MODULES_DIR="$(KERNEL_MODULES_DIR)"' \
104 -D'BB_VER="$(strip $(shell $(SUBMAKE) kernelversion)) $(BUSYBOX_SUFFIX)"' -DBB_BT=AUTOCONF_TIMESTAMP
105
aa905ab3 »
2011-11-14 1.19.3: Allow a common tree for ICS/Gingerbread by a single switch
106 # to handle differences in ICS (ipv6)
107 ifeq ($(BIONIC_ICS),true)
108 BUSYBOX_CFLAGS += -DBIONIC_ICS
109 endif
64baaf5a »
2011-07-04 enhanced profiles, copy scripts no more required
110
d0fce6d1 »
2011-07-04 build static lib first
111
112 # Build the static lib for the recovery tool
113
114 BUSYBOX_CONFIG:=minimal
115 BUSYBOX_SUFFIX:=static
116 LOCAL_SRC_FILES := $(BUSYBOX_SRC_FILES)
117 LOCAL_C_INCLUDES := $(BUSYBOX_C_INCLUDES)
118 LOCAL_CFLAGS := -Dmain=busybox_driver $(BUSYBOX_CFLAGS)
119 LOCAL_CFLAGS += \
120 -Dgetusershell=busybox_getusershell \
121 -Dsetusershell=busybox_setusershell \
122 -Dendusershell=busybox_endusershell \
123 -Dttyname_r=busybox_ttyname_r \
124 -Dgetmntent=busybox_getmntent \
125 -Dgetmntent_r=busybox_getmntent_r \
126 -Dgenerate_uuid=busybox_generate_uuid
127 LOCAL_MODULE := libbusybox
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
128 LOCAL_MODULE_TAGS := eng debug
aa905ab3 »
2011-11-14 1.19.3: Allow a common tree for ICS/Gingerbread by a single switch
129 LOCAL_STATIC_LIBRARIES := libcutils libc libm
985c4115 »
2011-10-10 busybox v1.19.2 update
130 $(LOCAL_MODULE): busybox_prepare
d0fce6d1 »
2011-07-04 build static lib first
131 include $(BUILD_STATIC_LIBRARY)
132
133
134 # Bionic Busybox /system/xbin
135
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
136 LOCAL_PATH := $(BB_PATH)
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
137 include $(CLEAR_VARS)
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
138
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
139 BUSYBOX_CONFIG:=full
140 BUSYBOX_SUFFIX:=bionic
141 LOCAL_SRC_FILES := $(BUSYBOX_SRC_FILES)
aa905ab3 »
2011-11-14 1.19.3: Allow a common tree for ICS/Gingerbread by a single switch
142 ifeq ($(BIONIC_ICS),true)
143 LOCAL_SRC_FILES += android/libc/__set_errno.c
144 endif
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
145 LOCAL_C_INCLUDES := $(BUSYBOX_C_INCLUDES)
146 LOCAL_CFLAGS := $(BUSYBOX_CFLAGS)
147 LOCAL_MODULE := busybox
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
148 LOCAL_MODULE_TAGS := eng debug
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
149 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
aa905ab3 »
2011-11-14 1.19.3: Allow a common tree for ICS/Gingerbread by a single switch
150 LOCAL_SHARED_LIBRARIES := libc libcutils libm
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
151 LOCAL_STATIC_LIBRARIES := libclearsilverregex libuclibcrpc
985c4115 »
2011-10-10 busybox v1.19.2 update
152 $(LOCAL_MODULE): busybox_prepare
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
153 include $(BUILD_EXECUTABLE)
154
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
155 BUSYBOX_LINKS := $(shell cat $(BB_PATH)/busybox-$(BUSYBOX_CONFIG).links)
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
156 # nc is provided by external/netcat
157 exclude := nc
158 SYMLINKS := $(addprefix $(TARGET_OUT_OPTIONAL_EXECUTABLES)/,$(filter-out $(exclude),$(notdir $(BUSYBOX_LINKS))))
159 $(SYMLINKS): BUSYBOX_BINARY := $(LOCAL_MODULE)
160 $(SYMLINKS): $(LOCAL_INSTALLED_MODULE)
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
161 @echo -e ${CL_INS}"Symlink:"${CL_RST}" $@ -> $(BUSYBOX_BINARY)"
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
162 @mkdir -p $(dir $@)
163 @rm -rf $@
164 $(hide) ln -sf $(BUSYBOX_BINARY) $@
165
166 ALL_DEFAULT_INSTALLED_MODULES += $(SYMLINKS)
167
168 # We need this so that the installed files could be picked up based on the
169 # local module name
170 ALL_MODULES.$(LOCAL_MODULE).INSTALLED := \
171 $(ALL_MODULES.$(LOCAL_MODULE).INSTALLED) $(SYMLINKS)
172
173
258ba0cc »
2011-09-08 Add static busybox back
174 # Static Busybox
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
175
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
176 LOCAL_PATH := $(BB_PATH)
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
177 include $(CLEAR_VARS)
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
178
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
179 BUSYBOX_CONFIG:=full
180 BUSYBOX_SUFFIX:=static
181 LOCAL_SRC_FILES := $(BUSYBOX_SRC_FILES)
182 LOCAL_C_INCLUDES := $(BUSYBOX_C_INCLUDES)
183 LOCAL_CFLAGS := $(BUSYBOX_CFLAGS)
184 LOCAL_CFLAGS += \
185 -Dgetusershell=busybox_getusershell \
186 -Dsetusershell=busybox_setusershell \
187 -Dendusershell=busybox_endusershell \
188 -Dttyname_r=busybox_ttyname_r \
189 -Dgetmntent=busybox_getmntent \
190 -Dgetmntent_r=busybox_getmntent_r \
191 -Dgenerate_uuid=busybox_generate_uuid
192 LOCAL_FORCE_STATIC_EXECUTABLE := true
985c4115 »
2011-10-10 busybox v1.19.2 update
193 LOCAL_MODULE := static_busybox
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
194 LOCAL_MODULE_STEM := busybox
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
195 LOCAL_MODULE_TAGS := optional
9794688f »
2012-04-28 Busybox 1.20.0 squashed commit for gingerbread
196 LOCAL_STATIC_LIBRARIES := libclearsilverregex libc libcutils libm libuclibcrpc
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
197 LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES
258ba0cc »
2011-09-08 Add static busybox back
198 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
199 LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities
985c4115 »
2011-10-10 busybox v1.19.2 update
200 $(LOCAL_MODULE): busybox_prepare
8aeb3719 »
2011-06-30 merged commit between gingerbread and busybox/master 20110630
201 include $(BUILD_EXECUTABLE)
Something went wrong with that request. Please try again.