platform_build/core
Martin Stjernholm 49a4e9b52e Preserve symlinks in the Soong prebuilt install steps for host binaries
and shared libs.

If a prebuilt module file is a symlink in the .intermediates tree it is
preserved when copied to the final install location. This preserves
symlinks to prebuilt binaries, so that they are run from their prebuilt
source location and can find libraries in relative paths from there.

Symlinks are converted to absolute, to not fail if they are relative in
the source tree.

Test: m clean && m droid dist checkbuild
  with and without the change, then compare the lists of symlinks in
  the out/ trees
Test: build/soong/soong_ui.bash --make-mode \
    TARGET_PRODUCT=crosshatch_hwasan TARGET_BUILD_VARIANT=userdebug \
    droid SANITIZE_TARGET=hwaddress \
    continuous_instrumentation_tests_api_coverage \
    continuous_native_tests device-tests platform_tests
  check that libclang_rt.hwasan_static-aarch64-android.a isn't a
  symlink in out/target/product/crosshatch/obj
Bug: 145934348
Change-Id: I7600e5b0754f8ea6cd0ffc8e1ba6d39153f182aa
2020-09-01 00:24:54 +01:00
..
clang Remove unused mips workarounds. 2020-03-06 16:46:59 -08:00
combo Update language to meet Android's inclusive language guidance 2020-07-30 15:05:55 -07:00
tasks Remove name appendix of .TEST_CONFIG 2020-08-21 17:15:14 -07:00
LINUX_KERNEL_COPYING
Makefile Merge "Merged and dist lists of unused methods from R8" 2020-08-21 00:28:24 +00:00
OWNERS Move construct_context.sh from Make to Soong. 2020-06-25 14:48:08 +01:00
WINPTHREADS_COPYING
aapt2.mk Allow passing --legacy in LOCAL_AAPT_FLAGS 2019-06-22 13:03:09 -07:00
aapt_flags.mk
allowed_ndk_types.mk
android_manifest.mk Introduce TARGET_BUILD_UNBUNDLED_IMAGE 2020-08-03 15:47:09 +09:00
android_soong_config_vars.mk Export TARGET_ENABLE_MEDIADRM_64 to Soong. 2020-07-23 20:57:22 +00:00
app_certificate_validate.mk Use inclusive language in build/make 2020-06-11 14:37:54 -07:00
app_prebuilt_internal.mk Remove obsolete PDK build functionality 2020-08-11 01:12:01 +00:00
autogen_test_config.mk Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-07-15 17:29:42 +00:00
base_rules.mk Preserve symlinks in the Soong prebuilt install steps for host binaries 2020-09-01 00:24:54 +01:00
binary.mk Merge "Use the soong-built NDK CRT objects." 2020-08-12 22:01:27 +00:00
board_config.mk Merge changes I03bb00b0,I1cf9a0ef,I1c1b7d25 2020-08-20 22:21:45 +00:00
build-system.html Document unbundle build behavior 2020-08-06 18:25:51 +09:00
build_id.mk Make change and version bump to QQ3A.200805.001 2020-06-10 23:46:13 +00:00
build_rro_package.mk Do not remove RRO resources 2020-01-14 17:00:13 -08:00
cc_prebuilt_internal.mk Dedup lists of NDK libraries from Soong. 2020-06-30 12:46:41 -07:00
ccache.mk
check_elf_file.mk Remove empty rules for check_elf_files.timestamp 2020-04-28 14:56:06 -07:00
checktree
cleanbuild.mk
cleanspec.mk
clear_vars.mk Merge "Add extra_test_configs option support in mk" 2020-08-21 16:22:42 +00:00
config.mk Merge "Reland "Move some prebuilt build tool configs to Soong"" 2020-08-12 14:48:08 +00:00
config_sanitizers.mk [config_sanitizers] Fail if LOCAL_SANITIZE_BLACKLIST is used. 2020-08-11 11:00:53 -07:00
configure_module_stem.mk
copy_headers.mk Stop removing valid copy headers 2019-12-26 16:52:34 -08:00
cxx_stl_setup.mk Update make build system for dynamic unwinder. 2020-01-10 11:09:52 -08:00
definitions.mk Preserve symlinks in the Soong prebuilt install steps for host binaries 2020-09-01 00:24:54 +01:00
deprecation.mk Obsolete unused module types 2020-04-18 21:00:18 -07:00
device.mk
dex_preopt.mk Auto-generate dexpreopt boot image module 2020-07-14 15:49:08 +08:00
dex_preopt_config.mk Unset ENABLE_PREOPT when DISABLE_PREOPT is set 2020-08-04 10:39:57 +09:00
dex_preopt_libart.mk Auto-generate dexpreopt boot image module 2020-07-14 15:49:08 +08:00
dex_preopt_odex_install.mk Unset ENABLE_PREOPT when DISABLE_PREOPT is set 2020-08-04 10:39:57 +09:00
distdir.mk Remove obsolete PDK build functionality 2020-08-11 01:12:01 +00:00
dumpvar.mk Fix dump-vars output to handle quotes. 2019-05-30 20:59:50 -07:00
dynamic_binary.mk Give strip depfile a unique name, properly include it 2020-01-27 22:06:21 +00:00
empty_test_config.xml
envsetup.mk Introduce TARGET_BUILD_UNBUNDLED_IMAGE 2020-08-03 15:47:09 +09:00
executable.mk Remove TARGET_PREFER_32_BIT. 2020-06-08 16:36:52 -07:00
executable_internal.mk Use the soong-built NDK CRT objects. 2020-07-17 15:23:57 -07:00
executable_prefer_symlink.mk Remove TARGET_PREFER_32_BIT. 2020-06-08 16:36:52 -07:00
filter_symbols.sh
force_aapt2.mk
fuzz_test.mk Fix to avoid breaking aosp_x86 build 2019-09-20 12:43:02 -07:00
generate_enforce_rro.mk
goma.mk Disable goma for javac actions in Make 2020-03-05 20:46:47 +00:00
header_library.mk
header_library_internal.mk
host_dalvik_java_library.mk Use soong_zip instead of jar to generate .jar files in javac actions 2020-04-16 18:23:32 -07:00
host_dalvik_static_java_library.mk
host_executable.mk
host_executable_internal.mk Add dependencies on the toolchain (clang, etc) 2019-06-12 21:34:52 +00:00
host_java_library.mk Use soong_zip instead of jar to generate .jar files in javac actions 2020-04-16 18:23:32 -07:00
host_java_library_common.mk
host_prebuilt.mk
host_shared_library.mk Mark the current BUILD_* warnings as errors by default 2020-03-07 11:29:29 -08:00
host_shared_library_internal.mk
host_static_library.mk Mark the current BUILD_* warnings as errors by default 2020-03-07 11:29:29 -08:00
host_static_library_internal.mk
install_jni_libs.mk Rename product_services to system_ext 2019-07-09 08:57:19 +00:00
install_jni_libs_internal.mk Mark jni libs as REQUIRED by their app 2020-06-16 16:13:03 +08:00
instrumentation_test_config_template.xml Update auto-gen test config template with PARAMETERIZED_STRINGS 2020-05-15 11:43:43 +08:00
jacoco.mk Use unzip -DD 2020-07-12 05:38:03 +00:00
java.mk Remove obsolete PDK build functionality 2020-08-11 01:12:01 +00:00
java_common.mk Introduce TARGET_BUILD_UNBUNDLED_IMAGE 2020-08-03 15:47:09 +09:00
java_host_test_config_template.xml Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-07-15 17:29:42 +00:00
java_library.mk Remove support for stripping dex. 2019-10-21 09:36:45 +01:00
java_prebuilt_internal.mk Introduce TARGET_BUILD_UNBUNDLED_IMAGE 2020-08-03 15:47:09 +09:00
java_renderscript.mk Introduce TARGET_BUILD_UNBUNDLED_IMAGE 2020-08-03 15:47:09 +09:00
java_test_config_template.xml Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-07-15 17:29:42 +00:00
jetifier.mk
line_coverage.mk Update language to meet Android's inclusive language guidance 2020-07-30 15:05:55 -07:00
link_type.mk More performance improvements 2020-06-08 19:10:23 -07:00
local_systemsdk.mk Exempt RRO from the restriction on API level 2020-04-27 22:36:21 +09:00
local_vndk.mk Restore "Linktype check for native:product" 2020-01-22 00:16:25 +00:00
main.mk Merge "Merged and dist lists of unused methods from R8" 2020-08-21 00:28:24 +00:00
misc_prebuilt_internal.mk Add RENDERSCRIPT_BITCODE to misc_prebuilt_internal whitelist. 2019-11-11 15:21:06 -08:00
module_arch_supported.mk
multi_prebuilt.mk
multilib.mk
native_benchmark_test_config_template.xml Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-07-15 17:29:42 +00:00
native_host_test_config_template.xml Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-07-15 17:29:42 +00:00
native_test.mk
native_test_config_template.xml Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-07-15 17:29:42 +00:00
ninja_config.mk Remove obsolete PDK build functionality 2020-08-11 01:12:01 +00:00
node_fns.mk
notice_files.mk Revert "Revert "Use sdk variant of Soong modules when LOCAL_SDK_..." 2020-04-07 16:50:32 +00:00
pack_dyn_relocs_setup.mk Explicitly add lld's relr relocation flags for Android Pie and above 2019-07-30 22:36:29 -07:00
package.mk Remove TARGET_PREFER_32_BIT. 2020-06-08 16:36:52 -07:00
package_internal.mk Remove obsolete PDK build functionality 2020-08-11 01:12:01 +00:00
pathmap.mk Fix up recovery_text_res 2020-05-27 19:37:03 -07:00
phony_package.mk
prebuilt.mk Remove TARGET_TRANSLATE_2ND_ARCH 2019-09-18 16:23:04 +00:00
prebuilt_internal.mk Add RENDERSCRIPT_BITCODE to misc prebuilt whitelist. 2019-11-11 09:30:38 -08:00
process_wrapper.sh
process_wrapper_gdb.cmds
process_wrapper_gdb.sh
product-graph.mk Ensure current product use PRODUCT_* vars directly 2019-10-30 14:29:42 +00:00
product.mk Add odm_dlkm partition. 2020-07-16 12:34:29 -07:00
product_config.mk Update language to meet Android's inclusive language guidance 2020-07-30 15:05:55 -07:00
proguard.flags
proguard.jacoco.flags
proguard_basic_keeps.flags Keep proguard fields for lite runtime 2019-09-05 14:42:14 -07:00
project_definitions.mk
python_binary_host_test_config_template.xml
rbe.mk Set RBE_DIR default value to point to prebuilts in tree. 2020-08-13 11:49:30 -04:00
robolectric_test_config_template.xml Fixes a few things with the robolectric autoconfig 2020-07-28 07:00:06 +00:00
root.mk
rust_device_test_config_template.xml Add rust_device_test_config_template.xml 2019-12-02 17:44:47 +00:00
rust_host_test_config_template.xml Add rust_host_test_config_template.xml 2019-11-14 09:57:13 -08:00
sdk_check.mk Use inclusive language in build/make 2020-06-11 14:37:54 -07:00
sdk_font.mk
shared_library.mk Mark the current BUILD_* warnings as errors by default 2020-03-07 11:29:29 -08:00
shared_library_internal.mk Use the soong-built NDK CRT objects. 2020-07-17 15:23:57 -07:00
shell_test_config_template.xml Add test config template for sh_test. 2020-06-04 10:35:53 -07:00
soong_android_app_set.mk Update language to comply with inclusive guidance 2020-07-28 15:59:38 -07:00
soong_app_prebuilt.mk Merged and dist lists of unused methods from R8 2020-08-17 19:31:22 +00:00
soong_cc_prebuilt.mk Preserve symlinks in the Soong prebuilt install steps for host binaries 2020-09-01 00:24:54 +01:00
soong_config.mk Remove obsolete PDK build functionality 2020-08-11 01:12:01 +00:00
soong_droiddoc_prebuilt.mk Remove _API_FILE variables 2020-04-17 20:27:41 +01:00
soong_java_prebuilt.mk Merged and dist lists of unused methods from R8 2020-08-17 19:31:22 +00:00
soong_rust_prebuilt.mk Preserve symlinks in the Soong prebuilt install steps for host binaries 2020-09-01 00:24:54 +01:00
static_java_library.mk Introduce TARGET_BUILD_UNBUNDLED_IMAGE 2020-08-03 15:47:09 +09:00
static_library.mk Mark the current BUILD_* warnings as errors by default 2020-03-07 11:29:29 -08:00
static_library_internal.mk Package coverage files as a zip. 2020-02-03 19:00:36 +00:00
suite_host_config.mk Generalize vts config module for other Suites 2019-10-18 18:28:23 +00:00
support_libraries.mk
sysprop.mk Include vendor overrides in system prop if not split 2020-08-13 18:42:43 -07:00
target_test_internal.mk
use_lld_setup.mk
verify_uses_libraries.sh
version_defaults.mk Merge QQ3A.200805.001 2020-08-05 17:38:39 +00:00