mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v2] beep: new package
@ 2017-10-10 10:06 Bastian Stender
  2017-10-10 10:17 ` Bastian Stender
  0 siblings, 1 reply; 2+ messages in thread
From: Bastian Stender @ 2017-10-10 10:06 UTC (permalink / raw)
  To: ptxdist; +Cc: Bastian Stender

Extended beep utility that does pretty much the same as busybox' beep,
but allows reading stdin and specifying an alternative console device.

This is especially useful to test the kernel drivers "pwm-beeper" and
"gpio-beeper". To do so enable CONFIG_INPUT_EVDEV and specify the input
device with -e.

Signed-off-by: Bastian Stender <bst@pengutronix.de>
---
 patches/beep-1.3/0001-Makefile-fix.patch | 25 +++++++++++++++
 rules/beep.in                            |  7 +++++
 rules/beep.make                          | 54 ++++++++++++++++++++++++++++++++
 3 files changed, 86 insertions(+)
 create mode 100644 patches/beep-1.3/0001-Makefile-fix.patch
 create mode 100644 rules/beep.in
 create mode 100644 rules/beep.make

diff --git a/patches/beep-1.3/0001-Makefile-fix.patch b/patches/beep-1.3/0001-Makefile-fix.patch
new file mode 100644
index 000000000..3a0e4eae8
--- /dev/null
+++ b/patches/beep-1.3/0001-Makefile-fix.patch
@@ -0,0 +1,25 @@
+From: Bastian Stender <bst@pengutronix.de>
+Date: Tue, 10 Oct 2017 11:58:17 +0200
+Subject: [PATCH] Makefile: fix
+
+Signed-off-by: Bastian Stender <bst@pengutronix.de>
+---
+ Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index cc359c4843e4..23f40d4a2a10 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,9 +1,9 @@
+ CC=gcc
+ FLAGS=-Wall
+ EXEC_NAME=beep
+-INSTALL_DIR=/usr/bin
++INSTALL_DIR=${DESTDIR}/usr/bin
+ MAN_FILE=beep.1.gz
+-MAN_DIR=/usr/man/man1
++MAN_DIR=${DESTDIR}/usr/man/man1
+ 
+ default : beep
+ 
diff --git a/rules/beep.in b/rules/beep.in
new file mode 100644
index 000000000..4b41c613a
--- /dev/null
+++ b/rules/beep.in
@@ -0,0 +1,7 @@
+## SECTION=project_specific
+
+config BEEP
+	tristate
+	prompt "beep"
+	help
+	  Extended beep utility
diff --git a/rules/beep.make b/rules/beep.make
new file mode 100644
index 000000000..af39ffae5
--- /dev/null
+++ b/rules/beep.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Bastian Stender <bst@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_BEEP) += beep
+
+#
+# Paths and names
+#
+BEEP_VERSION	:= 1.3
+BEEP_MD5	:= 49c340ceb95dbda3f97b2daafac7892a
+BEEP		:= beep-$(BEEP_VERSION)
+BEEP_SUFFIX	:= tar.gz
+BEEP_URL	:= http://www.johnath.com/beep/$(BEEP).$(BEEP_SUFFIX)
+BEEP_SOURCE	:= $(SRCDIR)/$(BEEP).$(BEEP_SUFFIX)
+BEEP_DIR	:= $(BUILDDIR)/$(BEEP)
+BEEP_LICENSE	:= GPL-2.0
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+BEEP_CONF_TOOL	:= NO
+BEEP_MAKE_OPT	:= CC=$(CROSS_CC)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/beep.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, beep)
+	@$(call install_fixup, beep,PRIORITY,optional)
+	@$(call install_fixup, beep,SECTION,base)
+	@$(call install_fixup, beep,AUTHOR,"Bastian Stender <bst@pengutronix.de>")
+	@$(call install_fixup, beep,DESCRIPTION,missing)
+
+	@$(call install_copy, beep, 0, 0, 0755, -, /usr/bin/beep)
+
+	@$(call install_finish, beep)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [PATCH v2] beep: new package
  2017-10-10 10:06 [ptxdist] [PATCH v2] beep: new package Bastian Stender
@ 2017-10-10 10:17 ` Bastian Stender
  0 siblings, 0 replies; 2+ messages in thread
From: Bastian Stender @ 2017-10-10 10:17 UTC (permalink / raw)
  To: ptxdist

On 10/10/2017 12:06 PM, Bastian Stender wrote:
> Extended beep utility that does pretty much the same as busybox' beep,
> but allows reading stdin and specifying an alternative console device.
> 
> This is especially useful to test the kernel drivers "pwm-beeper" and
> "gpio-beeper". To do so enable CONFIG_INPUT_EVDEV and specify the input
> device with -e.
> 
> Signed-off-by: Bastian Stender <bst@pengutronix.de>
> ---
>   patches/beep-1.3/0001-Makefile-fix.patch | 25 +++++++++++++++
>   rules/beep.in                            |  7 +++++
>   rules/beep.make                          | 54 ++++++++++++++++++++++++++++++++
>   3 files changed, 86 insertions(+)
>   create mode 100644 patches/beep-1.3/0001-Makefile-fix.patch
>   create mode 100644 rules/beep.in
>   create mode 100644 rules/beep.make
> 
> diff --git a/patches/beep-1.3/0001-Makefile-fix.patch b/patches/beep-1.3/0001-Makefile-fix.patch
> new file mode 100644
> index 000000000..3a0e4eae8
> --- /dev/null
> +++ b/patches/beep-1.3/0001-Makefile-fix.patch
> @@ -0,0 +1,25 @@
> +From: Bastian Stender <bst@pengutronix.de>
> +Date: Tue, 10 Oct 2017 11:58:17 +0200
> +Subject: [PATCH] Makefile: fix
> +
> +Signed-off-by: Bastian Stender <bst@pengutronix.de>
> +---
> + Makefile | 4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/Makefile b/Makefile
> +index cc359c4843e4..23f40d4a2a10 100644
> +--- a/Makefile
> ++++ b/Makefile
> +@@ -1,9 +1,9 @@
> + CC=gcc
> + FLAGS=-Wall
> + EXEC_NAME=beep
> +-INSTALL_DIR=/usr/bin
> ++INSTALL_DIR=${DESTDIR}/usr/bin
> + MAN_FILE=beep.1.gz
> +-MAN_DIR=/usr/man/man1
> ++MAN_DIR=${DESTDIR}/usr/man/man1
> +
> + default : beep
> +
> diff --git a/rules/beep.in b/rules/beep.in
> new file mode 100644
> index 000000000..4b41c613a
> --- /dev/null
> +++ b/rules/beep.in
> @@ -0,0 +1,7 @@
> +## SECTION=project_specific

Argh, this should have been "multimedia_sound", will send v3 m(

> +
> +config BEEP
> +	tristate
> +	prompt "beep"
> +	help
> +	  Extended beep utility
> diff --git a/rules/beep.make b/rules/beep.make
> new file mode 100644
> index 000000000..af39ffae5
> --- /dev/null
> +++ b/rules/beep.make
> @@ -0,0 +1,54 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2017 by Bastian Stender <bst@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_BEEP) += beep
> +
> +#
> +# Paths and names
> +#
> +BEEP_VERSION	:= 1.3
> +BEEP_MD5	:= 49c340ceb95dbda3f97b2daafac7892a
> +BEEP		:= beep-$(BEEP_VERSION)
> +BEEP_SUFFIX	:= tar.gz
> +BEEP_URL	:= http://www.johnath.com/beep/$(BEEP).$(BEEP_SUFFIX)
> +BEEP_SOURCE	:= $(SRCDIR)/$(BEEP).$(BEEP_SUFFIX)
> +BEEP_DIR	:= $(BUILDDIR)/$(BEEP)
> +BEEP_LICENSE	:= GPL-2.0
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +BEEP_CONF_TOOL	:= NO
> +BEEP_MAKE_OPT	:= CC=$(CROSS_CC)
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/beep.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, beep)
> +	@$(call install_fixup, beep,PRIORITY,optional)
> +	@$(call install_fixup, beep,SECTION,base)
> +	@$(call install_fixup, beep,AUTHOR,"Bastian Stender <bst@pengutronix.de>")
> +	@$(call install_fixup, beep,DESCRIPTION,missing)
> +
> +	@$(call install_copy, beep, 0, 0, 0755, -, /usr/bin/beep)
> +
> +	@$(call install_finish, beep)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make
> 

Bastian

-- 
Pengutronix e.K.
Industrial Linux Solutions
http://www.pengutronix.de/
Peiner Str. 6-8, 31137 Hildesheim, Germany
Amtsgericht Hildesheim, HRA 2686

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-10 10:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-10 10:06 [ptxdist] [PATCH v2] beep: new package Bastian Stender
2017-10-10 10:17 ` Bastian Stender

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox