Whamcloud - gitweb
AOSP: Create blkid_static
authorDennis Shen <dzshen@google.com>
Fri, 2 Dec 2022 15:31:12 +0000 (15:31 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 1 Feb 2023 04:41:57 +0000 (23:41 -0500)
static_apexer_tools depends on deapexer which depends on blkid. So we
need a static version of blkid.

BUG: b/257933023
TEST: local build of blkid_static
Change-Id: I191840a21df1c10f4371acbe8067f39f148f28b8
From AOSP commit: 2aa5b65667e71bc278117caffa46c331d75d2803

misc/Android.bp

index 04301ae..97f04d3 100644 (file)
@@ -248,6 +248,22 @@ cc_binary {
     ],
 }
 
+cc_binary {
+    name: "blkid_static",
+    host_supported: true,
+    static_executable: true,
+    defaults: ["e2fsprogs-defaults"],
+
+    srcs: ["blkid.c"],
+    static_libs: [
+        "libext2fs",
+        "libext2_blkid",
+        "libext2_com_err",
+        "libext2_e2p",
+        "libext2_uuid",
+    ],
+}
+
 //########################################################################
 // Build e4crypt