Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

device-generic-goldfish: Commit

device/generic/goldfish


Commit MetaInfo

Revision049bb224280d31cf2f9c1ca62226c8eb3b7110d5 (tree)
Time2017-06-24 05:44:58
AuthorLingfeng Yang <lfy@goog...>
Commiterandroid-build-team Robot

Log Message

Build power.ranchu and add power hal to manifest.xml

Bug: 37302997
Bug: 37863919

Test: Build and run sdk_google_aw_x86-userdebug emulator

Change-Id: Id8fc018b005b011426d3e0bc885ee8ef00dec1eb
(cherry picked from commit 4aa73d308e16905c5971d7c7ede464a824ed770a)
(cherry picked from commit 8ac023565943620cb6b1f85c396b0c3661219342)

Change Summary

Incremental Difference

--- a/manifest.xml
+++ b/manifest.xml
@@ -24,11 +24,11 @@
2424 </interface>
2525 </hal>
2626 <hal format="hidl">
27- <name>android.hardware.graphics.mapper</name>
28- <transport arch="32+64">passthrough</transport>
29- <version>2.0</version>
27+ <name>android.hardware.power</name>
28+ <transport>hwbinder</transport>
29+ <version>1.0</version>
3030 <interface>
31- <name>IMapper</name>
31+ <name>IPower</name>
3232 <instance>default</instance>
3333 </interface>
3434 </hal>
--- a/power/Android.mk
+++ b/power/Android.mk
@@ -27,3 +27,14 @@ LOCAL_SRC_FILES := power_qemu.c
2727 LOCAL_MODULE := power.goldfish
2828 LOCAL_MODULE_TAGS := optional
2929 include $(BUILD_SHARED_LIBRARY)
30+
31+include $(CLEAR_VARS)
32+
33+LOCAL_MODULE_RELATIVE_PATH := hw
34+LOCAL_CFLAGS += -DQEMU_HARDWARE
35+LOCAL_SHARED_LIBRARIES := liblog libcutils
36+LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include
37+LOCAL_SRC_FILES := power_qemu.c
38+LOCAL_MODULE := power.ranchu
39+LOCAL_MODULE_TAGS := optional
40+include $(BUILD_SHARED_LIBRARY)
Show on old repository browser