Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c77f66b authored by Simon Shields's avatar Simon Shields Committed by Rashed Abdel-Tawab
Browse files

soong: extend with lineage board flags

Change-Id: If127c9da6b57340ae57e0cf725151cdcc3c82ef3
parent 08734bbe
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ bootstrap_go_package {
        "blueprint-bootstrap",
        "soong",
        "soong-env",
        "soong-lineage",
    ],
    srcs: [
        "android/androidmk.go",
+8 −0
Original line number Diff line number Diff line
@@ -20,6 +20,8 @@ import (
	"runtime"
	"strings"

	"lineage/soong/android"

	"github.com/google/blueprint/proptools"
)

@@ -94,6 +96,9 @@ type variableProperties struct {
		Pdk struct {
			Enabled *bool
		}

		// include Lineage variables
		*android.Product_variables
	} `android:"arch_variant"`
}

@@ -167,6 +172,9 @@ type productVariables struct {
	Override_rs_driver *string `json:",omitempty"`

	DeviceKernelHeaders []string `json:",omitempty"`

	// include Lineage variables
	*android.ProductVariables
}

func boolPtr(v bool) *bool {
+1 −0
Original line number Diff line number Diff line
@@ -84,6 +84,7 @@ function build_go
    rm -f "${out_dir}/.$1.trace"
    ${mf_cmd} -s "${mf_src}" -b "${mf_bin}" \
            -pkg-path "android/soong=${TOP}/build/soong" -trimpath "${TOP}/build/soong" \
            -pkg-path "lineage/soong=${TOP}/vendor/lineage/build/soong" \
            -o "${built_bin}" $2

    if [ $from_src -eq 1 ]; then
+1 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ build = [

subdirs = [
    "build/soong",
    "vendor/lineage/build/soong",
]

optional_subdirs = [