Compare commits
9 commits
618167a030
...
9061de7a60
Author | SHA1 | Date | |
---|---|---|---|
|
9061de7a60 | ||
|
42ab2790f8 | ||
|
c8feb79c73 | ||
|
107c120b77 | ||
|
d82693def7 | ||
|
51bd6dd955 | ||
|
e937a902a4 | ||
|
3c1a51f132 | ||
|
6e20526569 |
8 changed files with 50 additions and 14 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_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))
|
||||
$(eval _size := $(BOARD_$(_var)IMAGE_PARTITION_SIZE))
|
||||
$(eval _reserved := $(BOARD_$(_var)IMAGE_PARTITION_RESERVED_SIZE))
|
||||
$(eval _headroom := $(PRODUCT_$(_var)_HEADROOM))
|
||||
$(if $(filter true,$(AB_OTA_UPDATER)),,\
|
||||
$(eval _size := $(BOARD_$(_var)IMAGE_PARTITION_SIZE))
|
||||
$(eval _reserved := $(BOARD_$(_var)IMAGE_PARTITION_RESERVED_SIZE))
|
||||
$(eval _headroom := $(PRODUCT_$(_var)_HEADROOM))
|
||||
)
|
||||
$(if $(or $(_size), $(_reserved), $(_headroom)),,
|
||||
$(hide) echo "$(1)_disable_sparse=true" >> $(2))
|
||||
$(call add-common-flags-to-image-props,$(1),$(2))
|
||||
|
@ -6296,6 +6298,10 @@ ifdef BUILDING_VENDOR_BOOT_IMAGE
|
|||
endif
|
||||
endif
|
||||
|
||||
ifdef BUILDING_VENDOR_KERNEL_BOOT_IMAGE
|
||||
$(BUILT_TARGET_FILES_DIR): $(INTERNAL_VENDOR_KERNEL_RAMDISK_FILES)
|
||||
endif
|
||||
|
||||
ifdef BUILDING_RECOVERY_IMAGE
|
||||
# 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
|
||||
|
|
|
@ -44,6 +44,26 @@ endif
|
|||
|
||||
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.
|
||||
# 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.
|
||||
|
|
|
@ -550,12 +550,15 @@ endef
|
|||
|
||||
# Makes including non-existent modules in PRODUCT_PACKAGES an error.
|
||||
# $(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
|
||||
$(eval current_mk := $(strip $(word 1,$(_include_stack)))) \
|
||||
$(eval PRODUCTS.$(current_mk).PRODUCT_ENFORCE_PACKAGES_EXIST := true) \
|
||||
$(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)
|
||||
$(enforce-product-packages-exist-internal,$(current_mk),$(1))
|
||||
endef
|
||||
|
||||
#
|
||||
|
|
|
@ -522,6 +522,13 @@ function _lunch_meat()
|
|||
# Note this is the string "release", not the value of the variable.
|
||||
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
|
||||
|
||||
fixup_common_out_dir
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
# Base modules and settings for recovery.
|
||||
PRODUCT_PACKAGES += \
|
||||
adbd.recovery \
|
||||
android.hardware.health@2.0-impl-default.recovery \
|
||||
build_flag_vendor \
|
||||
cgroups.recovery.json \
|
||||
charger.recovery \
|
||||
|
|
|
@ -183,5 +183,3 @@ PRODUCT_SYSTEM_PROPERTIES += \
|
|||
dalvik.vm.image-dex2oat-Xmx=64m \
|
||||
dalvik.vm.dex2oat-Xms=64m \
|
||||
dalvik.vm.dex2oat-Xmx=512m \
|
||||
|
||||
PRODUCT_ENABLE_UFFD_GC := default
|
||||
|
|
|
@ -45,7 +45,6 @@ PRODUCT_PACKAGES += \
|
|||
CertInstaller \
|
||||
CredentialManager \
|
||||
DeviceAsWebcam \
|
||||
DeviceDiagnostics \
|
||||
DocumentsUI \
|
||||
DownloadProviderUi \
|
||||
EasterEgg \
|
||||
|
|
|
@ -339,11 +339,15 @@ locate(FileRecord* rec, const vector<string>& search)
|
|||
}
|
||||
|
||||
int err;
|
||||
|
||||
string full;
|
||||
for (vector<string>::const_iterator it=search.begin();
|
||||
it!=search.end(); it++) {
|
||||
string full = path_append(*it, rec->sourceName);
|
||||
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);
|
||||
if (err == 0) {
|
||||
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",
|
||||
rec->listFile.c_str(), rec->listLine, rec->sourceName.c_str());
|
||||
rec->listFile.c_str(), rec->listLine, full.c_str());
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue