diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-09-05 15:10:31 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-09-06 12:15:24 +0200 |
commit | af08db027b6214306683c8cbf9980798c5f85977 (patch) | |
tree | 97211afd7b11bace6ce508984d110ddf10dc41f2 /build/soong/generator/variables.go | |
parent | dc5051ce0272ddb572aaa72ecd0e1d00ad9b0f83 (diff) | |
download | external_wget-replicant-11.tar.gz external_wget-replicant-11.tar.bz2 external_wget-replicant-11.zip |
This way:
- We can rebase more easily if needed
- We don't have to bring in the other part of vendor/lineage that
is potentially incompatible with what we have
wget was also moved in the top directory along the way.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'build/soong/generator/variables.go')
-rw-r--r-- | build/soong/generator/variables.go | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/build/soong/generator/variables.go b/build/soong/generator/variables.go deleted file mode 100644 index 8485f94b..00000000 --- a/build/soong/generator/variables.go +++ /dev/null @@ -1,28 +0,0 @@ -package generator - -import ( - "fmt" - - "android/soong/android" -) - -func lineageExpandVariables(ctx android.ModuleContext, in string) string { - lineageVars := ctx.Config().VendorConfig("lineageVarsPlugin") - - out, err := android.Expand(in, func(name string) (string, error) { - if lineageVars.IsSet(name) { - return lineageVars.String(name), nil - } - // This variable is not for us, restore what the original - // variable string will have looked like for an Expand - // that comes later. - return fmt.Sprintf("$(%s)", name), nil - }) - - if err != nil { - ctx.PropertyErrorf("%s: %s", in, err.Error()) - return "" - } - - return out -} |