forked from openkylin/platform_build
Merge "Do not chmod the symlink target when a prebuilt binary is symlinked." am: 0de50208a3
am: c14071eb7d
am: 66990f95b3
am: 92378961f0
Original change: https://android-review.googlesource.com/c/platform/build/+/1439191 Change-Id: I92a2e5502f6eb15c60329ac008a7da7bc37577c4
This commit is contained in:
commit
5b167cc9a7
|
@ -150,11 +150,14 @@ endif
|
|||
$(LOCAL_BUILT_MODULE): $(LOCAL_PREBUILT_MODULE_FILE)
|
||||
ifeq ($(LOCAL_IS_HOST_MODULE) $(if $(filter EXECUTABLES SHARED_LIBRARIES NATIVE_TESTS,$(LOCAL_MODULE_CLASS)),true,),true true)
|
||||
$(copy-or-link-prebuilt-to-target)
|
||||
ifneq ($(filter EXECUTABLES NATIVE_TESTS,$(LOCAL_MODULE_CLASS)),)
|
||||
[ -x $@ ] || $(call echo-error,$@,Target of symlink is not executable)
|
||||
endif
|
||||
else
|
||||
$(transform-prebuilt-to-target)
|
||||
endif
|
||||
ifneq ($(filter EXECUTABLES NATIVE_TESTS,$(LOCAL_MODULE_CLASS)),)
|
||||
ifneq ($(filter EXECUTABLES NATIVE_TESTS,$(LOCAL_MODULE_CLASS)),)
|
||||
$(hide) chmod +x $@
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef LOCAL_IS_HOST_MODULE
|
||||
|
|
|
@ -59,11 +59,14 @@ endif
|
|||
$(LOCAL_BUILT_MODULE): $(LOCAL_PREBUILT_MODULE_FILE)
|
||||
ifeq ($(LOCAL_IS_HOST_MODULE) $(if $(filter EXECUTABLES SHARED_LIBRARIES NATIVE_TESTS,$(LOCAL_MODULE_CLASS)),true,),true true)
|
||||
$(copy-or-link-prebuilt-to-target)
|
||||
ifneq ($(filter EXECUTABLES NATIVE_TESTS,$(LOCAL_MODULE_CLASS)),)
|
||||
[ -x $@ ] || $(call echo-error,$@,Target of symlink is not executable)
|
||||
endif
|
||||
else
|
||||
$(transform-prebuilt-to-target)
|
||||
endif
|
||||
ifneq ($(filter EXECUTABLES NATIVE_TESTS,$(LOCAL_MODULE_CLASS)),)
|
||||
ifneq ($(filter EXECUTABLES NATIVE_TESTS,$(LOCAL_MODULE_CLASS)),)
|
||||
$(hide) chmod +x $@
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef LOCAL_IS_HOST_MODULE
|
||||
|
|
Loading…
Reference in New Issue