Fix bpfmt issues and add bpfmt to preupload checks

Test: m nothing
Change-Id: I10526a33685335bdd26cc7692815133379d4e0f6
This commit is contained in:
Thiébaud Weksteen 2020-06-26 14:04:00 +02:00
parent 0c6f111d7b
commit 5e291c238f
18 changed files with 25 additions and 31 deletions

View file

@ -106,15 +106,24 @@ toolchain_library {
},
arm64: {
src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a",
repack_objects_to_keep: ["unwind-dw2.o", "unwind-dw2-fde-dip.o"],
repack_objects_to_keep: [
"unwind-dw2.o",
"unwind-dw2-fde-dip.o",
],
},
x86: {
src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcc.a",
repack_objects_to_keep: ["unwind-dw2.o", "unwind-dw2-fde-dip.o"],
repack_objects_to_keep: [
"unwind-dw2.o",
"unwind-dw2-fde-dip.o",
],
},
x86_64: {
src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/libgcc.a",
repack_objects_to_keep: ["unwind-dw2.o", "unwind-dw2-fde-dip.o"],
repack_objects_to_keep: [
"unwind-dw2.o",
"unwind-dw2-fde-dip.o",
],
},
},
}

View file

@ -1,2 +1,3 @@
[Builtin Hooks]
gofmt = true
bpfmt = true

View file

@ -44,11 +44,9 @@ bootstrap_go_package {
"bpfix/bpfix.go",
],
testSrcs: [
"bpfix/bpfix_test.go",
"bpfix/bpfix_test.go",
],
deps: [
"blueprint-parser",
],
}

View file

@ -6,7 +6,7 @@ blueprint_go_binary {
"golang-protobuf-proto",
"soong-cmd-extract_apks-proto",
],
testSrcs: ["main_test.go"]
testSrcs: ["main_test.go"],
}
bootstrap_go_package {

View file

@ -22,4 +22,3 @@ blueprint_go_binary {
"extract_jar_packages.go",
],
}

View file

@ -17,4 +17,3 @@ blueprint_go_binary {
srcs: ["main.go"],
testSrcs: ["main_test.go"],
}

View file

@ -15,10 +15,10 @@
blueprint_go_binary {
name: "merge_zips",
deps: [
"android-archive-zip",
"blueprint-pathtools",
"soong-jar",
"soong-zip",
"android-archive-zip",
"blueprint-pathtools",
"soong-jar",
"soong-zip",
],
srcs: [
"merge_zips.go",
@ -27,4 +27,3 @@ blueprint_go_binary {
"merge_zips_test.go",
],
}

View file

@ -19,4 +19,3 @@ blueprint_go_binary {
"sbox.go",
],
}

View file

@ -29,4 +29,3 @@ bootstrap_go_binary {
],
primaryBuilder: true,
}

View file

@ -22,4 +22,3 @@ bootstrap_go_binary {
],
default: true,
}

View file

@ -24,4 +24,3 @@ blueprint_go_binary {
],
testSrcs: ["zip2zip_test.go"],
}

View file

@ -22,4 +22,3 @@ blueprint_go_binary {
"zipsync.go",
],
}

View file

@ -8,4 +8,4 @@ blueprint_go_binary {
"blueprint-pathtools",
"blueprint-proptools",
],
}
}

View file

@ -17,7 +17,7 @@
//
subdirs = [
"cmd"
"cmd",
]
bootstrap_go_package {
@ -30,8 +30,6 @@ bootstrap_go_package {
"finder_test.go",
],
deps: [
"soong-finder-fs",
"soong-finder-fs",
],
}

View file

@ -22,8 +22,6 @@ blueprint_go_binary {
"finder.go",
],
deps: [
"soong-finder"
"soong-finder",
],
}

View file

@ -37,4 +37,3 @@ bootstrap_go_package {
],
},
}

View file

@ -106,7 +106,7 @@ python_binary_host {
py3: {
enabled: false,
},
}
},
}
python_binary_host {

View file

@ -27,7 +27,6 @@ bootstrap_go_package {
"rate_limit.go",
],
testSrcs: [
"zip_test.go",
"zip_test.go",
],
}