36f55aabcd
Add a symbols_map tool that can extract an identifiying hash from and elf file or an r8 dictionary. The tool writes the hash to a textproto, and also supports a merge mode to combine textprotos into a output file for inclusion in the build artifacts. Bug: 218888599 Test: m dist Test: symbols_map_test.go Change-Id: Icd3ed6e5510e058c92d97c78759e7a4cfcdbb6ca
34 lines
717 B
Text
34 lines
717 B
Text
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
blueprint_go_binary {
|
|
name: "symbols_map",
|
|
srcs: [
|
|
"elf.go",
|
|
"r8.go",
|
|
"symbols_map.go",
|
|
],
|
|
testSrcs: [
|
|
"elf_test.go",
|
|
"r8_test.go",
|
|
],
|
|
deps: [
|
|
"blueprint-pathtools",
|
|
"golang-protobuf-encoding-prototext",
|
|
"soong-response",
|
|
"symbols_map_proto",
|
|
],
|
|
}
|
|
|
|
bootstrap_go_package {
|
|
name: "symbols_map_proto",
|
|
pkgPath: "android/soong/cmd/symbols_map/symbols_map_proto",
|
|
deps: [
|
|
"golang-protobuf-reflect-protoreflect",
|
|
"golang-protobuf-runtime-protoimpl",
|
|
],
|
|
srcs: [
|
|
"symbols_map_proto/symbols_map.pb.go",
|
|
],
|
|
}
|