aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Shields <simon@lineageos.org>2017-08-23 12:05:33 +1000
committerBruno Martins <bgcngm@gmail.com>2018-08-16 10:09:16 +0100
commit9e05e9114429cbf96ddb5f76062889fb8a1c38c9 (patch)
treec947d1e48c0e36a15e59a00539c906dca1ab203d
parent108cc24a0903c36b96549bd0459824b7e147305d (diff)
downloadbuild_soong-9e05e9114429cbf96ddb5f76062889fb8a1c38c9.tar.gz
build_soong-9e05e9114429cbf96ddb5f76062889fb8a1c38c9.tar.bz2
build_soong-9e05e9114429cbf96ddb5f76062889fb8a1c38c9.zip
soong: extend with lineage board flags
Includes the following commit: Author: Simon Shields <simon@lineageos.org> Date: Mon Sep 4 21:09:44 2017 +1000 soong: explicitly specify name of Lineage variables struct Change-Id: Ic754b8a13658ddc40620f985581bd1754b780b15 Change-Id: If127c9da6b57340ae57e0cf725151cdcc3c82ef3
-rw-r--r--Android.bp1
-rw-r--r--android/variable.go8
-rw-r--r--scripts/microfactory.bash2
3 files changed, 10 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index e9b1ebe0..4a72ef7b 100644
--- a/Android.bp
+++ b/Android.bp
@@ -37,6 +37,7 @@ bootstrap_go_package {
"blueprint-bootstrap",
"soong",
"soong-env",
+ "soong-lineage",
],
srcs: [
"android/androidmk.go",
diff --git a/android/variable.go b/android/variable.go
index f4aaec7a..21b4cfc9 100644
--- a/android/variable.go
+++ b/android/variable.go
@@ -20,6 +20,8 @@ import (
"runtime"
"strings"
+ "lineage/soong/android"
+
"github.com/google/blueprint/proptools"
)
@@ -114,6 +116,9 @@ type variableProperties struct {
Static_libs []string
Srcs []string
}
+
+ // include Lineage variables
+ Lineage android.Product_variables
} `android:"arch_variant"`
}
@@ -230,6 +235,9 @@ type productVariables struct {
PgoAdditionalProfileDirs []string `json:",omitempty"`
VendorVars map[string]map[string]string `json:",omitempty"`
+
+ // include Lineage variables
+ Lineage android.ProductVariables
}
func boolPtr(v bool) *bool {
diff --git a/scripts/microfactory.bash b/scripts/microfactory.bash
index 65ba55d9..39870d0b 100644
--- a/scripts/microfactory.bash
+++ b/scripts/microfactory.bash
@@ -59,7 +59,7 @@ function soong_build_go
BUILDDIR=$(getoutdir) \
SRCDIR=${TOP} \
BLUEPRINTDIR=${TOP}/build/blueprint \
- EXTRA_ARGS="-pkg-path android/soong=${TOP}/build/soong" \
+ EXTRA_ARGS="-pkg-path android/soong=${TOP}/build/soong -pkg-path lineage/soong=${TOP}/vendor/lineage/build/soong" \
build_go $@
}