Compare commits
14 commits
3d9c9aacdb
...
618167a030
Author | SHA1 | Date | |
---|---|---|---|
|
618167a030 | ||
|
3dccf63227 | ||
|
14ddf2da08 | ||
|
3801be1f0a | ||
|
2924185362 | ||
|
2a93e82e50 | ||
|
e44ca8f64f | ||
|
2a6ea62de4 | ||
|
9ababba9f7 | ||
|
70167ae22f | ||
|
61b7b801b6 | ||
|
05ff189cd0 | ||
|
57f681ac39 | ||
|
38db97dd09 |
14 changed files with 96 additions and 19 deletions
|
@ -2142,9 +2142,11 @@ $(if $(BOARD_$(_var)IMAGE_SQUASHFS_COMPRESSOR),$(hide) echo "$(1)_squashfs_compr
|
||||||
$(if $(BOARD_$(_var)IMAGE_SQUASHFS_COMPRESSOR_OPT),$(hide) echo "$(1)_squashfs_compressor_opt=$(BOARD_$(_var)IMAGE_SQUASHFS_COMPRESSOR_OPT)" >> $(2))
|
$(if $(BOARD_$(_var)IMAGE_SQUASHFS_COMPRESSOR_OPT),$(hide) echo "$(1)_squashfs_compressor_opt=$(BOARD_$(_var)IMAGE_SQUASHFS_COMPRESSOR_OPT)" >> $(2))
|
||||||
$(if $(BOARD_$(_var)IMAGE_SQUASHFS_DISABLE_4K_ALIGN),$(hide) echo "$(1)_squashfs_disable_4k_align=$(BOARD_$(_var)IMAGE_SQUASHFS_DISABLE_4K_ALIGN)" >> $(2))
|
$(if $(BOARD_$(_var)IMAGE_SQUASHFS_DISABLE_4K_ALIGN),$(hide) echo "$(1)_squashfs_disable_4k_align=$(BOARD_$(_var)IMAGE_SQUASHFS_DISABLE_4K_ALIGN)" >> $(2))
|
||||||
$(if $(PRODUCT_$(_var)_BASE_FS_PATH),$(hide) echo "$(1)_base_fs_file=$(PRODUCT_$(_var)_BASE_FS_PATH)" >> $(2))
|
$(if $(PRODUCT_$(_var)_BASE_FS_PATH),$(hide) echo "$(1)_base_fs_file=$(PRODUCT_$(_var)_BASE_FS_PATH)" >> $(2))
|
||||||
$(eval _size := $(BOARD_$(_var)IMAGE_PARTITION_SIZE))
|
$(if $(filter true,$(AB_OTA_UPDATER)),,\
|
||||||
$(eval _reserved := $(BOARD_$(_var)IMAGE_PARTITION_RESERVED_SIZE))
|
$(eval _size := $(BOARD_$(_var)IMAGE_PARTITION_SIZE))
|
||||||
$(eval _headroom := $(PRODUCT_$(_var)_HEADROOM))
|
$(eval _reserved := $(BOARD_$(_var)IMAGE_PARTITION_RESERVED_SIZE))
|
||||||
|
$(eval _headroom := $(PRODUCT_$(_var)_HEADROOM))
|
||||||
|
)
|
||||||
$(if $(or $(_size), $(_reserved), $(_headroom)),,
|
$(if $(or $(_size), $(_reserved), $(_headroom)),,
|
||||||
$(hide) echo "$(1)_disable_sparse=true" >> $(2))
|
$(hide) echo "$(1)_disable_sparse=true" >> $(2))
|
||||||
$(call add-common-flags-to-image-props,$(1),$(2))
|
$(call add-common-flags-to-image-props,$(1),$(2))
|
||||||
|
@ -6296,6 +6298,10 @@ ifdef BUILDING_VENDOR_BOOT_IMAGE
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef BUILDING_VENDOR_KERNEL_BOOT_IMAGE
|
||||||
|
$(BUILT_TARGET_FILES_DIR): $(INTERNAL_VENDOR_KERNEL_RAMDISK_FILES)
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef BUILDING_RECOVERY_IMAGE
|
ifdef BUILDING_RECOVERY_IMAGE
|
||||||
# TODO(b/30414428): Can't depend on INTERNAL_RECOVERYIMAGE_FILES alone like other
|
# TODO(b/30414428): Can't depend on INTERNAL_RECOVERYIMAGE_FILES alone like other
|
||||||
# BUILT_TARGET_FILES_PACKAGE dependencies because currently there're cp/rsync/rm
|
# BUILT_TARGET_FILES_PACKAGE dependencies because currently there're cp/rsync/rm
|
||||||
|
|
|
@ -44,6 +44,26 @@ endif
|
||||||
|
|
||||||
my_soong_problems :=
|
my_soong_problems :=
|
||||||
|
|
||||||
|
# Automatically replace the old-style kernel header include with a dependency
|
||||||
|
# on the generated_kernel_headers header library
|
||||||
|
ifneq (,$(findstring $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include,$(LOCAL_C_INCLUDES)))
|
||||||
|
LOCAL_C_INCLUDES := $(patsubst $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include,,$(LOCAL_C_INCLUDES))
|
||||||
|
LOCAL_HEADER_LIBRARIES += generated_kernel_headers
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Some qcom binaries use this weird -isystem include...
|
||||||
|
ifneq (,$(findstring $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include,$(LOCAL_CFLAGS)))
|
||||||
|
LOCAL_CFLAGS := $(patsubst -isystem $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include,,$(LOCAL_CFLAGS))
|
||||||
|
LOCAL_HEADER_LIBRARIES += generated_kernel_headers
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Remove KERNEL_OBJ/usr from any LOCAL_ADDITIONAL_DEPENDENCIES, we will
|
||||||
|
# just include generated_kernel_headers which already has the proper
|
||||||
|
# dependency
|
||||||
|
ifneq (,$(findstring $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr,$(LOCAL_ADDITIONAL_DEPENDENCIES)))
|
||||||
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(patsubst $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr,,$(LOCAL_ADDITIONAL_DEPENDENCIES))
|
||||||
|
endif
|
||||||
|
|
||||||
# The following LOCAL_ variables will be modified in this file.
|
# The following LOCAL_ variables will be modified in this file.
|
||||||
# Because the same LOCAL_ variables may be used to define modules for both 1st arch and 2nd arch,
|
# Because the same LOCAL_ variables may be used to define modules for both 1st arch and 2nd arch,
|
||||||
# we can't modify them in place.
|
# we can't modify them in place.
|
||||||
|
|
|
@ -440,6 +440,10 @@ endif
|
||||||
# See envsetup.mk for a description of SCAN_EXCLUDE_DIRS
|
# See envsetup.mk for a description of SCAN_EXCLUDE_DIRS
|
||||||
FIND_LEAVES_EXCLUDES := $(addprefix --prune=, $(SCAN_EXCLUDE_DIRS) .repo .git)
|
FIND_LEAVES_EXCLUDES := $(addprefix --prune=, $(SCAN_EXCLUDE_DIRS) .repo .git)
|
||||||
|
|
||||||
|
ifneq ($(TEQUILA_BUILD),)
|
||||||
|
include vendor/tequila/config/BoardConfigtequila.mk
|
||||||
|
endif
|
||||||
|
|
||||||
# The build system exposes several variables for where to find the kernel
|
# The build system exposes several variables for where to find the kernel
|
||||||
# headers:
|
# headers:
|
||||||
# TARGET_DEVICE_KERNEL_HEADERS is automatically created for the current
|
# TARGET_DEVICE_KERNEL_HEADERS is automatically created for the current
|
||||||
|
@ -1249,6 +1253,14 @@ include $(BUILD_SYSTEM)/sysprop_config.mk
|
||||||
# consistency with those defined in BoardConfig.mk files.
|
# consistency with those defined in BoardConfig.mk files.
|
||||||
include $(BUILD_SYSTEM)/android_soong_config_vars.mk
|
include $(BUILD_SYSTEM)/android_soong_config_vars.mk
|
||||||
|
|
||||||
|
ifneq ($(TEQUILA_BUILD),)
|
||||||
|
ifneq ($(wildcard device/tequila/sepolicy/common/sepolicy.mk),)
|
||||||
|
## We need to be sure the global selinux policies are included
|
||||||
|
## last, to avoid accidental resetting by device configs
|
||||||
|
$(eval include device/tequila/sepolicy/common/sepolicy.mk)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(CALLED_FROM_SETUP),true)
|
ifeq ($(CALLED_FROM_SETUP),true)
|
||||||
include $(BUILD_SYSTEM)/ninja_config.mk
|
include $(BUILD_SYSTEM)/ninja_config.mk
|
||||||
include $(BUILD_SYSTEM)/soong_config.mk
|
include $(BUILD_SYSTEM)/soong_config.mk
|
||||||
|
@ -1258,6 +1270,11 @@ endif
|
||||||
DEFAULT_DATA_OUT_MODULES := ltp $(ltp_packages)
|
DEFAULT_DATA_OUT_MODULES := ltp $(ltp_packages)
|
||||||
.KATI_READONLY := DEFAULT_DATA_OUT_MODULES
|
.KATI_READONLY := DEFAULT_DATA_OUT_MODULES
|
||||||
|
|
||||||
|
ifneq ($(TEQUILA_BUILD),)
|
||||||
|
# Include any vendor specific config.mk file
|
||||||
|
-include vendor/*/build/core/config.mk
|
||||||
|
endif
|
||||||
|
|
||||||
include $(BUILD_SYSTEM)/dumpvar.mk
|
include $(BUILD_SYSTEM)/dumpvar.mk
|
||||||
|
|
||||||
ifdef BOARD_VNDK_VERSION
|
ifdef BOARD_VNDK_VERSION
|
||||||
|
|
|
@ -209,6 +209,12 @@ endif
|
||||||
|
|
||||||
BUILD_WITHOUT_PV := true
|
BUILD_WITHOUT_PV := true
|
||||||
|
|
||||||
|
ifneq ($(TEQUILA_BUILD),)
|
||||||
|
# ------------------------------------------------------------
|
||||||
|
# Include vendor specific additions to build properties
|
||||||
|
-include vendor/tequila/build/core/main.mk
|
||||||
|
endif
|
||||||
|
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
# Define a function that, given a list of module tags, returns
|
# Define a function that, given a list of module tags, returns
|
||||||
# non-empty if that module should be installed in /system.
|
# non-empty if that module should be installed in /system.
|
||||||
|
|
|
@ -92,3 +92,7 @@ FRAMEWORKS_BASE_SUBDIRS := \
|
||||||
#
|
#
|
||||||
FRAMEWORKS_BASE_JAVA_SRC_DIRS := \
|
FRAMEWORKS_BASE_JAVA_SRC_DIRS := \
|
||||||
$(addprefix frameworks/base/,$(FRAMEWORKS_BASE_SUBDIRS))
|
$(addprefix frameworks/base/,$(FRAMEWORKS_BASE_SUBDIRS))
|
||||||
|
|
||||||
|
ifneq ($(TEQUILA_BUILD),)
|
||||||
|
-include vendor/tequila/build/core/pathmap.mk
|
||||||
|
endif
|
||||||
|
|
|
@ -550,12 +550,15 @@ endef
|
||||||
|
|
||||||
# Makes including non-existent modules in PRODUCT_PACKAGES an error.
|
# Makes including non-existent modules in PRODUCT_PACKAGES an error.
|
||||||
# $(1): list of non-existent modules to allow.
|
# $(1): list of non-existent modules to allow.
|
||||||
|
define enforce-product-packages-exist-internal
|
||||||
|
$(eval PRODUCTS.$(1).PRODUCT_ENFORCE_PACKAGES_EXIST := true) \
|
||||||
|
$(eval PRODUCTS.$(1).PRODUCT_ENFORCE_PACKAGES_EXIST_ALLOW_LIST := $(2)) \
|
||||||
|
$(eval .KATI_READONLY := PRODUCTS.$(1).PRODUCT_ENFORCE_PACKAGES_EXIST) \
|
||||||
|
$(eval .KATI_READONLY := PRODUCTS.$(1).PRODUCT_ENFORCE_PACKAGES_EXIST_ALLOW_LIST)
|
||||||
|
endef
|
||||||
define enforce-product-packages-exist
|
define enforce-product-packages-exist
|
||||||
$(eval current_mk := $(strip $(word 1,$(_include_stack)))) \
|
$(eval current_mk := $(strip $(word 1,$(_include_stack)))) \
|
||||||
$(eval PRODUCTS.$(current_mk).PRODUCT_ENFORCE_PACKAGES_EXIST := true) \
|
$(enforce-product-packages-exist-internal,$(current_mk),$(1))
|
||||||
$(eval PRODUCTS.$(current_mk).PRODUCT_ENFORCE_PACKAGES_EXIST_ALLOW_LIST := $(1)) \
|
|
||||||
$(eval .KATI_READONLY := PRODUCTS.$(current_mk).PRODUCT_ENFORCE_PACKAGES_EXIST) \
|
|
||||||
$(eval .KATI_READONLY := PRODUCTS.$(current_mk).PRODUCT_ENFORCE_PACKAGES_EXIST_ALLOW_LIST)
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -597,9 +600,11 @@ _readonly_late_variables := \
|
||||||
|
|
||||||
# Modified internally in the build system
|
# Modified internally in the build system
|
||||||
_readonly_late_variables += \
|
_readonly_late_variables += \
|
||||||
|
PRODUCT_CFI_INCLUDE_PATHS \
|
||||||
PRODUCT_COPY_FILES \
|
PRODUCT_COPY_FILES \
|
||||||
PRODUCT_DEX_PREOPT_NEVER_ALLOW_STRIPPING \
|
PRODUCT_DEX_PREOPT_NEVER_ALLOW_STRIPPING \
|
||||||
PRODUCT_DEX_PREOPT_BOOT_FLAGS \
|
PRODUCT_DEX_PREOPT_BOOT_FLAGS \
|
||||||
|
PRODUCT_SOONG_NAMESPACES
|
||||||
|
|
||||||
_readonly_early_variables := $(filter-out $(_readonly_late_variables),$(_product_var_list))
|
_readonly_early_variables := $(filter-out $(_readonly_late_variables),$(_product_var_list))
|
||||||
|
|
||||||
|
|
17
envsetup.sh
17
envsetup.sh
|
@ -53,8 +53,8 @@ function build_build_var_cache()
|
||||||
{
|
{
|
||||||
local T=$(gettop)
|
local T=$(gettop)
|
||||||
# Grep out the variable names from the script.
|
# Grep out the variable names from the script.
|
||||||
cached_vars=(`cat $T/build/envsetup.sh | tr '()' ' ' | awk '{for(i=1;i<=NF;i++) if($i~/_get_build_var_cached/) print $(i+1)}' | sort -u | tr '\n' ' '`)
|
cached_vars=(`cat $T/build/envsetup.sh $T/vendor/tequila/build/envsetup.sh | tr '()' ' ' | awk '{for(i=1;i<=NF;i++) if($i~/_get_build_var_cached/) print $(i+1)}' | sort -u | tr '\n' ' '`)
|
||||||
cached_abs_vars=(`cat $T/build/envsetup.sh | tr '()' ' ' | awk '{for(i=1;i<=NF;i++) if($i~/_get_abs_build_var_cached/) print $(i+1)}' | sort -u | tr '\n' ' '`)
|
cached_abs_vars=(`cat $T/build/envsetup.sh $T/vendor/tequila/build/envsetup.sh | tr '()' ' ' | awk '{for(i=1;i<=NF;i++) if($i~/_get_abs_build_var_cached/) print $(i+1)}' | sort -u | tr '\n' ' '`)
|
||||||
# Call the build system to dump the "<val>=<value>" pairs as a shell script.
|
# Call the build system to dump the "<val>=<value>" pairs as a shell script.
|
||||||
build_dicts_script=`\builtin cd $T; build/soong/soong_ui.bash --dumpvars-mode \
|
build_dicts_script=`\builtin cd $T; build/soong/soong_ui.bash --dumpvars-mode \
|
||||||
--vars="${cached_vars[*]}" \
|
--vars="${cached_vars[*]}" \
|
||||||
|
@ -324,8 +324,6 @@ function set_stuff_for_environment()
|
||||||
{
|
{
|
||||||
set_lunch_paths
|
set_lunch_paths
|
||||||
set_sequence_number
|
set_sequence_number
|
||||||
|
|
||||||
export ANDROID_BUILD_TOP=$(gettop)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function set_sequence_number()
|
function set_sequence_number()
|
||||||
|
@ -524,8 +522,17 @@ function _lunch_meat()
|
||||||
# Note this is the string "release", not the value of the variable.
|
# Note this is the string "release", not the value of the variable.
|
||||||
export TARGET_BUILD_TYPE=release
|
export TARGET_BUILD_TYPE=release
|
||||||
|
|
||||||
|
local uses_qcom_hardware=$(get_build_var BOARD_USES_QCOM_HARDWARE)
|
||||||
|
if [ "$uses_qcom_hardware" = true ]; then
|
||||||
|
export INLINE_KERNEL_BUILDING=true
|
||||||
|
else
|
||||||
|
unset INLINE_KERNEL_BUILDING
|
||||||
|
fi
|
||||||
|
|
||||||
[[ -n "${ANDROID_QUIET_BUILD:-}" ]] || echo
|
[[ -n "${ANDROID_QUIET_BUILD:-}" ]] || echo
|
||||||
|
|
||||||
|
fixup_common_out_dir
|
||||||
|
|
||||||
set_stuff_for_environment
|
set_stuff_for_environment
|
||||||
[[ -n "${ANDROID_QUIET_BUILD:-}" ]] || printconfig
|
[[ -n "${ANDROID_QUIET_BUILD:-}" ]] || printconfig
|
||||||
|
|
||||||
|
@ -1178,4 +1185,6 @@ set_global_paths
|
||||||
source_vendorsetup
|
source_vendorsetup
|
||||||
addcompletions
|
addcompletions
|
||||||
|
|
||||||
|
export ANDROID_BUILD_TOP=$(gettop)
|
||||||
|
|
||||||
|
. $ANDROID_BUILD_TOP/vendor/tequila/build/envsetup.sh
|
||||||
|
|
|
@ -19,7 +19,9 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_product.mk)
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_product.mk)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_product.mk)
|
||||||
|
|
||||||
# Default AOSP sounds
|
# Default AOSP sounds
|
||||||
|
ifeq ($(TEQUILA_BUILD),)
|
||||||
$(call inherit-product-if-exists, frameworks/base/data/sounds/AllAudio.mk)
|
$(call inherit-product-if-exists, frameworks/base/data/sounds/AllAudio.mk)
|
||||||
|
endif
|
||||||
|
|
||||||
# Additional settings used in all AOSP builds
|
# Additional settings used in all AOSP builds
|
||||||
PRODUCT_PRODUCT_PROPERTIES += \
|
PRODUCT_PRODUCT_PROPERTIES += \
|
||||||
|
@ -37,5 +39,7 @@ PRODUCT_PACKAGES += \
|
||||||
|
|
||||||
# Telephony:
|
# Telephony:
|
||||||
# Provide a APN configuration to GSI product
|
# Provide a APN configuration to GSI product
|
||||||
|
ifeq ($(TEQUILA_BUILD),)
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
device/sample/etc/apns-full-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
|
device/sample/etc/apns-full-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
|
||||||
|
endif
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
# Base modules and settings for recovery.
|
# Base modules and settings for recovery.
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
adbd.recovery \
|
adbd.recovery \
|
||||||
android.hardware.health@2.0-impl-default.recovery \
|
|
||||||
build_flag_vendor \
|
build_flag_vendor \
|
||||||
cgroups.recovery.json \
|
cgroups.recovery.json \
|
||||||
charger.recovery \
|
charger.recovery \
|
||||||
|
|
|
@ -183,5 +183,3 @@ PRODUCT_SYSTEM_PROPERTIES += \
|
||||||
dalvik.vm.image-dex2oat-Xmx=64m \
|
dalvik.vm.image-dex2oat-Xmx=64m \
|
||||||
dalvik.vm.dex2oat-Xms=64m \
|
dalvik.vm.dex2oat-Xms=64m \
|
||||||
dalvik.vm.dex2oat-Xmx=512m \
|
dalvik.vm.dex2oat-Xmx=512m \
|
||||||
|
|
||||||
PRODUCT_ENABLE_UFFD_GC := default
|
|
||||||
|
|
|
@ -45,7 +45,9 @@ PRODUCT_VENDOR_PROPERTIES := \
|
||||||
PRODUCT_LOCALES := en_US
|
PRODUCT_LOCALES := en_US
|
||||||
|
|
||||||
# Get some sounds
|
# Get some sounds
|
||||||
|
ifeq ($(TEQUILA_BUILD),)
|
||||||
$(call inherit-product-if-exists, frameworks/base/data/sounds/AllAudio.mk)
|
$(call inherit-product-if-exists, frameworks/base/data/sounds/AllAudio.mk)
|
||||||
|
endif
|
||||||
|
|
||||||
# Get a list of languages.
|
# Get a list of languages.
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
|
||||||
|
|
|
@ -24,8 +24,12 @@ PRODUCT_VENDOR_PROPERTIES := \
|
||||||
ro.com.android.dataroaming?=true
|
ro.com.android.dataroaming?=true
|
||||||
|
|
||||||
PRODUCT_COPY_FILES := \
|
PRODUCT_COPY_FILES := \
|
||||||
device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml \
|
|
||||||
frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
|
frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
|
||||||
|
|
||||||
|
ifeq ($(TEQUILA_BUILD),)
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml
|
||||||
|
endif
|
||||||
|
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base.mk)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base.mk)
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony.mk)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony.mk)
|
||||||
|
|
|
@ -45,7 +45,6 @@ PRODUCT_PACKAGES += \
|
||||||
CertInstaller \
|
CertInstaller \
|
||||||
CredentialManager \
|
CredentialManager \
|
||||||
DeviceAsWebcam \
|
DeviceAsWebcam \
|
||||||
DeviceDiagnostics \
|
|
||||||
DocumentsUI \
|
DocumentsUI \
|
||||||
DownloadProviderUi \
|
DownloadProviderUi \
|
||||||
EasterEgg \
|
EasterEgg \
|
||||||
|
|
|
@ -339,11 +339,15 @@ locate(FileRecord* rec, const vector<string>& search)
|
||||||
}
|
}
|
||||||
|
|
||||||
int err;
|
int err;
|
||||||
|
string full;
|
||||||
for (vector<string>::const_iterator it=search.begin();
|
for (vector<string>::const_iterator it=search.begin();
|
||||||
it!=search.end(); it++) {
|
it!=search.end(); it++) {
|
||||||
string full = path_append(*it, rec->sourceName);
|
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
if (rec->sourceName.length() != 0 && rec->sourceName[0] == '/')
|
||||||
|
full = rec->sourceName;
|
||||||
|
else
|
||||||
|
full = path_append(*it, rec->sourceName);
|
||||||
|
|
||||||
err = stat(full.c_str(), &st);
|
err = stat(full.c_str(), &st);
|
||||||
if (err == 0) {
|
if (err == 0) {
|
||||||
rec->sourceBase = *it;
|
rec->sourceBase = *it;
|
||||||
|
@ -356,7 +360,7 @@ locate(FileRecord* rec, const vector<string>& search)
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "%s:%d: couldn't locate source file: %s\n",
|
fprintf(stderr, "%s:%d: couldn't locate source file: %s\n",
|
||||||
rec->listFile.c_str(), rec->listLine, rec->sourceName.c_str());
|
rec->listFile.c_str(), rec->listLine, full.c_str());
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue