Skip to contentSkip to conversation

amdgpu: add Makefile.sources

PATCH In review Mauro Rossi 3 participants 5 messages Aug 18, 2015 – Aug 20, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 amdgpu: add Makefile.sources

---
 amdgpu/Makefile.am      | 18 ++++--------------
 amdgpu/Makefile.sources | 15 +++++++++++++++
 2 files changed, 19 insertions(+), 14 deletions(-)
 create mode 100644 amdgpu/Makefile.sources
amdgpu/Makefile.am +4 -14
index ed97803..37f7198 100644
@@ -22,6 +22,8 @@
 # Authors:
 #    Jérôme Glisse <[email protected]>
 
+include Makefile.sources
+
 AM_CFLAGS = \
 	$(WARN_CFLAGS) -Wno-switch-enum \
 	-I$(top_srcdir) \
@@ -33,22 +35,10 @@ libdrm_amdgpu_ladir = $(libdir)
 libdrm_amdgpu_la_LDFLAGS = -version-number 1:0:0 -no-undefined
 libdrm_amdgpu_la_LIBADD = ../libdrm.la @PTHREADSTUBS_LIBS@
 
-libdrm_amdgpu_la_SOURCES = \
-	amdgpu.h \
-	amdgpu_bo.c \
-	amdgpu_cs.c \
-	amdgpu_device.c \
-	amdgpu_gpu_info.c \
-	amdgpu_internal.h \
-	amdgpu_vamgr.c \
-	util_hash.c \
-	util_hash.h \
-	util_hash_table.c \
-	util_hash_table.h
+libdrm_amdgpu_la_SOURCES = $(LIBDRM_AMDGPU_FILES)
 
 libdrm_amdgpuincludedir = ${includedir}/libdrm
-libdrm_amdgpuinclude_HEADERS = \
-	amdgpu.h
+libdrm_amdgpuinclude_HEADERS = $(LIBDRM_AMDGPU_H_FILES)
 
 pkgconfigdir = @pkgconfigdir@
 pkgconfig_DATA = libdrm_amdgpu.pc
amdgpu/Makefile.sources new file +15 -0
new file mode 100644
index 0000000..c359f17
@@ -0,0 +1,15 @@
+LIBDRM_AMDGPU_FILES := \
+	amdgpu.h \
+	amdgpu_bo.c \
+	amdgpu_cs.c \
+	amdgpu_device.c \
+	amdgpu_gpu_info.c \
+	amdgpu_internal.h \
+	amdgpu_vamgr.c \
+	util_hash.c \
+	util_hash.h \
+	util_hash_table.c \
+	util_hash_table.h
+
+LIBDRM_AMDGPU_H_FILES := \
+	amdgpu.h
Signature · 1 line
2.1.4

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

#1 lore raw

PATCH 2/2 amdgpu: add Android build support

---
 amdgpu/Android.mk | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 amdgpu/Android.mk
amdgpu/Android.mk new file +18 -0
new file mode 100644
index 0000000..469df1b
@@ -0,0 +1,18 @@
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+
+# Import variables LIBDRM_AMDGPU_FILES, LIBDRM_AMDGPU_H_FILES
+include $(LOCAL_PATH)/Makefile.sources
+
+LOCAL_MODULE := libdrm_amdgpu
+LOCAL_MODULE_TAGS := optional
+
+LOCAL_SHARED_LIBRARIES := libdrm
+
+LOCAL_SRC_FILES := $(LIBDRM_AMDGPU_FILES)
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
+
+LOCAL_CFLAGS := \
+	-DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
+
+include $(BUILD_SHARED_LIBRARY)
Signature · 6 lines
2.1.4

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/2
#2 lore raw
In reply to Mauro Rossi
Quoted 5 lines · Mauro Rossi
---
 amdgpu/Makefile.am      | 18 ++++--------------
 amdgpu/Makefile.sources | 15 +++++++++++++++
 2 files changed, 19 insertions(+), 14 deletions(-)
 create mode 100644 amdgpu/Makefile.sources

For the series:

Quoted 64 lines
amdgpu/Makefile.am +4 -14
index ed97803..37f7198 100644
@@ -22,6 +22,8 @@
 # Authors:
 #    Jérôme Glisse <[email protected]>
 
+include Makefile.sources
+
 AM_CFLAGS = \
        $(WARN_CFLAGS) -Wno-switch-enum \
        -I$(top_srcdir) \
@@ -33,22 +35,10 @@ libdrm_amdgpu_ladir = $(libdir)
 libdrm_amdgpu_la_LDFLAGS = -version-number 1:0:0 -no-undefined
 libdrm_amdgpu_la_LIBADD = ../libdrm.la @PTHREADSTUBS_LIBS@
 
-libdrm_amdgpu_la_SOURCES = \
-       amdgpu.h \
-       amdgpu_bo.c \
-       amdgpu_cs.c \
-       amdgpu_device.c \
-       amdgpu_gpu_info.c \
-       amdgpu_internal.h \
-       amdgpu_vamgr.c \
-       util_hash.c \
-       util_hash.h \
-       util_hash_table.c \
-       util_hash_table.h
+libdrm_amdgpu_la_SOURCES = $(LIBDRM_AMDGPU_FILES)
 
 libdrm_amdgpuincludedir = ${includedir}/libdrm
-libdrm_amdgpuinclude_HEADERS = \
-       amdgpu.h
+libdrm_amdgpuinclude_HEADERS = $(LIBDRM_AMDGPU_H_FILES)
 
 pkgconfigdir = @pkgconfigdir@
 pkgconfig_DATA = libdrm_amdgpu.pc
amdgpu/Makefile.sources new file +15 -1
new file mode 100644
index 0000000..c359f17
@@ -0,0 +1,15 @@
+LIBDRM_AMDGPU_FILES := \
+       amdgpu.h \
+       amdgpu_bo.c \
+       amdgpu_cs.c \
+       amdgpu_device.c \
+       amdgpu_gpu_info.c \
+       amdgpu_internal.h \
+       amdgpu_vamgr.c \
+       util_hash.c \
+       util_hash.h \
+       util_hash_table.c \
+       util_hash_table.h
+
+LIBDRM_AMDGPU_H_FILES := \
+       amdgpu.h
--

2.1.4

Quoted 5 lines

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

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