Skip to contentSkip to conversation

android: enable building static version of libdrm

PATCH In review Rob Herring 2 participants 3 messages Jan 29, 2016 – Feb 4, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 android: enable building static version of libdrm

From: Sumit Semwal <[email protected]>

Android needs libdrm built statically for recovery; enable that as well.

---
I posted this to mesa-dev, but I guess libdrm patches are supposed to go to dri-devel.

Rob

 Android.mk | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
Android.mk +19 -0
index 90cdcb3..1d8cd65 100644
@@ -27,6 +27,8 @@ include $(CLEAR_VARS)
 # Import variables LIBDRM_{,H_,INCLUDE_H_,INCLUDE_VMWGFX_H_}FILES
 include $(LOCAL_PATH)/Makefile.sources
 
+#static library for the device (recovery)
+include $(CLEAR_VARS)
 LOCAL_MODULE := libdrm
 LOCAL_MODULE_TAGS := optional
 
@@ -41,7 +43,24 @@ LOCAL_C_INCLUDES := \
 LOCAL_CFLAGS := \
 	-DHAVE_VISIBILITY=1 \
 	-DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
+include $(BUILD_STATIC_LIBRARY)
+
+# Shared library for the device
+include $(CLEAR_VARS)
+LOCAL_MODULE := libdrm
+LOCAL_MODULE_TAGS := optional
 
+LOCAL_SRC_FILES := $(LIBDRM_FILES)
+LOCAL_EXPORT_C_INCLUDE_DIRS := \
+        $(LOCAL_PATH) \
+        $(LOCAL_PATH)/include/drm
+
+LOCAL_C_INCLUDES := \
+        $(LOCAL_PATH)/include/drm
+
+LOCAL_CFLAGS := \
+        -DHAVE_VISIBILITY=1 \
+        -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
 include $(BUILD_SHARED_LIBRARY)
 
 include $(call all-makefiles-under,$(LOCAL_PATH))
Signature · 6 lines
2.5.0

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw
Quoted 5 lines · Rob Herring

From: Sumit Semwal <[email protected]>

Android needs libdrm built statically for recovery; enable that as well.

Quoted 8 lines

---
I posted this to mesa-dev, but I guess libdrm patches are supposed to go to dri-devel.

Thanks Rob.

I've pushed all outstanding libdrm patches that I could find. Do let me know if I missed anything.

-Emil
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
Quoted 14 lines · Emil Velikov
Quoted 5 lines · Rob Herring

From: Sumit Semwal <[email protected]>

Android needs libdrm built statically for recovery; enable that as well.

Quoted 8 lines

---
I posted this to mesa-dev, but I guess libdrm patches are supposed to go to dri-devel.

Quoted 4 lines

Thanks Rob.

I've pushed all outstanding libdrm patches that I could find. Do let me know if I missed anything.

Thanks. That's the only one I had for libdrm.

Rob
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel