dtc: add fdtget in Android.bp

Bug: 128837155
Test: execute fdtget to read out the DT settings.
Change-Id: I7149ecd6a9b5aeedd0a2cf21eee692e77f03a8e1
diff --git a/Android.bp b/Android.bp
index 7bc97d6..d52d98c 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,8 +1,6 @@
 // Copyright 2016 The Android Open Source Project
-
-cc_binary_host {
-    name: "dtc",
-
+cc_defaults {
+    name: "dt_defaults",
     cflags: [
         "-Wall",
         "-Werror",
@@ -10,6 +8,21 @@
         "-Wno-missing-field-initializers",
         "-Wno-unused-parameter",
     ],
+
+    static_libs: ["libfdt"],
+
+    stl: "none",
+    dist: {
+        targets: [
+            "dist_files",
+        ],
+        dir: "dtc",
+    },
+}
+
+cc_binary_host {
+    name: "dtc",
+    defaults: ["dt_defaults"],
     srcs: [
         "checks.c",
         "data.c",
@@ -23,14 +36,13 @@
         "treesource.c",
         "util.c",
     ],
+}
 
-    static_libs: ["libfdt"],
-
-    stl: "none",
-    dist: {
-        targets: [
-            "dist_files",
-        ],
-        dir: "dtc",
-    },
+cc_binary_host {
+    name: "fdtget",
+    defaults: ["dt_defaults"],
+    srcs: [
+        "fdtget.c",
+        "util.c",
+    ],
 }