0e23dae5b8
[cafebabe: Move to TWRP soong config namespace] Change-Id: I2c67fe632d415353273839493a86cdd75bd93b23
154 lines
3.9 KiB
Plaintext
154 lines
3.9 KiB
Plaintext
// TWRP soong configs
|
|
|
|
bootstrap_go_package {
|
|
name: "soong-twrp-generator",
|
|
pkgPath: "twrp/soong/generator",
|
|
deps: [
|
|
"blueprint",
|
|
"blueprint-pathtools",
|
|
"soong",
|
|
"soong-android",
|
|
"soong-shared",
|
|
],
|
|
srcs: [
|
|
"generator/generator.go",
|
|
"generator/variables.go",
|
|
],
|
|
pluginFor: ["soong_build"],
|
|
}
|
|
|
|
twrp_generator {
|
|
name: "generated_kernel_includes",
|
|
|
|
// The headers make command
|
|
cmd: "$(PATH_OVERRIDE_SOONG) $(KERNEL_MAKE_CMD) $(KERNEL_MAKE_FLAGS) -C $(TARGET_KERNEL_HEADERS_SOURCE) O=$(KERNEL_BUILD_OUT_PREFIX)$(genDir) ARCH=$(KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) headers_install",
|
|
|
|
// Directories that can be imported by a cc_* module generated_headers property
|
|
export_include_dirs: [
|
|
"usr/audio/include/uapi",
|
|
"usr/include",
|
|
"usr/include/audio/include/uapi",
|
|
"usr/techpack/audio/include",
|
|
],
|
|
|
|
// Sources for dependency tracking
|
|
dep_root: "$(TARGET_KERNEL_HEADERS_SOURCE)",
|
|
dep_files: [
|
|
"Makefile",
|
|
"include/**/*",
|
|
"arch/$(KERNEL_ARCH)/include/**/*",
|
|
"techpack/audio/include/**/*",
|
|
],
|
|
}
|
|
|
|
cc_library_headers {
|
|
name: "generated_kernel_headers",
|
|
generated_headers: ["generated_kernel_includes"],
|
|
export_generated_headers: ["generated_kernel_includes"],
|
|
vendor_available: true,
|
|
recovery_available: true,
|
|
}
|
|
|
|
soong_config_module_type {
|
|
name: "vendor_init",
|
|
module_type: "cc_defaults",
|
|
config_namespace: "twrpGlobalVars",
|
|
value_variables: ["target_init_vendor_lib"],
|
|
properties: ["whole_static_libs"],
|
|
}
|
|
|
|
vendor_init {
|
|
name: "vendor_init_defaults",
|
|
soong_config_variables: {
|
|
target_init_vendor_lib: {
|
|
whole_static_libs: ["%s"],
|
|
},
|
|
},
|
|
}
|
|
|
|
soong_config_module_type {
|
|
name: "enforce_ab_ota_partition_list",
|
|
module_type: "cc_defaults",
|
|
config_namespace: "twrpGlobalVars",
|
|
bool_variables: ["target_enforce_ab_ota_partition_list"],
|
|
properties: ["cflags"],
|
|
}
|
|
|
|
enforce_ab_ota_partition_list {
|
|
name: "enforce_ab_ota_partition_list_defaults",
|
|
soong_config_variables: {
|
|
target_enforce_ab_ota_partition_list: {
|
|
cflags: ["-DTARGET_ENFORCE_AB_OTA_PARTITION_LIST"],
|
|
},
|
|
},
|
|
}
|
|
|
|
soong_config_module_type {
|
|
name: "vold_hw_fde",
|
|
module_type: "cc_defaults",
|
|
config_namespace: "twrpGlobalVars",
|
|
bool_variables: ["supports_hw_fde"],
|
|
value_variables: ["hw_fde_cryptfs_hw_header_lib_name", "hw_fde_cryptfs_hw_shared_lib_name"],
|
|
properties: [
|
|
"cflags",
|
|
"header_libs",
|
|
"shared_libs",
|
|
],
|
|
}
|
|
|
|
vold_hw_fde {
|
|
name: "vold_hw_fde_defaults",
|
|
soong_config_variables: {
|
|
supports_hw_fde: {
|
|
cflags: ["-DCONFIG_HW_DISK_ENCRYPTION"],
|
|
},
|
|
hw_fde_cryptfs_hw_header_lib_name: {
|
|
header_libs: ["%s"],
|
|
},
|
|
hw_fde_cryptfs_hw_shared_lib_name: {
|
|
shared_libs: ["%s"],
|
|
},
|
|
},
|
|
}
|
|
|
|
soong_config_module_type {
|
|
name: "vold_hw_fde_perf",
|
|
module_type: "cc_defaults",
|
|
config_namespace: "twrpGlobalVars",
|
|
bool_variables: ["supports_hw_fde_perf"],
|
|
value_variables: ["hw_fde_cryptfs_hw_shared_lib_name"],
|
|
properties: [
|
|
"cflags",
|
|
"shared_libs",
|
|
],
|
|
}
|
|
|
|
vold_hw_fde_perf {
|
|
name: "vold_hw_fde_perf_defaults",
|
|
soong_config_variables: {
|
|
supports_hw_fde_perf: {
|
|
cflags: ["-DCONFIG_HW_DISK_ENCRYPT_PERF"],
|
|
},
|
|
hw_fde_cryptfs_hw_shared_lib_name: {
|
|
shared_libs: ["%s"],
|
|
},
|
|
},
|
|
}
|
|
|
|
soong_config_module_type {
|
|
name: "legacy_hw_disk_encryption",
|
|
module_type: "cc_defaults",
|
|
config_namespace: "twrpGlobalVars",
|
|
bool_variables: ["legacy_hw_disk_encryption"],
|
|
properties: ["cppflags"],
|
|
}
|
|
|
|
legacy_hw_disk_encryption {
|
|
name: "legacy_hw_disk_encryption_defaults",
|
|
soong_config_variables: {
|
|
legacy_hw_disk_encryption: {
|
|
cppflags: ["-DLEGACY_HW_DISK_ENCRYPTION"],
|
|
},
|
|
},
|
|
}
|