sm8150-common: fod: prettify soong variables

This commit is contained in:
Peter Cai 2019-07-02 18:28:12 +08:00
parent 255563ba50
commit aa2a51329d
No known key found for this signature in database
GPG Key ID: 71F5FB4E4F3FD54F
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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