From: Lucas Stach <l.stach@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 5/5] piglit: new package
Date: Tue, 6 Jun 2017 16:37:05 +0200 [thread overview]
Message-ID: <20170606143705.5219-5-l.stach@pengutronix.de> (raw)
In-Reply-To: <20170606143705.5219-1-l.stach@pengutronix.de>
Piglit is the opensource OpenGL/OpenCL test suite.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
rules/piglit.in | 47 ++++++++++++++++++++++++++++++++++++++++
rules/piglit.make | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 111 insertions(+)
create mode 100644 rules/piglit.in
create mode 100644 rules/piglit.make
diff --git a/rules/piglit.in b/rules/piglit.in
new file mode 100644
index 000000000000..9065bb03fd36
--- /dev/null
+++ b/rules/piglit.in
@@ -0,0 +1,47 @@
+## SECTION=test_suites
+
+menuconfig PIGLIT
+ tristate
+ prompt "piglit"
+ select HOST_CMAKE
+ select HOST_SYSTEM_PYTHON
+ select HOST_SYSTEM_PYTHON_SIX
+ select HOST_SYSTEM_PYTHON_NUMPY
+ select PYTHON3
+ select PYTHON3_BZ2
+ select PYTHON3_ZLIB
+ select PYTHON3_LZMA
+ select PYTHON3_MAKO
+ select PYTHON3_SIX
+ select WAFFLE
+ select FREEGLUT if PIGLIT_TESTS_OPENGL
+ select MESALIB_GLX if PIGLIT_TESTS_OPENGL
+ select MESALIB_OPENGL if PIGLIT_TESTS_OPENGL
+ select XORG if PIGLIT_TESTS_OPENGL
+ select MESALIB_GLES1 if PIGLIT_TESTS_OPENGLES1
+ select MESALIB_GLES2 if PIGLIT_TESTS_OPENGLES2 || PIGLIT_TESTS_OPENGLES3
+ help
+ Piglit is the opensource OpenGL/OpenCL test suite.
+
+if PIGLIT
+
+# OpenGL tests need some more dependencies sorted out
+
+config PIGLIT_TESTS_OPENGL
+ bool
+ prompt "build OpenGL tests"
+
+config PIGLIT_TESTS_OPENGLES1
+ bool
+ prompt "build OpenGL ES1 tests"
+
+config PIGLIT_TESTS_OPENGLES2
+ bool
+ prompt "build OpenGL ES2 tests"
+
+config PIGLIT_TESTS_OPENGLES3
+ bool
+ prompt "build OpenGL ES3 tests"
+ depends on BROKEN
+
+endif
diff --git a/rules/piglit.make b/rules/piglit.make
new file mode 100644
index 000000000000..04978c254627
--- /dev/null
+++ b/rules/piglit.make
@@ -0,0 +1,64 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Lucas Stach <l.stach@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PIGLIT) += piglit
+
+#
+# Paths and names
+#
+PIGLIT_VERSION := b29747a00c6a
+PIGLIT_MD5 := 9b3fe462a692feaf48d6675f5cf59ed3
+PIGLIT := piglit-$(PIGLIT_VERSION)
+PIGLIT_SUFFIX := tar.xz
+PIGLIT_URL := http://anongit.freedesktop.org/git/piglit.git;tag=$(PIGLIT_VERSION)
+PIGLIT_SOURCE := $(SRCDIR)/$(PIGLIT).$(PIGLIT_SUFFIX)
+PIGLIT_DIR := $(BUILDDIR)/$(PIGLIT)
+PIGLIT_LICENSE := MIT AND GPLv2+ AND GPLv3 AND LGPLv2
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PIGLIT_BUILD_OOT := NO
+PIGLIT_CONF_TOOL := cmake
+
+PIGLIT_CONF_OPT := $(CROSS_CMAKE_USR) \
+ -DPYTHON_EXECUTABLE:FILEPATH=$(PTXDIST_TOPDIR)/bin/python \
+ -DPIGLIT_USE_WAFFLE=1 \
+ -DPIGLIT_BUILD_GL_TESTS=$(call ptx/ifdef, PTXCONF_PIGLIT_TESTS_OPENGL,1,0) \
+ -DPIGLIT_BUILD_GLES1_TESTS=$(call ptx/ifdef, PTXCONF_PIGLIT_TESTS_OPENGLES1,1,0) \
+ -DPIGLIT_BUILD_GLES2_TESTS=$(call ptx/ifdef, PTXCONF_PIGLIT_TESTS_OPENGLES2,1,0) \
+ -DPIGLIT_BUILD_GLES3_TESTS=$(call ptx/ifdef, PTXCONF_PIGLIT_TESTS_OPENGLES3,1,0) \
+ -DPIGLIT_BUILD_CL_TESTS=0
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/piglit.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, piglit)
+ @$(call install_fixup, piglit,PRIORITY,optional)
+ @$(call install_fixup, piglit,SECTION,base)
+ @$(call install_fixup, piglit,AUTHOR,"Lucas Stach <l.stach@pengutronix.de>")
+ @$(call install_fixup, piglit,DESCRIPTION,missing)
+
+ @$(call install_copy, piglit, 0, 0, 755, -, /usr/bin/piglit)
+ @$(call install_tree, piglit, 0, 0, -, /usr/lib/piglit, n)
+
+ @$(call install_finish, piglit)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.11.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
prev parent reply other threads:[~2017-06-06 14:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-06 14:37 [ptxdist] [PATCH 1/5] host-system-python: add check for six and numpy modules Lucas Stach
2017-06-06 14:37 ` [ptxdist] [PATCH 2/5] waffle: new package Lucas Stach
2017-06-06 14:37 ` [ptxdist] [PATCH 3/5] python3-six: " Lucas Stach
2017-06-07 9:25 ` Roland Hieber
2017-06-06 14:37 ` [ptxdist] [PATCH 4/5] python3-mako: " Lucas Stach
2017-06-06 14:37 ` Lucas Stach [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170606143705.5219-5-l.stach@pengutronix.de \
--to=l.stach@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox