The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 2 | |
Ying Wang | 5748ee9 | 2013-07-23 18:03:37 -0700 | [diff] [blame] | 3 | ####################################### |
| 4 | # init.rc |
Ying Wang | 5748ee9 | 2013-07-23 18:03:37 -0700 | [diff] [blame] | 5 | include $(CLEAR_VARS) |
| 6 | |
| 7 | LOCAL_MODULE := init.rc |
| 8 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 9 | LOCAL_MODULE_CLASS := ETC |
| 10 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) |
| 11 | |
| 12 | include $(BUILD_PREBUILT) |
Evgenii Stepanov | 0d2dde5 | 2015-08-07 17:04:37 -0700 | [diff] [blame] | 13 | |
| 14 | ####################################### |
Mark Salyzyn | 7864e36 | 2016-01-28 09:32:53 -0800 | [diff] [blame] | 15 | # init-debug.rc |
| 16 | include $(CLEAR_VARS) |
| 17 | |
| 18 | LOCAL_MODULE := init-debug.rc |
| 19 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 20 | LOCAL_MODULE_CLASS := ETC |
| 21 | LOCAL_MODULE_TAGS := debug |
| 22 | LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/init |
| 23 | |
| 24 | include $(BUILD_PREBUILT) |
| 25 | |
| 26 | ####################################### |
Evgenii Stepanov | 0d2dde5 | 2015-08-07 17:04:37 -0700 | [diff] [blame] | 27 | # asan.options |
Ivan Krasin | 5039d8c | 2015-09-18 11:59:46 -0700 | [diff] [blame] | 28 | ifneq ($(filter address,$(SANITIZE_TARGET)),) |
Andreas Gampe | 8ccc1ad | 2016-06-22 20:05:59 -0700 | [diff] [blame] | 29 | |
Evgenii Stepanov | 0d2dde5 | 2015-08-07 17:04:37 -0700 | [diff] [blame] | 30 | include $(CLEAR_VARS) |
| 31 | |
| 32 | LOCAL_MODULE := asan.options |
| 33 | LOCAL_MODULE_CLASS := ETC |
| 34 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 35 | LOCAL_MODULE_PATH := $(TARGET_OUT) |
| 36 | |
| 37 | include $(BUILD_PREBUILT) |
Andreas Gampe | 8ccc1ad | 2016-06-22 20:05:59 -0700 | [diff] [blame] | 38 | |
Andreas Gampe | df5496a | 2017-03-21 19:36:48 -0700 | [diff] [blame] | 39 | # ASAN extration. |
| 40 | ASAN_EXTRACT_FILES := |
| 41 | ifeq ($(SANITIZE_TARGET_SYSTEM),true) |
| 42 | include $(CLEAR_VARS) |
| 43 | LOCAL_MODULE:= asan_extract |
| 44 | LOCAL_MODULE_TAGS := optional |
| 45 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 46 | LOCAL_SRC_FILES := asan_extract.sh |
| 47 | LOCAL_INIT_RC := asan_extract.rc |
| 48 | # We need bzip2 on device for extraction. |
| 49 | LOCAL_REQUIRED_MODULES := bzip2 |
| 50 | include $(BUILD_PREBUILT) |
| 51 | ASAN_EXTRACT_FILES := asan_extract |
| 52 | endif |
| 53 | |
Evgenii Stepanov | 0d2dde5 | 2015-08-07 17:04:37 -0700 | [diff] [blame] | 54 | endif |
| 55 | |
Ying Wang | 5748ee9 | 2013-07-23 18:03:37 -0700 | [diff] [blame] | 56 | ####################################### |
| 57 | # init.environ.rc |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 58 | |
Ying Wang | 5748ee9 | 2013-07-23 18:03:37 -0700 | [diff] [blame] | 59 | include $(CLEAR_VARS) |
| 60 | LOCAL_MODULE_CLASS := ETC |
| 61 | LOCAL_MODULE := init.environ.rc |
| 62 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 63 | |
Evgenii Stepanov | 0d2dde5 | 2015-08-07 17:04:37 -0700 | [diff] [blame] | 64 | EXPORT_GLOBAL_ASAN_OPTIONS := |
Ivan Krasin | 5039d8c | 2015-09-18 11:59:46 -0700 | [diff] [blame] | 65 | ifneq ($(filter address,$(SANITIZE_TARGET)),) |
Evgenii Stepanov | 0d2dde5 | 2015-08-07 17:04:37 -0700 | [diff] [blame] | 66 | EXPORT_GLOBAL_ASAN_OPTIONS := export ASAN_OPTIONS include=/system/asan.options |
Andreas Gampe | df5496a | 2017-03-21 19:36:48 -0700 | [diff] [blame] | 67 | LOCAL_REQUIRED_MODULES := asan.options $(ASAN_OPTIONS_FILES) $(ASAN_EXTRACT_FILES) |
Evgenii Stepanov | 0d2dde5 | 2015-08-07 17:04:37 -0700 | [diff] [blame] | 68 | endif |
Ryan Campbell | 0b36473 | 2017-02-21 17:27:02 -0800 | [diff] [blame] | 69 | |
| 70 | EXPORT_GLOBAL_GCOV_OPTIONS := |
| 71 | ifeq ($(NATIVE_COVERAGE),true) |
| 72 | EXPORT_GLOBAL_GCOV_OPTIONS := export GCOV_PREFIX /data/misc/gcov |
| 73 | endif |
| 74 | |
Ying Wang | 5748ee9 | 2013-07-23 18:03:37 -0700 | [diff] [blame] | 75 | # Put it here instead of in init.rc module definition, |
| 76 | # because init.rc is conditionally included. |
| 77 | # |
Daniel Rosenberg | 595003a | 2015-07-28 15:14:39 -0700 | [diff] [blame] | 78 | # create some directories (some are mount points) and symlinks |
Daniel Rosenberg | 52b5915 | 2015-10-28 13:13:37 -0700 | [diff] [blame] | 79 | LOCAL_POST_INSTALL_CMD := mkdir -p $(addprefix $(TARGET_ROOT_OUT)/, \ |
Bowgo Tsai | 144893e | 2017-09-12 17:56:37 +0800 | [diff] [blame] | 80 | sbin dev proc sys system data oem acct config storage mnt $(BOARD_ROOT_EXTRA_FOLDERS)); \ |
Elliott Hughes | ff1ef9f | 2017-12-06 08:59:02 -0800 | [diff] [blame] | 81 | ln -sf /system/bin $(TARGET_ROOT_OUT)/bin; \ |
Daniel Rosenberg | 595003a | 2015-07-28 15:14:39 -0700 | [diff] [blame] | 82 | ln -sf /system/etc $(TARGET_ROOT_OUT)/etc; \ |
Nick Kralevich | c4084c6 | 2016-11-19 12:09:33 -0800 | [diff] [blame] | 83 | ln -sf /data/user_de/0/com.android.shell/files/bugreports $(TARGET_ROOT_OUT)/bugreports; \ |
Daniel Rosenberg | 595003a | 2015-07-28 15:14:39 -0700 | [diff] [blame] | 84 | ln -sf /sys/kernel/debug $(TARGET_ROOT_OUT)/d; \ |
| 85 | ln -sf /storage/self/primary $(TARGET_ROOT_OUT)/sdcard |
Dan Willemsen | 0790431 | 2016-07-08 18:08:51 -0700 | [diff] [blame] | 86 | ifdef BOARD_USES_VENDORIMAGE |
Daniel Rosenberg | 52b5915 | 2015-10-28 13:13:37 -0700 | [diff] [blame] | 87 | LOCAL_POST_INSTALL_CMD += ; mkdir -p $(TARGET_ROOT_OUT)/vendor |
Junichi Uekawa | 07b6996 | 2015-11-12 07:49:47 +0900 | [diff] [blame] | 88 | else |
| 89 | LOCAL_POST_INSTALL_CMD += ; ln -sf /system/vendor $(TARGET_ROOT_OUT)/vendor |
Daniel Rosenberg | 595003a | 2015-07-28 15:14:39 -0700 | [diff] [blame] | 90 | endif |
Patrick Tjin | c6535a3 | 2016-05-13 14:22:14 -0700 | [diff] [blame] | 91 | ifdef BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE |
| 92 | LOCAL_POST_INSTALL_CMD += ; mkdir -p $(TARGET_ROOT_OUT)/cache |
| 93 | else |
| 94 | LOCAL_POST_INSTALL_CMD += ; ln -sf /data/cache $(TARGET_ROOT_OUT)/cache |
| 95 | endif |
Daniel Rosenberg | 52b5915 | 2015-10-28 13:13:37 -0700 | [diff] [blame] | 96 | ifdef BOARD_ROOT_EXTRA_SYMLINKS |
| 97 | # BOARD_ROOT_EXTRA_SYMLINKS is a list of <target>:<link_name>. |
| 98 | LOCAL_POST_INSTALL_CMD += $(foreach s, $(BOARD_ROOT_EXTRA_SYMLINKS),\ |
| 99 | $(eval p := $(subst :,$(space),$(s)))\ |
| 100 | ; mkdir -p $(dir $(TARGET_ROOT_OUT)/$(word 2,$(p))) \ |
| 101 | ; ln -sf $(word 1,$(p)) $(TARGET_ROOT_OUT)/$(word 2,$(p))) |
| 102 | endif |
Alex Deymo | e120b47 | 2016-02-29 17:23:36 -0800 | [diff] [blame] | 103 | # The A/B updater uses a top-level /postinstall directory to mount the new |
| 104 | # system before reboot. |
| 105 | ifeq ($(AB_OTA_UPDATER),true) |
| 106 | LOCAL_POST_INSTALL_CMD += ; mkdir -p $(TARGET_ROOT_OUT)/postinstall |
| 107 | endif |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 108 | |
Ying Wang | 5748ee9 | 2013-07-23 18:03:37 -0700 | [diff] [blame] | 109 | include $(BUILD_SYSTEM)/base_rules.mk |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 110 | |
Ying Wang | 7011a85 | 2014-06-14 09:11:02 -0700 | [diff] [blame] | 111 | # Regenerate init.environ.rc if PRODUCT_BOOTCLASSPATH has changed. |
Narayan Kamath | 1fabc35 | 2014-08-05 15:42:34 +0100 | [diff] [blame] | 112 | bcp_md5 := $(word 1, $(shell echo $(PRODUCT_BOOTCLASSPATH) $(PRODUCT_SYSTEM_SERVER_CLASSPATH) | $(MD5SUM))) |
Ying Wang | 7011a85 | 2014-06-14 09:11:02 -0700 | [diff] [blame] | 113 | bcp_dep := $(intermediates)/$(bcp_md5).bcp.dep |
| 114 | $(bcp_dep) : |
| 115 | $(hide) mkdir -p $(dir $@) && rm -rf $(dir $@)*.bcp.dep && touch $@ |
| 116 | |
| 117 | $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/init.environ.rc.in $(bcp_dep) |
Ying Wang | 5748ee9 | 2013-07-23 18:03:37 -0700 | [diff] [blame] | 118 | @echo "Generate: $< -> $@" |
| 119 | @mkdir -p $(dir $@) |
| 120 | $(hide) sed -e 's?%BOOTCLASSPATH%?$(PRODUCT_BOOTCLASSPATH)?g' $< >$@ |
Narayan Kamath | 1fabc35 | 2014-08-05 15:42:34 +0100 | [diff] [blame] | 121 | $(hide) sed -i -e 's?%SYSTEMSERVERCLASSPATH%?$(PRODUCT_SYSTEM_SERVER_CLASSPATH)?g' $@ |
Evgenii Stepanov | 1cbe3d9 | 2015-06-12 15:42:20 -0700 | [diff] [blame] | 122 | $(hide) sed -i -e 's?%EXPORT_GLOBAL_ASAN_OPTIONS%?$(EXPORT_GLOBAL_ASAN_OPTIONS)?g' $@ |
Ryan Campbell | 0b36473 | 2017-02-21 17:27:02 -0800 | [diff] [blame] | 123 | $(hide) sed -i -e 's?%EXPORT_GLOBAL_GCOV_OPTIONS%?$(EXPORT_GLOBAL_GCOV_OPTIONS)?g' $@ |
Ying Wang | 5748ee9 | 2013-07-23 18:03:37 -0700 | [diff] [blame] | 124 | |
Ying Wang | 7011a85 | 2014-06-14 09:11:02 -0700 | [diff] [blame] | 125 | bcp_md5 := |
| 126 | bcp_dep := |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame] | 127 | |
Justin Yun | 210ff94 | 2017-12-07 17:31:53 +0900 | [diff] [blame] | 128 | # If PLATFORM_VNDK_VERSION is defined and not "current", generate versioned |
| 129 | # module names for ld.config.txt, llndk.libraries.txt and vndksp.libraries.txt |
| 130 | # files. |
| 131 | define versioned_module_name |
| 132 | $(strip \ |
| 133 | $(if $(filter-out current,$(PLATFORM_VNDK_VERSION)), \ |
| 134 | $(basename $(LOCAL_MODULE)).$(PLATFORM_VNDK_VERSION)$(suffix $(LOCAL_MODULE)), \ |
| 135 | $(LOCAL_MODULE) \ |
| 136 | ) \ |
| 137 | ) |
| 138 | endef |
| 139 | |
Ying Wang | 5748ee9 | 2013-07-23 18:03:37 -0700 | [diff] [blame] | 140 | ####################################### |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame] | 141 | # ld.config.txt |
| 142 | include $(CLEAR_VARS) |
| 143 | |
Jiyong Park | ecc703c | 2017-08-04 19:08:06 +0900 | [diff] [blame] | 144 | _enforce_vndk_at_runtime := false |
| 145 | |
| 146 | ifdef BOARD_VNDK_VERSION |
| 147 | ifneq ($(BOARD_VNDK_RUNTIME_DISABLE),true) |
| 148 | _enforce_vndk_at_runtime := true |
| 149 | endif |
| 150 | endif |
| 151 | |
| 152 | ifeq ($(_enforce_vndk_at_runtime),true) |
| 153 | LOCAL_MODULE := ld.config.txt |
| 154 | LOCAL_MODULE_CLASS := ETC |
| 155 | LOCAL_MODULE_PATH := $(TARGET_OUT_ETC) |
Justin Yun | 210ff94 | 2017-12-07 17:31:53 +0900 | [diff] [blame] | 156 | LOCAL_MODULE_STEM := $(call versioned_module_name) |
Jiyong Park | ecc703c | 2017-08-04 19:08:06 +0900 | [diff] [blame] | 157 | include $(BUILD_SYSTEM)/base_rules.mk |
Jiyong Park | ecc703c | 2017-08-04 19:08:06 +0900 | [diff] [blame] | 158 | |
Jiyong Park | b52ff3e | 2017-12-12 12:13:38 +0900 | [diff] [blame] | 159 | llndk_libraries := $(call normalize-path-list,$(addsuffix .so,\ |
Jiyong Park | ad7ddd5 | 2017-12-07 09:59:48 +0900 | [diff] [blame] | 160 | $(filter-out $(VNDK_PRIVATE_LIBRARIES),$(LLNDK_LIBRARIES)))) |
Jiyong Park | ecc703c | 2017-08-04 19:08:06 +0900 | [diff] [blame] | 161 | |
Jiyong Park | b52ff3e | 2017-12-12 12:13:38 +0900 | [diff] [blame] | 162 | private_llndk_libraries := $(call normalize-path-list,$(addsuffix .so,\ |
Jiyong Park | ad7ddd5 | 2017-12-07 09:59:48 +0900 | [diff] [blame] | 163 | $(filter $(VNDK_PRIVATE_LIBRARIES),$(LLNDK_LIBRARIES)))) |
Jiyong Park | ecc703c | 2017-08-04 19:08:06 +0900 | [diff] [blame] | 164 | |
Jiyong Park | b52ff3e | 2017-12-12 12:13:38 +0900 | [diff] [blame] | 165 | vndk_sameprocess_libraries := $(call normalize-path-list,$(addsuffix .so,\ |
Jiyong Park | ad7ddd5 | 2017-12-07 09:59:48 +0900 | [diff] [blame] | 166 | $(filter-out $(VNDK_PRIVATE_LIBRARIES),$(VNDK_SAMEPROCESS_LIBRARIES)))) |
| 167 | |
Jiyong Park | b52ff3e | 2017-12-12 12:13:38 +0900 | [diff] [blame] | 168 | vndk_core_libraries := $(call normalize-path-list,$(addsuffix .so,\ |
Jiyong Park | ad7ddd5 | 2017-12-07 09:59:48 +0900 | [diff] [blame] | 169 | $(filter-out $(VNDK_PRIVATE_LIBRARIES),$(VNDK_CORE_LIBRARIES)))) |
Jiyong Park | ecc703c | 2017-08-04 19:08:06 +0900 | [diff] [blame] | 170 | |
Jiyong Park | b52ff3e | 2017-12-12 12:13:38 +0900 | [diff] [blame] | 171 | sanitizer_runtime_libraries := $(call normalize-path-list,$(addsuffix .so,\ |
Jiyong Park | 257de3d | 2017-08-31 16:42:23 +0900 | [diff] [blame] | 172 | $(ADDRESS_SANITIZER_RUNTIME_LIBRARY) \ |
| 173 | $(UBSAN_RUNTIME_LIBRARY) \ |
| 174 | $(TSAN_RUNTIME_LIBRARY) \ |
| 175 | $(2ND_ADDRESS_SANITIZER_RUNTIME_LIBRARY) \ |
| 176 | $(2ND_UBSAN_RUNTIME_LIBRARY) \ |
| 177 | $(2ND_TSAN_RUNTIME_LIBRARY))) |
| 178 | |
Jiyong Park | ecc703c | 2017-08-04 19:08:06 +0900 | [diff] [blame] | 179 | $(LOCAL_BUILT_MODULE): PRIVATE_LLNDK_LIBRARIES := $(llndk_libraries) |
Jiyong Park | ad7ddd5 | 2017-12-07 09:59:48 +0900 | [diff] [blame] | 180 | $(LOCAL_BUILT_MODULE): PRIVATE_PRIVATE_LLNDK_LIBRARIES := $(private_llndk_libraries) |
Jiyong Park | ecc703c | 2017-08-04 19:08:06 +0900 | [diff] [blame] | 181 | $(LOCAL_BUILT_MODULE): PRIVATE_VNDK_SAMEPROCESS_LIBRARIES := $(vndk_sameprocess_libraries) |
| 182 | $(LOCAL_BUILT_MODULE): PRIVATE_LLNDK_PRIVATE_LIBRARIES := $(llndk_private_libraries) |
| 183 | $(LOCAL_BUILT_MODULE): PRIVATE_VNDK_CORE_LIBRARIES := $(vndk_core_libraries) |
Jiyong Park | 257de3d | 2017-08-31 16:42:23 +0900 | [diff] [blame] | 184 | $(LOCAL_BUILT_MODULE): PRIVATE_SANITIZER_RUNTIME_LIBRARIES := $(sanitizer_runtime_libraries) |
Jiyong Park | 74857cc | 2017-10-13 16:36:49 +0900 | [diff] [blame] | 185 | $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/etc/ld.config.txt.in |
Jiyong Park | ecc703c | 2017-08-04 19:08:06 +0900 | [diff] [blame] | 186 | @echo "Generate: $< -> $@" |
| 187 | @mkdir -p $(dir $@) |
| 188 | $(hide) sed -e 's?%LLNDK_LIBRARIES%?$(PRIVATE_LLNDK_LIBRARIES)?g' $< >$@ |
Jiyong Park | ad7ddd5 | 2017-12-07 09:59:48 +0900 | [diff] [blame] | 189 | $(hide) sed -i -e 's?%PRIVATE_LLNDK_LIBRARIES%?$(PRIVATE_PRIVATE_LLNDK_LIBRARIES)?g' $@ |
Jiyong Park | ecc703c | 2017-08-04 19:08:06 +0900 | [diff] [blame] | 190 | $(hide) sed -i -e 's?%VNDK_SAMEPROCESS_LIBRARIES%?$(PRIVATE_VNDK_SAMEPROCESS_LIBRARIES)?g' $@ |
| 191 | $(hide) sed -i -e 's?%VNDK_CORE_LIBRARIES%?$(PRIVATE_VNDK_CORE_LIBRARIES)?g' $@ |
Jiyong Park | 257de3d | 2017-08-31 16:42:23 +0900 | [diff] [blame] | 192 | $(hide) sed -i -e 's?%SANITIZER_RUNTIME_LIBRARIES%?$(PRIVATE_SANITIZER_RUNTIME_LIBRARIES)?g' $@ |
Jiyong Park | ecc703c | 2017-08-04 19:08:06 +0900 | [diff] [blame] | 193 | |
Jiyong Park | ecc703c | 2017-08-04 19:08:06 +0900 | [diff] [blame] | 194 | llndk_libraries := |
| 195 | vndk_sameprocess_libraries := |
| 196 | vndk_core_libraries := |
Jiyong Park | 257de3d | 2017-08-31 16:42:23 +0900 | [diff] [blame] | 197 | sanitizer_runtime_libraries := |
Jiyong Park | ecc703c | 2017-08-04 19:08:06 +0900 | [diff] [blame] | 198 | else # if _enforce_vndk_at_runtime is not true |
| 199 | |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame] | 200 | LOCAL_MODULE := ld.config.txt |
Steven Moreland | 4e641e3 | 2017-11-09 11:21:13 -0800 | [diff] [blame] | 201 | ifeq ($(PRODUCT_TREBLE_LINKER_NAMESPACES)|$(SANITIZE_TARGET),true|) |
Justin Yun | 210ff94 | 2017-12-07 17:31:53 +0900 | [diff] [blame] | 202 | LOCAL_SRC_FILES := etc/ld.config.txt |
| 203 | LOCAL_MODULE_STEM := $(call versioned_module_name) |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame] | 204 | else |
Justin Yun | 210ff94 | 2017-12-07 17:31:53 +0900 | [diff] [blame] | 205 | LOCAL_SRC_FILES := etc/ld.config.legacy.txt |
| 206 | LOCAL_MODULE_STEM := $(LOCAL_MODULE) |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame] | 207 | endif |
| 208 | LOCAL_MODULE_CLASS := ETC |
| 209 | LOCAL_MODULE_PATH := $(TARGET_OUT_ETC) |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame] | 210 | include $(BUILD_PREBUILT) |
Jiyong Park | ecc703c | 2017-08-04 19:08:06 +0900 | [diff] [blame] | 211 | endif |
Jiyong Park | e04e4e7 | 2017-08-22 10:25:18 +0900 | [diff] [blame] | 212 | |
| 213 | ####################################### |
| 214 | # llndk.libraries.txt |
| 215 | include $(CLEAR_VARS) |
| 216 | LOCAL_MODULE := llndk.libraries.txt |
| 217 | LOCAL_MODULE_CLASS := ETC |
| 218 | LOCAL_MODULE_PATH := $(TARGET_OUT_ETC) |
Justin Yun | 210ff94 | 2017-12-07 17:31:53 +0900 | [diff] [blame] | 219 | LOCAL_MODULE_STEM := $(call versioned_module_name) |
Jiyong Park | e04e4e7 | 2017-08-22 10:25:18 +0900 | [diff] [blame] | 220 | include $(BUILD_SYSTEM)/base_rules.mk |
Jiyong Park | e04e4e7 | 2017-08-22 10:25:18 +0900 | [diff] [blame] | 221 | $(LOCAL_BUILT_MODULE): PRIVATE_LLNDK_LIBRARIES := $(LLNDK_LIBRARIES) |
Jiyong Park | 74857cc | 2017-10-13 16:36:49 +0900 | [diff] [blame] | 222 | $(LOCAL_BUILT_MODULE): |
Jiyong Park | e04e4e7 | 2017-08-22 10:25:18 +0900 | [diff] [blame] | 223 | @echo "Generate: $@" |
| 224 | @mkdir -p $(dir $@) |
| 225 | $(hide) echo -n > $@ |
| 226 | $(hide) $(foreach lib,$(PRIVATE_LLNDK_LIBRARIES), \ |
| 227 | echo $(lib).so >> $@;) |
| 228 | |
| 229 | ####################################### |
| 230 | # vndksp.libraries.txt |
| 231 | include $(CLEAR_VARS) |
| 232 | LOCAL_MODULE := vndksp.libraries.txt |
| 233 | LOCAL_MODULE_CLASS := ETC |
| 234 | LOCAL_MODULE_PATH := $(TARGET_OUT_ETC) |
Justin Yun | 210ff94 | 2017-12-07 17:31:53 +0900 | [diff] [blame] | 235 | LOCAL_MODULE_STEM := $(call versioned_module_name) |
Jiyong Park | e04e4e7 | 2017-08-22 10:25:18 +0900 | [diff] [blame] | 236 | include $(BUILD_SYSTEM)/base_rules.mk |
Jiyong Park | e04e4e7 | 2017-08-22 10:25:18 +0900 | [diff] [blame] | 237 | $(LOCAL_BUILT_MODULE): PRIVATE_VNDK_SAMEPROCESS_LIBRARIES := $(VNDK_SAMEPROCESS_LIBRARIES) |
Jiyong Park | 74857cc | 2017-10-13 16:36:49 +0900 | [diff] [blame] | 238 | $(LOCAL_BUILT_MODULE): |
Jiyong Park | e04e4e7 | 2017-08-22 10:25:18 +0900 | [diff] [blame] | 239 | @echo "Generate: $@" |
| 240 | @mkdir -p $(dir $@) |
| 241 | $(hide) echo -n > $@ |
| 242 | $(hide) $(foreach lib,$(PRIVATE_VNDK_SAMEPROCESS_LIBRARIES), \ |
| 243 | echo $(lib).so >> $@;) |