sm8150-common: fod: prettify soong variables
This commit is contained in:
parent
255563ba50
commit
aa2a51329d
|
@ -190,5 +190,5 @@ WIFI_HIDL_FEATURE_DUAL_INTERFACE := true
|
|||
WPA_SUPPLICANT_VERSION := VER_0_8_X
|
||||
|
||||
# Fingerprint
|
||||
SOONG_CONFIG_NAMESPACES += oneplusMsmnileFodPlugin
|
||||
SOONG_CONFIG_oneplusMsmnileFodPlugin := posX posY size
|
||||
SOONG_CONFIG_NAMESPACES += ONEPLUS_MSMNILE_FOD
|
||||
SOONG_CONFIG_ONEPLUS_MSMNILE_FOD := POS_X POS_Y SIZE
|
||||
|
|
|
@ -9,10 +9,10 @@ import (
|
|||
func deviceFlags(ctx android.BaseContext) []string {
|
||||
var cflags []string
|
||||
|
||||
var config = ctx.AConfig().VendorConfig("oneplusMsmnileFodPlugin")
|
||||
var posX = strings.TrimSpace(config.String("posX"))
|
||||
var posY = strings.TrimSpace(config.String("posY"))
|
||||
var size = strings.TrimSpace(config.String("size"))
|
||||
var config = ctx.AConfig().VendorConfig("ONEPLUS_MSMNILE_FOD")
|
||||
var posX = strings.TrimSpace(config.String("POS_X"))
|
||||
var posY = strings.TrimSpace(config.String("POS_Y"))
|
||||
var size = strings.TrimSpace(config.String("SIZE"))
|
||||
|
||||
cflags = append(cflags, "-DFOD_POS_X=" + posX, "-DFOD_POS_Y=" + posY, "-DFOD_SIZE=" + size)
|
||||
return cflags
|
||||
|
|
Loading…
Reference in New Issue