Convert the sdk proto genrule to use soong var

Instead of baking it into the Android.bp file, define the canonical
value in build/make and reuse it here.

Bug: 195281582
Test: m current_sdkinfo and inspect
Change-Id: Ifd426ca602c14e7a5c5605622da11c992d0c5c59
This commit is contained in:
Anton Hansson
2021-08-27 17:25:25 +01:00
parent 2c368e02b5
commit b89eeb7a48

View File

@@ -49,7 +49,11 @@ gensrcs {
name: "cur_sdkinfo_src", name: "cur_sdkinfo_src",
srcs: [""], srcs: [""],
tools: [ "gen_sdkinfo" ], tools: [ "gen_sdkinfo" ],
cmd: "$(location) -v 1 -o $(out)", product_variables: {
platform_sdk_extension_version: {
cmd: "$(location) -v %d -o $(out)",
}
}
} }
prebuilt_etc { prebuilt_etc {