summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-04-16 09:50:55 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-04-16 11:16:49 +0200
commitccd30b4f2b9d1a3a37c9a5256a5a0ec2067a897c (patch)
tree4b7e6fa2012610fb48a601e91600d1e754ffc46b
parent15cd592f6422911323e7a69daf5d7a09c8a01421 (diff)
downloadptxdist-ccd30b4f2b9d1a3a37c9a5256a5a0ec2067a897c.tar.gz
ptxdist-ccd30b4f2b9d1a3a37c9a5256a5a0ec2067a897c.tar.xz
ply: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/ply.in8
-rw-r--r--rules/ply.make73
2 files changed, 81 insertions, 0 deletions
diff --git a/rules/ply.in b/rules/ply.in
new file mode 100644
index 000000000..003be016f
--- /dev/null
+++ b/rules/ply.in
@@ -0,0 +1,8 @@
+## SECTION=debug_tools
+
+config PLY
+ tristate
+ select KERNEL_HEADER
+ prompt "ply"
+ help
+ FIXME
diff --git a/rules/ply.make b/rules/ply.make
new file mode 100644
index 000000000..bc8910661
--- /dev/null
+++ b/rules/ply.make
@@ -0,0 +1,73 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Michael Olbrich <m.olbrich@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_PLY) += ply
+
+#
+# Paths and names
+#
+PLY_VERSION := 2.1.0
+PLY_MD5 := cd7b5258d636db5d330f45ec858f9a5c
+PLY := ply-$(PLY_VERSION)
+PLY_SUFFIX := tar.gz
+PLY_URL := https://github.com/wkz/ply/releases/download/$(PLY_VERSION)/$(PLY).$(PLY_SUFFIX)
+PLY_SOURCE := $(SRCDIR)/$(PLY).$(PLY_SUFFIX)
+PLY_DIR := $(BUILDDIR)/$(PLY)
+PLY_LICENSE := GPL-2.0-only
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+# The files generated by lex and yacc are part of the tarball
+PLY_CONF_ENV := \
+ $(CROSS_ENV) \
+ ac_cv_prog_LEX=: \
+ ac_cv_prog_YACC=:
+
+#
+# autoconf
+#
+PLY_CONF_TOOL := autoconf
+
+ifdef PTXCONF_PLY
+ifdef PTXCONF_KERNEL
+ifneq ($(call remove_quotes,$(PTXCONF_KERNEL_HEADER_VERSION)),$(call remove_quotes,$(PTXCONF_KERNEL_VERSION)))
+$(error ply only works if the kernel header version matches the kernel version)
+endif
+endif
+endif
+
+PLY_CPPFLAGS := -isystem $(KERNEL_HEADERS_INCLUDE_DIR)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/ply.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, ply)
+ @$(call install_fixup, ply,PRIORITY,optional)
+ @$(call install_fixup, ply,SECTION,base)
+ @$(call install_fixup, ply,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
+ @$(call install_fixup, ply,DESCRIPTION,missing)
+
+ @$(call install_lib, ply, 0, 0, 0644, libply)
+ @$(call install_copy, ply, 0, 0, 0755, -, /usr/sbin/ply)
+
+ @$(call install_finish, ply)
+
+ @$(call touch)
+
+# vim: syntax=make