Compare commits
14 commits
0ee73fcd93
...
43bfd62c88
Author | SHA1 | Date | |
---|---|---|---|
|
43bfd62c88 | ||
|
9061de7a60 | ||
|
42ab2790f8 | ||
|
c8feb79c73 | ||
|
107c120b77 | ||
|
d82693def7 | ||
|
51bd6dd955 | ||
|
e937a902a4 | ||
|
3c1a51f132 | ||
|
6e20526569 | ||
|
61b7b801b6 | ||
|
05ff189cd0 | ||
|
57f681ac39 | ||
|
38db97dd09 |
13 changed files with 93 additions and 20 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.
|
||||
|
|
|
@ -440,6 +440,10 @@ endif
|
|||
# See envsetup.mk for a description of SCAN_EXCLUDE_DIRS
|
||||
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
|
||||
# headers:
|
||||
# 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.
|
||||
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)
|
||||
include $(BUILD_SYSTEM)/ninja_config.mk
|
||||
include $(BUILD_SYSTEM)/soong_config.mk
|
||||
|
@ -1258,6 +1270,11 @@ endif
|
|||
DEFAULT_DATA_OUT_MODULES := ltp $(ltp_packages)
|
||||
.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
|
||||
|
||||
ifdef BOARD_VNDK_VERSION
|
||||
|
|
|
@ -209,6 +209,12 @@ endif
|
|||
|
||||
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
|
||||
# non-empty if that module should be installed in /system.
|
||||
|
|
|
@ -92,3 +92,7 @@ FRAMEWORKS_BASE_SUBDIRS := \
|
|||
#
|
||||
FRAMEWORKS_BASE_JAVA_SRC_DIRS := \
|
||||
$(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.
|
||||
# $(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
|
||||
|
||||
#
|
||||
|
@ -597,9 +600,11 @@ _readonly_late_variables := \
|
|||
|
||||
# Modified internally in the build system
|
||||
_readonly_late_variables += \
|
||||
PRODUCT_CFI_INCLUDE_PATHS \
|
||||
PRODUCT_COPY_FILES \
|
||||
PRODUCT_DEX_PREOPT_NEVER_ALLOW_STRIPPING \
|
||||
PRODUCT_DEX_PREOPT_BOOT_FLAGS \
|
||||
PRODUCT_SOONG_NAMESPACES
|
||||
|
||||
_readonly_early_variables := $(filter-out $(_readonly_late_variables),$(_product_var_list))
|
||||
|
||||
|
|
19
envsetup.sh
19
envsetup.sh
|
@ -53,8 +53,8 @@ function build_build_var_cache()
|
|||
{
|
||||
local T=$(gettop)
|
||||
# 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_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_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 $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.
|
||||
build_dicts_script=`\builtin cd $T; build/soong/soong_ui.bash --dumpvars-mode \
|
||||
--vars="${cached_vars[*]}" \
|
||||
|
@ -324,8 +324,6 @@ function set_stuff_for_environment()
|
|||
{
|
||||
set_lunch_paths
|
||||
set_sequence_number
|
||||
|
||||
export ANDROID_BUILD_TOP=$(gettop)
|
||||
}
|
||||
|
||||
function set_sequence_number()
|
||||
|
@ -524,12 +522,21 @@ 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
|
||||
|
||||
set_stuff_for_environment
|
||||
[[ -n "${ANDROID_QUIET_BUILD:-}" ]] || printconfig
|
||||
|
||||
if [[ -z "${ANDROID_QUIET_BUILD}" ]]; then
|
||||
if [[ -z "${ANDROID_QUIET_BUILD}" && -z "${CALYX_BUILD}" ]]; then
|
||||
local spam_for_lunch=$(gettop)/build/make/tools/envsetup/spam_for_lunch
|
||||
if [[ -x $spam_for_lunch ]]; then
|
||||
$spam_for_lunch
|
||||
|
@ -1178,4 +1185,6 @@ set_global_paths
|
|||
source_vendorsetup
|
||||
addcompletions
|
||||
|
||||
export ANDROID_BUILD_TOP=$(gettop)
|
||||
|
||||
. $ANDROID_BUILD_TOP/vendor/tequila/build/envsetup.sh
|
||||
|
|
|
@ -37,5 +37,7 @@ PRODUCT_PACKAGES += \
|
|||
|
||||
# Telephony:
|
||||
# Provide a APN configuration to GSI product
|
||||
ifeq ($(TEQUILA_BUILD),)
|
||||
PRODUCT_COPY_FILES += \
|
||||
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.
|
||||
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
|
||||
|
|
|
@ -24,8 +24,12 @@ PRODUCT_VENDOR_PROPERTIES := \
|
|||
ro.com.android.dataroaming?=true
|
||||
|
||||
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
|
||||
|
||||
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/telephony.mk)
|
||||
|
|
|
@ -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