create a lib to hold commonly used functions

Bug: 240530709
Test: adb bugreport
Change-Id: Idcdcca968b65d2bd413b219d39fc1104dfc9f3b8
diff --git a/insmod/Android.bp b/insmod/Android.bp
index 2573894..3b956e7 100644
--- a/insmod/Android.bp
+++ b/insmod/Android.bp
@@ -14,3 +14,23 @@
     src: "init.common.cfg",
     vendor: true,
 }
+
+cc_library {
+    name: "libdump",
+    srcs: ["pixel_dump.cpp"],
+    vendor_available: true,
+    vendor_ramdisk_available: true,
+    shared_libs: [
+        "libbase",
+        "liblog",
+    ],
+    cflags: [
+        "-Wall",
+        "-Werror",
+    ],
+
+    export_include_dirs: [
+        "include",
+    ],
+}
+