aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/kconfig/kconfig.go
diff options
context:
space:
mode:
authorTadeusz Struk <tadeusz.struk@linaro.org>2022-10-04 13:19:56 -0700
committerTaras Madan <tarasmadan@google.com>2022-10-11 19:14:22 +0200
commitb10dcb6f229b5b38cea03bcdd388bda2479a8f06 (patch)
tree9cc6b269650a77f385f23df192c662e76dbbebc6 /pkg/kconfig/kconfig.go
parent02b6492ea9aa946771baee36254b2dbb4c07c0b6 (diff)
pkg/kconfig: expand KCONFIG_EXT_PREFIX environment variable in path
Expand KCONFIG_EXT_PREFIX environment variable in kconfig include path to an empty string. That's required for Android-5.10 build. Signed-off-by: Tadeusz Struk <tadeusz.struk@linaro.org>
Diffstat (limited to 'pkg/kconfig/kconfig.go')
-rw-r--r--pkg/kconfig/kconfig.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/kconfig/kconfig.go b/pkg/kconfig/kconfig.go
index 080f1d932..84ea00afd 100644
--- a/pkg/kconfig/kconfig.go
+++ b/pkg/kconfig/kconfig.go
@@ -416,5 +416,6 @@ func (kp *kconfigParser) parseDefaultValue() {
func (kp *kconfigParser) expandString(str string) string {
str = strings.Replace(str, "$(SRCARCH)", kp.target.KernelHeaderArch, -1)
str = strings.Replace(str, "$SRCARCH", kp.target.KernelHeaderArch, -1)
+ str = strings.Replace(str, "$(KCONFIG_EXT_PREFIX)", "", -1)
return str
}