Move hwcomposer.drm_hikey and hwcomposer.drm_hikey960
Prevent external/drm_hwcomposer from referencing device/linaro/hikey,
which may not exist in all trees, by compiling most of drm_hwcomposer
as a static library and then compiling just the source files that
are affected by device-specific #defines and #includes in
device/linary/hikey/gralloc*.
Fixes: 129543119
Test: m hwcomposer.drm_hikey hwcomposer.drm_hikey960 MODULES-IN-external-drm_hwcomposer
Change-Id: Idaac809ba271b27998f89c877ede46def9a417a4
diff --git a/gralloc960/Android.bp b/gralloc960/Android.bp
new file mode 100644
index 0000000..37d60a1
--- /dev/null
+++ b/gralloc960/Android.bp
@@ -0,0 +1,6 @@
+cc_library_shared {
+ name: "hwcomposer.drm_hikey960",
+ defaults: ["hwcomposer.drm_defaults"],
+ srcs: [":drm_hwcomposer_platformhisi"],
+ whole_static_libs: ["drm_hwcomposer"],
+}