Merge "Add informational message to help with updation of VNDK abi references."
am: bc30a77591
Change-Id: I824e905c05b326fab2e69da30e1c6c8d54162460
This commit is contained in:
@@ -203,9 +203,11 @@ var (
|
|||||||
|
|
||||||
commandStr := "($sAbiDiffer $allowFlags -lib $libName -arch $arch -check-all-apis -o ${out} -new $in -old $referenceDump)"
|
commandStr := "($sAbiDiffer $allowFlags -lib $libName -arch $arch -check-all-apis -o ${out} -new $in -old $referenceDump)"
|
||||||
distAbiDiffDir := android.PathForDist(ctx, "abidiffs")
|
distAbiDiffDir := android.PathForDist(ctx, "abidiffs")
|
||||||
|
commandStr += "|| (echo ' ---- Please update abi references by running platform/development/vndk/tools/header-checker/utils/create_reference_dumps.py -l ${libName} ----'"
|
||||||
if distAbiDiffDir.Valid() {
|
if distAbiDiffDir.Valid() {
|
||||||
commandStr += " || (mkdir -p " + distAbiDiffDir.String() + " && cp ${out} " + distAbiDiffDir.String() + " && exit 1)"
|
commandStr += ") && (mkdir -p " + distAbiDiffDir.String() + " && cp ${out} " + distAbiDiffDir.String()
|
||||||
}
|
}
|
||||||
|
commandStr += " && exit 1)"
|
||||||
return blueprint.RuleParams{
|
return blueprint.RuleParams{
|
||||||
Command: commandStr,
|
Command: commandStr,
|
||||||
CommandDeps: []string{"$sAbiDiffer"},
|
CommandDeps: []string{"$sAbiDiffer"},
|
||||||
@@ -740,7 +742,7 @@ func SourceAbiDiff(ctx android.ModuleContext, inputDump android.Path, referenceD
|
|||||||
Implicit: referenceDump,
|
Implicit: referenceDump,
|
||||||
Args: map[string]string{
|
Args: map[string]string{
|
||||||
"referenceDump": referenceDump.String(),
|
"referenceDump": referenceDump.String(),
|
||||||
"libName": baseName,
|
"libName": baseName[0:(len(baseName) - len(filepath.Ext(baseName)))],
|
||||||
"arch": ctx.Arch().ArchType.Name,
|
"arch": ctx.Arch().ArchType.Name,
|
||||||
"allowFlags": strings.Join(localAbiCheckAllowFlags, " "),
|
"allowFlags": strings.Join(localAbiCheckAllowFlags, " "),
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user