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: { arm64: {
src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a", 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: { 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", 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: { 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", 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] [Builtin Hooks]
gofmt = true gofmt = true
bpfmt = true

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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