Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
Tanguy Pruvot | 8a6c2c2 | 2012-04-28 00:24:09 +0200 | [diff] [blame] | 2 | BB_PATH := $(LOCAL_PATH) |
Koushik Dutta | 129a798 | 2011-11-16 18:27:02 -0800 | [diff] [blame] | 3 | |
Tanguy Pruvot | 6a06a10 | 2014-07-03 11:34:01 +0200 | [diff] [blame] | 4 | # Bionic Branches Switches (GB/ICS/L) |
Ricardo Cerqueira | edbd464 | 2014-11-05 22:58:13 +0000 | [diff] [blame] | 5 | BIONIC_ICS := false |
| 6 | BIONIC_L := true |
Tanguy Pruvot | 29d8ebe | 2011-10-29 15:15:34 +0200 | [diff] [blame] | 7 | |
Tanguy Pruvot | 36efc94 | 2011-11-20 14:41:41 +0100 | [diff] [blame] | 8 | # Make a static library for regex. |
| 9 | include $(CLEAR_VARS) |
Tanguy Pruvot | 3284a1d | 2014-05-16 20:01:11 +0200 | [diff] [blame] | 10 | LOCAL_SRC_FILES := android/regex/bb_regex.c |
Tanguy Pruvot | 8a6c2c2 | 2012-04-28 00:24:09 +0200 | [diff] [blame] | 11 | LOCAL_C_INCLUDES := $(BB_PATH)/android/regex |
Tanguy Pruvot | 6fef6a3 | 2012-05-05 15:26:43 +0200 | [diff] [blame] | 12 | LOCAL_CFLAGS := -Wno-sign-compare |
Tanguy Pruvot | 36efc94 | 2011-11-20 14:41:41 +0100 | [diff] [blame] | 13 | LOCAL_MODULE := libclearsilverregex |
| 14 | include $(BUILD_STATIC_LIBRARY) |
| 15 | |
Patrick Schaaf | 2dd59ef | 2012-02-27 22:27:31 +0100 | [diff] [blame] | 16 | # Make a static library for RPC library (coming from uClibc). |
| 17 | include $(CLEAR_VARS) |
Tanguy Pruvot | 8a6c2c2 | 2012-04-28 00:24:09 +0200 | [diff] [blame] | 18 | LOCAL_SRC_FILES := $(shell cat $(BB_PATH)/android/librpc.sources) |
| 19 | LOCAL_C_INCLUDES := $(BB_PATH)/android/librpc |
Patrick Schaaf | 2dd59ef | 2012-02-27 22:27:31 +0100 | [diff] [blame] | 20 | LOCAL_MODULE := libuclibcrpc |
Evan McClain | 6e205db | 2012-11-15 22:26:23 -0500 | [diff] [blame] | 21 | LOCAL_CFLAGS += -fno-strict-aliasing |
Tanguy Pruvot | 6a06a10 | 2014-07-03 11:34:01 +0200 | [diff] [blame] | 22 | ifeq ($(BIONIC_L),true) |
Chih-Wei Huang | 29cf8c2 | 2014-07-30 17:04:54 +0800 | [diff] [blame] | 23 | LOCAL_CFLAGS += -DBIONIC_ICS -DBIONIC_L |
Tanguy Pruvot | 6a06a10 | 2014-07-03 11:34:01 +0200 | [diff] [blame] | 24 | endif |
Patrick Schaaf | 2dd59ef | 2012-02-27 22:27:31 +0100 | [diff] [blame] | 25 | include $(BUILD_STATIC_LIBRARY) |
| 26 | |
Tanguy Pruvot | 3862b5f | 2014-07-21 20:02:03 +0200 | [diff] [blame] | 27 | ##################################################################### |
| 28 | |
| 29 | # Execute make prepare for normal config & static lib (recovery) |
Tanguy Pruvot | 29d8ebe | 2011-10-29 15:15:34 +0200 | [diff] [blame] | 30 | |
Tanguy Pruvot | 8a6c2c2 | 2012-04-28 00:24:09 +0200 | [diff] [blame] | 31 | LOCAL_PATH := $(BB_PATH) |
| 32 | include $(CLEAR_VARS) |
| 33 | |
Chih-Wei Huang | 51be78d | 2015-03-19 15:50:16 +0100 | [diff] [blame] | 34 | BUSYBOX_CROSS_COMPILER_PREFIX := $(abspath $(TARGET_TOOLS_PREFIX)) |
Trevor Drake | 2b99526 | 2013-10-05 21:33:20 +0100 | [diff] [blame] | 35 | |
Tanguy Pruvot | f641061 | 2014-07-24 23:21:48 +0200 | [diff] [blame] | 36 | # On aosp (master), path is relative, not on cm (kitkat) |
| 37 | bb_gen := $(abspath $(TARGET_OUT_INTERMEDIATES)/busybox) |
Tanguy Pruvot | 3862b5f | 2014-07-21 20:02:03 +0200 | [diff] [blame] | 38 | |
Tanguy Pruvot | f641061 | 2014-07-24 23:21:48 +0200 | [diff] [blame] | 39 | busybox_prepare_full := $(bb_gen)/full/.config |
| 40 | $(busybox_prepare_full): $(BB_PATH)/busybox-full.config |
| 41 | @echo -e ${CL_YLW}"Prepare config for busybox binary"${CL_RST} |
Tanguy Pruvot | 3862b5f | 2014-07-21 20:02:03 +0200 | [diff] [blame] | 42 | @rm -rf $(bb_gen)/full |
Tanguy Pruvot | a20778a | 2014-08-10 13:24:35 +0200 | [diff] [blame] | 43 | @rm -f $(shell find $(abspath $(call intermediates-dir-for,EXECUTABLES,busybox)) -name "*.o") |
Tanguy Pruvot | f641061 | 2014-07-24 23:21:48 +0200 | [diff] [blame] | 44 | @mkdir -p $(@D) |
| 45 | @cat $^ > $@ && echo "CONFIG_CROSS_COMPILER_PREFIX=\"$(BUSYBOX_CROSS_COMPILER_PREFIX)\"" >> $@ |
Humberto Borba | fcdf976 | 2016-08-30 12:22:34 -0300 | [diff] [blame] | 46 | make -C $(BB_PATH) prepare O=$(@D) |
Tanguy Pruvot | 266892e | 2014-07-22 18:56:44 +0200 | [diff] [blame] | 47 | |
Tanguy Pruvot | f641061 | 2014-07-24 23:21:48 +0200 | [diff] [blame] | 48 | busybox_prepare_minimal := $(bb_gen)/minimal/.config |
| 49 | $(busybox_prepare_minimal): $(BB_PATH)/busybox-minimal.config |
| 50 | @echo -e ${CL_YLW}"Prepare config for libbusybox"${CL_RST} |
Tanguy Pruvot | 3862b5f | 2014-07-21 20:02:03 +0200 | [diff] [blame] | 51 | @rm -rf $(bb_gen)/minimal |
Tanguy Pruvot | c9b3fd2 | 2014-08-07 01:10:32 +0200 | [diff] [blame] | 52 | @rm -f $(shell find $(abspath $(call intermediates-dir-for,STATIC_LIBRARIES,libbusybox)) -name "*.o") |
Tanguy Pruvot | f641061 | 2014-07-24 23:21:48 +0200 | [diff] [blame] | 53 | @mkdir -p $(@D) |
| 54 | @cat $^ > $@ && echo "CONFIG_CROSS_COMPILER_PREFIX=\"$(BUSYBOX_CROSS_COMPILER_PREFIX)\"" >> $@ |
Humberto Borba | fcdf976 | 2016-08-30 12:22:34 -0300 | [diff] [blame] | 55 | make -C $(BB_PATH) prepare O=$(@D) |
Tanguy Pruvot | 3862b5f | 2014-07-21 20:02:03 +0200 | [diff] [blame] | 56 | |
Tanguy Pruvot | 3862b5f | 2014-07-21 20:02:03 +0200 | [diff] [blame] | 57 | |
| 58 | ##################################################################### |
Tanguy Pruvot | b2ccaf3 | 2011-07-05 18:22:26 +0200 | [diff] [blame] | 59 | |
Tanguy Pruvot | 8a6c2c2 | 2012-04-28 00:24:09 +0200 | [diff] [blame] | 60 | LOCAL_PATH := $(BB_PATH) |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 61 | include $(CLEAR_VARS) |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 62 | |
Tanguy Pruvot | eba4519 | 2011-07-15 20:38:12 +0200 | [diff] [blame] | 63 | KERNEL_MODULES_DIR ?= /system/lib/modules |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 64 | |
Tanguy Pruvot | 8a6c2c2 | 2012-04-28 00:24:09 +0200 | [diff] [blame] | 65 | SUBMAKE := make -s -C $(BB_PATH) CC=$(CC) |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 66 | |
Tanguy Pruvot | 3862b5f | 2014-07-21 20:02:03 +0200 | [diff] [blame] | 67 | BUSYBOX_SRC_FILES = \ |
| 68 | $(shell cat $(BB_PATH)/busybox-$(BUSYBOX_CONFIG).sources) \ |
Tanguy Pruvot | 37d7f5f | 2014-08-05 08:14:29 +0200 | [diff] [blame] | 69 | android/libc/mktemp.c \ |
Tanguy Pruvot | 477b2eb | 2014-07-31 05:49:11 +0200 | [diff] [blame] | 70 | android/libc/pty.c \ |
| 71 | android/android.c |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 72 | |
Tanguy Pruvot | d4d8133 | 2014-08-06 15:38:40 +0200 | [diff] [blame] | 73 | BUSYBOX_ASM_FILES = |
Chih-Wei Huang | 29cf8c2 | 2014-07-30 17:04:54 +0800 | [diff] [blame] | 74 | ifneq ($(BIONIC_L),true) |
Tanguy Pruvot | d4d8133 | 2014-08-06 15:38:40 +0200 | [diff] [blame] | 75 | BUSYBOX_ASM_FILES += swapon.S swapoff.S sysinfo.S |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 76 | endif |
| 77 | |
Chih-Wei Huang | 29cf8c2 | 2014-07-30 17:04:54 +0800 | [diff] [blame] | 78 | ifneq ($(filter arm x86 mips,$(TARGET_ARCH)),) |
Tanguy Pruvot | 3862b5f | 2014-07-21 20:02:03 +0200 | [diff] [blame] | 79 | BUSYBOX_SRC_FILES += \ |
Chih-Wei Huang | 29cf8c2 | 2014-07-30 17:04:54 +0800 | [diff] [blame] | 80 | $(addprefix android/libc/arch-$(TARGET_ARCH)/syscalls/,$(BUSYBOX_ASM_FILES)) |
Rocky Zhang | 8f997da | 2011-10-03 21:11:37 +0800 | [diff] [blame] | 81 | endif |
| 82 | |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 83 | BUSYBOX_C_INCLUDES = \ |
Tanguy Pruvot | 8a6c2c2 | 2012-04-28 00:24:09 +0200 | [diff] [blame] | 84 | $(BB_PATH)/include $(BB_PATH)/libbb \ |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 85 | bionic/libc/private \ |
| 86 | bionic/libm/include \ |
Tanguy Pruvot | 6a06a10 | 2014-07-03 11:34:01 +0200 | [diff] [blame] | 87 | bionic/libc \ |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 88 | bionic/libm \ |
Tanguy Pruvot | 36efc94 | 2011-11-20 14:41:41 +0100 | [diff] [blame] | 89 | libc/kernel/common \ |
Tanguy Pruvot | 3284a1d | 2014-05-16 20:01:11 +0200 | [diff] [blame] | 90 | external/libselinux/include \ |
Iftekhar Rifat | c8b9b32 | 2015-10-08 18:12:54 +0600 | [diff] [blame] | 91 | external/selinux/libsepol/include \ |
Tanguy Pruvot | 8a6c2c2 | 2012-04-28 00:24:09 +0200 | [diff] [blame] | 92 | $(BB_PATH)/android/regex \ |
| 93 | $(BB_PATH)/android/librpc |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 94 | |
| 95 | BUSYBOX_CFLAGS = \ |
Tanguy Pruvot | 1071f3e | 2014-07-31 05:51:18 +0200 | [diff] [blame] | 96 | -Werror=implicit -Wno-clobbered \ |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 97 | -DNDEBUG \ |
Tanguy Pruvot | c81b2cf | 2011-07-04 10:18:25 +0200 | [diff] [blame] | 98 | -DANDROID \ |
Evan McClain | 6e205db | 2012-11-15 22:26:23 -0500 | [diff] [blame] | 99 | -fno-strict-aliasing \ |
Tanguy Pruvot | c1a6bc3 | 2014-05-29 15:47:17 +0200 | [diff] [blame] | 100 | -fno-builtin-stpcpy \ |
Tanguy Pruvot | 3862b5f | 2014-07-21 20:02:03 +0200 | [diff] [blame] | 101 | -include $(bb_gen)/$(BUSYBOX_CONFIG)/include/autoconf.h \ |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 102 | -D'CONFIG_DEFAULT_MODULES_DIR="$(KERNEL_MODULES_DIR)"' \ |
| 103 | -D'BB_VER="$(strip $(shell $(SUBMAKE) kernelversion)) $(BUSYBOX_SUFFIX)"' -DBB_BT=AUTOCONF_TIMESTAMP |
| 104 | |
Tanguy Pruvot | 6a06a10 | 2014-07-03 11:34:01 +0200 | [diff] [blame] | 105 | ifeq ($(BIONIC_L),true) |
Tanguy Pruvot | 3862b5f | 2014-07-21 20:02:03 +0200 | [diff] [blame] | 106 | BUSYBOX_CFLAGS += -DBIONIC_L |
Chih-Wei Huang | 29cf8c2 | 2014-07-30 17:04:54 +0800 | [diff] [blame] | 107 | BUSYBOX_AFLAGS += -DBIONIC_L |
| 108 | # include changes for ICS/JB/KK |
| 109 | BIONIC_ICS := true |
| 110 | endif |
| 111 | |
| 112 | ifeq ($(BIONIC_ICS),true) |
| 113 | BUSYBOX_CFLAGS += -DBIONIC_ICS |
Tanguy Pruvot | 6a06a10 | 2014-07-03 11:34:01 +0200 | [diff] [blame] | 114 | endif |
| 115 | |
Tanguy Pruvot | d0fce6d | 2011-07-04 04:46:06 +0200 | [diff] [blame] | 116 | |
| 117 | # Build the static lib for the recovery tool |
| 118 | |
Tanguy Pruvot | d0fce6d | 2011-07-04 04:46:06 +0200 | [diff] [blame] | 119 | BUSYBOX_CONFIG:=minimal |
| 120 | BUSYBOX_SUFFIX:=static |
| 121 | LOCAL_SRC_FILES := $(BUSYBOX_SRC_FILES) |
Tanguy Pruvot | 3862b5f | 2014-07-21 20:02:03 +0200 | [diff] [blame] | 122 | LOCAL_C_INCLUDES := $(bb_gen)/minimal/include $(BUSYBOX_C_INCLUDES) |
Tanguy Pruvot | d0fce6d | 2011-07-04 04:46:06 +0200 | [diff] [blame] | 123 | LOCAL_CFLAGS := -Dmain=busybox_driver $(BUSYBOX_CFLAGS) |
| 124 | LOCAL_CFLAGS += \ |
Tanguy Pruvot | 3284a1d | 2014-05-16 20:01:11 +0200 | [diff] [blame] | 125 | -DRECOVERY_VERSION \ |
Tanguy Pruvot | d0fce6d | 2011-07-04 04:46:06 +0200 | [diff] [blame] | 126 | -Dgetusershell=busybox_getusershell \ |
| 127 | -Dsetusershell=busybox_setusershell \ |
| 128 | -Dendusershell=busybox_endusershell \ |
Tanguy Pruvot | d0fce6d | 2011-07-04 04:46:06 +0200 | [diff] [blame] | 129 | -Dgetmntent=busybox_getmntent \ |
| 130 | -Dgetmntent_r=busybox_getmntent_r \ |
| 131 | -Dgenerate_uuid=busybox_generate_uuid |
Chih-Wei Huang | 29cf8c2 | 2014-07-30 17:04:54 +0800 | [diff] [blame] | 132 | LOCAL_ASFLAGS := $(BUSYBOX_AFLAGS) |
Tanguy Pruvot | d0fce6d | 2011-07-04 04:46:06 +0200 | [diff] [blame] | 133 | LOCAL_MODULE := libbusybox |
Tanguy Pruvot | 8a6c2c2 | 2012-04-28 00:24:09 +0200 | [diff] [blame] | 134 | LOCAL_MODULE_TAGS := eng debug |
Tanguy Pruvot | bf57436 | 2014-07-23 20:20:10 +0200 | [diff] [blame] | 135 | LOCAL_STATIC_LIBRARIES := libcutils libc libm libselinux |
Tanguy Pruvot | f641061 | 2014-07-24 23:21:48 +0200 | [diff] [blame] | 136 | LOCAL_ADDITIONAL_DEPENDENCIES := $(busybox_prepare_minimal) |
Tanguy Pruvot | d0fce6d | 2011-07-04 04:46:06 +0200 | [diff] [blame] | 137 | include $(BUILD_STATIC_LIBRARY) |
| 138 | |
| 139 | |
| 140 | # Bionic Busybox /system/xbin |
| 141 | |
Tanguy Pruvot | 8a6c2c2 | 2012-04-28 00:24:09 +0200 | [diff] [blame] | 142 | LOCAL_PATH := $(BB_PATH) |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 143 | include $(CLEAR_VARS) |
Tanguy Pruvot | 8a6c2c2 | 2012-04-28 00:24:09 +0200 | [diff] [blame] | 144 | |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 145 | BUSYBOX_CONFIG:=full |
| 146 | BUSYBOX_SUFFIX:=bionic |
Tanguy Pruvot | 36efc94 | 2011-11-20 14:41:41 +0100 | [diff] [blame] | 147 | LOCAL_SRC_FILES := $(BUSYBOX_SRC_FILES) |
Tanguy Pruvot | 3862b5f | 2014-07-21 20:02:03 +0200 | [diff] [blame] | 148 | LOCAL_C_INCLUDES := $(bb_gen)/full/include $(BUSYBOX_C_INCLUDES) |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 149 | LOCAL_CFLAGS := $(BUSYBOX_CFLAGS) |
Chih-Wei Huang | 29cf8c2 | 2014-07-30 17:04:54 +0800 | [diff] [blame] | 150 | LOCAL_ASFLAGS := $(BUSYBOX_AFLAGS) |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 151 | LOCAL_MODULE := busybox |
Tanguy Pruvot | 8a6c2c2 | 2012-04-28 00:24:09 +0200 | [diff] [blame] | 152 | LOCAL_MODULE_TAGS := eng debug |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 153 | LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) |
Tanguy Pruvot | 36efc94 | 2011-11-20 14:41:41 +0100 | [diff] [blame] | 154 | LOCAL_SHARED_LIBRARIES := libc libcutils libm |
Tanguy Pruvot | bf57436 | 2014-07-23 20:20:10 +0200 | [diff] [blame] | 155 | LOCAL_STATIC_LIBRARIES := libclearsilverregex libuclibcrpc libselinux |
Tanguy Pruvot | f641061 | 2014-07-24 23:21:48 +0200 | [diff] [blame] | 156 | LOCAL_ADDITIONAL_DEPENDENCIES := $(busybox_prepare_full) |
Steve Kondik | 91d27cb | 2015-11-01 04:23:38 -0800 | [diff] [blame] | 157 | LOCAL_CLANG := false |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 158 | include $(BUILD_EXECUTABLE) |
| 159 | |
Tanguy Pruvot | 8a6c2c2 | 2012-04-28 00:24:09 +0200 | [diff] [blame] | 160 | BUSYBOX_LINKS := $(shell cat $(BB_PATH)/busybox-$(BUSYBOX_CONFIG).links) |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 161 | # nc is provided by external/netcat |
| 162 | exclude := nc |
| 163 | SYMLINKS := $(addprefix $(TARGET_OUT_OPTIONAL_EXECUTABLES)/,$(filter-out $(exclude),$(notdir $(BUSYBOX_LINKS)))) |
| 164 | $(SYMLINKS): BUSYBOX_BINARY := $(LOCAL_MODULE) |
| 165 | $(SYMLINKS): $(LOCAL_INSTALLED_MODULE) |
Tanguy Pruvot | 3862b5f | 2014-07-21 20:02:03 +0200 | [diff] [blame] | 166 | @echo -e ${CL_CYN}"Symlink:"${CL_RST}" $@ -> $(BUSYBOX_BINARY)" |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 167 | @mkdir -p $(dir $@) |
| 168 | @rm -rf $@ |
| 169 | $(hide) ln -sf $(BUSYBOX_BINARY) $@ |
| 170 | |
| 171 | ALL_DEFAULT_INSTALLED_MODULES += $(SYMLINKS) |
| 172 | |
| 173 | # We need this so that the installed files could be picked up based on the |
| 174 | # local module name |
| 175 | ALL_MODULES.$(LOCAL_MODULE).INSTALLED := \ |
| 176 | $(ALL_MODULES.$(LOCAL_MODULE).INSTALLED) $(SYMLINKS) |
| 177 | |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 178 | |
codeworkx | 258ba0c | 2011-09-08 21:25:43 +0200 | [diff] [blame] | 179 | # Static Busybox |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 180 | |
Tanguy Pruvot | 8a6c2c2 | 2012-04-28 00:24:09 +0200 | [diff] [blame] | 181 | LOCAL_PATH := $(BB_PATH) |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 182 | include $(CLEAR_VARS) |
Tanguy Pruvot | 8a6c2c2 | 2012-04-28 00:24:09 +0200 | [diff] [blame] | 183 | |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 184 | BUSYBOX_CONFIG:=full |
| 185 | BUSYBOX_SUFFIX:=static |
| 186 | LOCAL_SRC_FILES := $(BUSYBOX_SRC_FILES) |
Tanguy Pruvot | 3862b5f | 2014-07-21 20:02:03 +0200 | [diff] [blame] | 187 | LOCAL_C_INCLUDES := $(bb_gen)/full/include $(BUSYBOX_C_INCLUDES) |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 188 | LOCAL_CFLAGS := $(BUSYBOX_CFLAGS) |
| 189 | LOCAL_CFLAGS += \ |
| 190 | -Dgetusershell=busybox_getusershell \ |
| 191 | -Dsetusershell=busybox_setusershell \ |
| 192 | -Dendusershell=busybox_endusershell \ |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 193 | -Dgetmntent=busybox_getmntent \ |
| 194 | -Dgetmntent_r=busybox_getmntent_r \ |
| 195 | -Dgenerate_uuid=busybox_generate_uuid |
Chih-Wei Huang | 29cf8c2 | 2014-07-30 17:04:54 +0800 | [diff] [blame] | 196 | LOCAL_ASFLAGS := $(BUSYBOX_AFLAGS) |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 197 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
Tanguy Pruvot | 985c411 | 2011-10-10 21:28:29 +0200 | [diff] [blame] | 198 | LOCAL_MODULE := static_busybox |
Tanguy Pruvot | 8a6c2c2 | 2012-04-28 00:24:09 +0200 | [diff] [blame] | 199 | LOCAL_MODULE_STEM := busybox |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 200 | LOCAL_MODULE_TAGS := optional |
Tanguy Pruvot | bf57436 | 2014-07-23 20:20:10 +0200 | [diff] [blame] | 201 | LOCAL_STATIC_LIBRARIES := libclearsilverregex libc libcutils libm libuclibcrpc libselinux |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 202 | LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES |
codeworkx | 258ba0c | 2011-09-08 21:25:43 +0200 | [diff] [blame] | 203 | LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 204 | LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities |
Tanguy Pruvot | f641061 | 2014-07-24 23:21:48 +0200 | [diff] [blame] | 205 | LOCAL_ADDITIONAL_DEPENDENCIES := $(busybox_prepare_full) |
Iftekhar Rifat | ae4659e | 2015-10-08 20:03:22 +0600 | [diff] [blame] | 206 | LOCAL_PACK_MODULE_RELOCATIONS := false |
Tanguy Pruvot | 8aeb371 | 2011-06-30 08:59:26 +0200 | [diff] [blame] | 207 | include $(BUILD_EXECUTABLE) |