Merge "Use prebuilt m4 instead of system m4" am: d9cf7fc48e am: 809fb63cc1

am: 9178a6ccb7

Change-Id: I71dafc08f6a9c0b4e43574dac10339c885d23c59
This commit is contained in:
Dan Willemsen
2019-06-20 16:26:51 -07:00
committed by android-build-merger
3 changed files with 6 additions and 3 deletions

View File

@@ -25,6 +25,7 @@ import (
func init() {
pctx.SourcePathVariable("lexCmd", "prebuilts/build-tools/${config.HostPrebuiltTag}/bin/flex")
pctx.SourcePathVariable("m4Cmd", "prebuilts/build-tools/${config.HostPrebuiltTag}/bin/m4")
pctx.HostBinToolVariable("aidlCmd", "aidl-cpp")
pctx.HostBinToolVariable("syspropCmd", "sysprop_cpp")
@@ -33,8 +34,8 @@ func init() {
var (
lex = pctx.AndroidStaticRule("lex",
blueprint.RuleParams{
Command: "$lexCmd -o$out $in",
CommandDeps: []string{"$lexCmd"},
Command: "M4=$m4Cmd $lexCmd -o$out $in",
CommandDeps: []string{"$lexCmd", "$m4Cmd"},
})
sysprop = pctx.AndroidStaticRule("sysprop",

View File

@@ -161,6 +161,8 @@ func makeVarsProvider(ctx android.MakeVarsContext) {
ctx.Strict("AIDL_CPP", "${aidlCmd}")
ctx.Strict("M4", "${m4Cmd}")
ctx.Strict("RS_GLOBAL_INCLUDES", "${config.RsGlobalIncludes}")
ctx.Strict("SOONG_STRIP_PATH", "${stripPath}")

View File

@@ -94,7 +94,7 @@ var Configuration = map[string]PathConfig{
"java": Allowed,
"javap": Allowed,
"lsof": Allowed,
"m4": Allowed,
"m4": Log,
"openssl": Allowed,
"patch": Allowed,
"pstree": Allowed,