Build camera related goldfish HALs as brilloemulator for Brillo
Brillo runs a reduced subset of the graphics stack and a different
system configuration from goldfish. However, many of these HALs still
make sense for Brillo. Build the HALs with a board name that will allow
the camera and graphics subsystems to pick them up.
Bug: 26936651
Test: brilloemulator is able to pick up and use these HALs to take
fake pictures.
Change-Id: I79265ada33a5a97c6f670b79f9c239606465c9fc
diff --git a/camera/Android.mk b/camera/Android.mk
index 8982c71..7bde635 100644
--- a/camera/Android.mk
+++ b/camera/Android.mk
@@ -64,8 +64,9 @@
fake-pipeline2/JpegCompressor.cpp \
EmulatedCamera3.cpp \
EmulatedFakeCamera3.cpp
-
-ifeq ($(TARGET_PRODUCT),vbox_x86)
+ifeq ($(TARGET_BOARD_PLATFORM),brilloemulator)
+LOCAL_MODULE := camera.$(TARGET_BOARD_PLATFORM)
+else ifeq ($(TARGET_PRODUCT),vbox_x86)
LOCAL_MODULE := camera.vbox_x86
else
LOCAL_MODULE := camera.goldfish
diff --git a/opengl/system/gralloc/Android.mk b/opengl/system/gralloc/Android.mk
index a74f6b0..190bfd6 100644
--- a/opengl/system/gralloc/Android.mk
+++ b/opengl/system/gralloc/Android.mk
@@ -21,5 +21,8 @@
$(eval $(call gralloc_recipe,goldfish))
$(eval $(call gralloc_recipe,ranchu))
+ifeq ($(TARGET_BOARD_PLATFORM),brilloemulator)
+$(eval $(call gralloc_recipe,$(TARGET_BOARD_PLATFORM)))
+endif # defined(BRILLO)
endif # BUILD_EMULATOR_OPENGL_DRIVER != false