Parcourir la source

Fix bpfmt issues and add bpfmt to preupload checks

Test: m nothing
Change-Id: I10526a33685335bdd26cc7692815133379d4e0f6
Thiébaud Weksteen il y a 4 ans
Parent
commit
5e291c238f

+ 12 - 3
Android.bp

@@ -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",
+            ],
         },
     },
 }

+ 1 - 0
PREUPLOAD.cfg

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

+ 1 - 3
bpfix/Android.bp

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

+ 1 - 1
cmd/extract_apks/Android.bp

@@ -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 {

+ 0 - 1
cmd/extract_jar_packages/Android.bp

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

+ 0 - 1
cmd/extract_linker/Android.bp

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

+ 4 - 5
cmd/merge_zips/Android.bp

@@ -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",
     ],
 }
-

+ 0 - 1
cmd/sbox/Android.bp

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

+ 0 - 1
cmd/soong_build/Android.bp

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

+ 0 - 1
cmd/soong_env/Android.bp

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

+ 0 - 1
cmd/zip2zip/Android.bp

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

+ 0 - 1
cmd/zipsync/Android.bp

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

+ 1 - 1
dexpreopt/dexpreopt_gen/Android.bp

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

+ 2 - 4
finder/Android.bp

@@ -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",
     ],
 }
-
-

+ 1 - 3
finder/cmd/Android.bp

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

+ 0 - 1
finder/fs/Android.bp

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

+ 1 - 1
scripts/Android.bp

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

+ 1 - 2
zip/Android.bp

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