aidl: fingerprint: Use soong to decide which arch to build
Some devices got 64bit kernelspace ported, but they need to use the original 32bit HALs. device.mk: $(call soong_config_set,xiaomi_hardware_biometrics,run_32bit,true) Change-Id: I5176147a4da3a8069bcfb35d64fdaa48e23190e2
This commit is contained in:
parent
cd290f7707
commit
4f64b9337e
@ -5,8 +5,32 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
soong_config_module_type {
|
||||
name: "xiaomi_hardware_biometrics_config_default",
|
||||
module_type: "cc_defaults",
|
||||
config_namespace: "xiaomi_hardware_biometrics",
|
||||
bool_variables: [
|
||||
"run_32bit",
|
||||
],
|
||||
properties: ["compile_multilib"],
|
||||
}
|
||||
|
||||
xiaomi_hardware_biometrics_config_default {
|
||||
name: "xiaomi_hardware_biometrics_config_default",
|
||||
|
||||
soong_config_variables: {
|
||||
run_32bit: {
|
||||
conditions_default: {
|
||||
compile_multilib: "64",
|
||||
},
|
||||
compile_multilib: "prefer32",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
cc_binary {
|
||||
name: "android.hardware.biometrics.fingerprint-service.xiaomi",
|
||||
defaults: ["xiaomi_hardware_biometrics_config_default"],
|
||||
relative_install_path: "hw",
|
||||
init_rc: ["android.hardware.biometrics.fingerprint-service.xiaomi.rc"],
|
||||
vintf_fragments: ["android.hardware.biometrics.fingerprint-service.xiaomi.xml"],
|
||||
|
Loading…
Reference in New Issue
Block a user