Re: [ptxdist] [PATCH 1/2] usb-modeswitch: New package

2013-03-24 Thread Michael Olbrich
On Sat, Mar 23, 2013 at 10:11:27PM +0100, Bernhard Walle wrote:
> Signed-off-by: Bernhard Walle 

Thanks, both applied with cosmetic changes.

Michael

> ---
>  rules/usb-modeswitch.in   | 10 
>  rules/usb-modeswitch.make | 58 
> +++
>  2 files changed, 68 insertions(+)
>  create mode 100644 rules/usb-modeswitch.in
>  create mode 100644 rules/usb-modeswitch.make
> 
> diff --git a/rules/usb-modeswitch.in b/rules/usb-modeswitch.in
> new file mode 100644
> index 000..4df7fe1
> --- /dev/null
> +++ b/rules/usb-modeswitch.in
> @@ -0,0 +1,10 @@
> +## SECTION=shell_and_console
> +
> +config USB_MODESWITCH
> + tristate
> + prompt "usb-modeswitch"
> + select LIBUSB_COMPAT
> + help
> +   Activating switchable USB devices on Linux.
> +
> +# vim: set sw=8 ts=8 noet ft=kconfig:
> diff --git a/rules/usb-modeswitch.make b/rules/usb-modeswitch.make
> new file mode 100644
> index 000..4534d9c
> --- /dev/null
> +++ b/rules/usb-modeswitch.make
> @@ -0,0 +1,58 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2013 by Bernhard Walle 
> +#
> +# 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_USB_MODESWITCH) += usb-modeswitch
> +
> +#
> +# Paths and names
> +#
> +USB_MODESWITCH_VERSION   := 1.2.5
> +USB_MODESWITCH_MD5   := c393603908eceab95444c5bde790f6f0
> +USB_MODESWITCH   := usb-modeswitch-$(USB_MODESWITCH_VERSION)
> +USB_MODESWITCH_SUFFIX:= tar.bz2
> +USB_MODESWITCH_URL   := 
> http://www.draisberghof.de/usb_modeswitch/$(USB_MODESWITCH).$(USB_MODESWITCH_SUFFIX)
> +USB_MODESWITCH_SOURCE:= 
> $(SRCDIR)/$(USB_MODESWITCH).$(USB_MODESWITCH_SUFFIX)
> +USB_MODESWITCH_DIR   := $(BUILDDIR)/$(USB_MODESWITCH)
> +USB_MODESWITCH_LICENSE   := GPL
> +
> +# 
> 
> +# Prepare
> +# 
> 
> +
> +#
> +# autoconf
> +#
> +USB_MODESWITCH_CONF_TOOL := NO
> +USB_MODESWITCH_MAKE_ENV  := $(CROSS_ENV)
> +USB_MODESWITCH_MAKE_OPT := $(CROSS_ENV_PROGS)
> +
> +# 
> 
> +# Target-Install
> +# 
> 
> +
> +$(STATEDIR)/usb-modeswitch.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, usb-modeswitch)
> + @$(call install_fixup, usb-modeswitch,PRIORITY,optional)
> + @$(call install_fixup, usb-modeswitch,SECTION,base)
> + @$(call install_fixup, usb-modeswitch,AUTHOR,"Bernhard Walle 
> ")
> + @$(call install_fixup, usb-modeswitch,DESCRIPTION,missing)
> +
> + @$(call install_copy, usb-modeswitch, 0, 0, 0755, -, 
> /usr/sbin/usb_modeswitch)
> +
> + @$(call install_finish, usb-modeswitch)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> -- 
> 1.8.2
> 
> 
> -- 
> ptxdist mailing list
> ptxdist@pengutronix.de
> 

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

-- 
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] [PATCH 1/2] usb-modeswitch: New package

2013-03-23 Thread Bernhard Walle
Signed-off-by: Bernhard Walle 
---
 rules/usb-modeswitch.in   | 10 
 rules/usb-modeswitch.make | 58 +++
 2 files changed, 68 insertions(+)
 create mode 100644 rules/usb-modeswitch.in
 create mode 100644 rules/usb-modeswitch.make

diff --git a/rules/usb-modeswitch.in b/rules/usb-modeswitch.in
new file mode 100644
index 000..4df7fe1
--- /dev/null
+++ b/rules/usb-modeswitch.in
@@ -0,0 +1,10 @@
+## SECTION=shell_and_console
+
+config USB_MODESWITCH
+   tristate
+   prompt "usb-modeswitch"
+   select LIBUSB_COMPAT
+   help
+ Activating switchable USB devices on Linux.
+
+# vim: set sw=8 ts=8 noet ft=kconfig:
diff --git a/rules/usb-modeswitch.make b/rules/usb-modeswitch.make
new file mode 100644
index 000..4534d9c
--- /dev/null
+++ b/rules/usb-modeswitch.make
@@ -0,0 +1,58 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2013 by Bernhard Walle 
+#
+# 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_USB_MODESWITCH) += usb-modeswitch
+
+#
+# Paths and names
+#
+USB_MODESWITCH_VERSION := 1.2.5
+USB_MODESWITCH_MD5 := c393603908eceab95444c5bde790f6f0
+USB_MODESWITCH := usb-modeswitch-$(USB_MODESWITCH_VERSION)
+USB_MODESWITCH_SUFFIX  := tar.bz2
+USB_MODESWITCH_URL := 
http://www.draisberghof.de/usb_modeswitch/$(USB_MODESWITCH).$(USB_MODESWITCH_SUFFIX)
+USB_MODESWITCH_SOURCE  := $(SRCDIR)/$(USB_MODESWITCH).$(USB_MODESWITCH_SUFFIX)
+USB_MODESWITCH_DIR := $(BUILDDIR)/$(USB_MODESWITCH)
+USB_MODESWITCH_LICENSE := GPL
+
+# 
+# Prepare
+# 
+
+#
+# autoconf
+#
+USB_MODESWITCH_CONF_TOOL   := NO
+USB_MODESWITCH_MAKE_ENV:= $(CROSS_ENV)
+USB_MODESWITCH_MAKE_OPT := $(CROSS_ENV_PROGS)
+
+# 
+# Target-Install
+# 
+
+$(STATEDIR)/usb-modeswitch.targetinstall:
+   @$(call targetinfo)
+
+   @$(call install_init, usb-modeswitch)
+   @$(call install_fixup, usb-modeswitch,PRIORITY,optional)
+   @$(call install_fixup, usb-modeswitch,SECTION,base)
+   @$(call install_fixup, usb-modeswitch,AUTHOR,"Bernhard Walle 
")
+   @$(call install_fixup, usb-modeswitch,DESCRIPTION,missing)
+
+   @$(call install_copy, usb-modeswitch, 0, 0, 0755, -, 
/usr/sbin/usb_modeswitch)
+
+   @$(call install_finish, usb-modeswitch)
+
+   @$(call touch)
+
+# vim: syntax=make
-- 
1.8.2


-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH 1/2] usb-modeswitch: New package

2013-03-23 Thread Michael Olbrich
On Sat, Mar 23, 2013 at 12:45:09PM +0100, Bernhard Walle wrote:
> Signed-off-by: Bernhard Walle 
> ---
>  rules/usb-modeswitch.in   | 10 +++
>  rules/usb-modeswitch.make | 69 
> +++
>  2 files changed, 79 insertions(+)
>  create mode 100644 rules/usb-modeswitch.in
>  create mode 100644 rules/usb-modeswitch.make
> 
> diff --git a/rules/usb-modeswitch.in b/rules/usb-modeswitch.in
> new file mode 100644
> index 000..4df7fe1
> --- /dev/null
> +++ b/rules/usb-modeswitch.in
> @@ -0,0 +1,10 @@
> +## SECTION=shell_and_console
> +
> +config USB_MODESWITCH
> + tristate
> + prompt "usb-modeswitch"
> + select LIBUSB_COMPAT
> + help
> +   Activating switchable USB devices on Linux.
> +
> +# vim: set sw=8 ts=8 noet ft=kconfig:
> diff --git a/rules/usb-modeswitch.make b/rules/usb-modeswitch.make
> new file mode 100644
> index 000..4b314bc
> --- /dev/null
> +++ b/rules/usb-modeswitch.make
> @@ -0,0 +1,69 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2013 by Bernhard Walle 
> +#
> +# 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_USB_MODESWITCH) += usb-modeswitch
> +
> +#
> +# Paths and names
> +#
> +USB_MODESWITCH_VERSION   := 1.2.5
> +USB_MODESWITCH_MD5   := c393603908eceab95444c5bde790f6f0
> +USB_MODESWITCH   := usb-modeswitch-$(USB_MODESWITCH_VERSION)
> +USB_MODESWITCH_SUFFIX:= tar.bz2
> +USB_MODESWITCH_URL   := 
> http://www.draisberghof.de/usb_modeswitch/$(USB_MODESWITCH).$(USB_MODESWITCH_SUFFIX)
> +USB_MODESWITCH_SOURCE:= 
> $(SRCDIR)/$(USB_MODESWITCH).$(USB_MODESWITCH_SUFFIX)
> +USB_MODESWITCH_DIR   := $(BUILDDIR)/$(USB_MODESWITCH)
> +USB_MODESWITCH_LICENSE   := GPL
> +
> +# 
> 
> +# Prepare
> +# 
> 
> +
> +#
> +# autoconf
> +#
> +USB_MODESWITCH_CONF_TOOL := NO
> +USB_MODESWITCH_MAKE_ENV  := $(CROSS_ENV)

> +USB_MODESWITCH_MAKEVARS  := $(CROSS_ENV) 
> CFLAGS=-I$(PTXCONF_SYSROOT_TARGET)/usr/include

USB_MODESWITCH_MAKE_OPT := $(CROSS_ENV_PROGS)

should be enough.

> +
> +# 
> 
> +# Install
> +# 
> 
> +
> +$(STATEDIR)/usb-modeswitch.install:
> + @$(call targetinfo)
> + @$(call world/install, USB_MODESWITCH)
> + @install -D -m0755 $(USB_MODESWITCH_DIR)/usb_modeswitch \
> + $(USB_MODESWITCH_PKGDIR)/usr/sbin/usb_modeswitch

Why this? "make install" already installs this.

Michael

> + @$(call touch)
> +
> +# 
> 
> +# Target-Install
> +# 
> 
> +
> +$(STATEDIR)/usb-modeswitch.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, usb-modeswitch)
> + @$(call install_fixup, usb-modeswitch,PRIORITY,optional)
> + @$(call install_fixup, usb-modeswitch,SECTION,base)
> + @$(call install_fixup, usb-modeswitch,AUTHOR,"Bernhard Walle 
> ")
> + @$(call install_fixup, usb-modeswitch,DESCRIPTION,missing)
> +
> + @$(call install_copy, usb-modeswitch, 0, 0, 0755, -, 
> /usr/sbin/usb_modeswitch)
> +
> + @$(call install_finish, usb-modeswitch)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> -- 
> 1.8.2
> 
> 
> -- 
> ptxdist mailing list
> ptxdist@pengutronix.de
> 

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

-- 
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] [PATCH 1/2] usb-modeswitch: New package

2013-03-23 Thread Bernhard Walle
Signed-off-by: Bernhard Walle 
---
 rules/usb-modeswitch.in   | 10 +++
 rules/usb-modeswitch.make | 69 +++
 2 files changed, 79 insertions(+)
 create mode 100644 rules/usb-modeswitch.in
 create mode 100644 rules/usb-modeswitch.make

diff --git a/rules/usb-modeswitch.in b/rules/usb-modeswitch.in
new file mode 100644
index 000..4df7fe1
--- /dev/null
+++ b/rules/usb-modeswitch.in
@@ -0,0 +1,10 @@
+## SECTION=shell_and_console
+
+config USB_MODESWITCH
+   tristate
+   prompt "usb-modeswitch"
+   select LIBUSB_COMPAT
+   help
+ Activating switchable USB devices on Linux.
+
+# vim: set sw=8 ts=8 noet ft=kconfig:
diff --git a/rules/usb-modeswitch.make b/rules/usb-modeswitch.make
new file mode 100644
index 000..4b314bc
--- /dev/null
+++ b/rules/usb-modeswitch.make
@@ -0,0 +1,69 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2013 by Bernhard Walle 
+#
+# 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_USB_MODESWITCH) += usb-modeswitch
+
+#
+# Paths and names
+#
+USB_MODESWITCH_VERSION := 1.2.5
+USB_MODESWITCH_MD5 := c393603908eceab95444c5bde790f6f0
+USB_MODESWITCH := usb-modeswitch-$(USB_MODESWITCH_VERSION)
+USB_MODESWITCH_SUFFIX  := tar.bz2
+USB_MODESWITCH_URL := 
http://www.draisberghof.de/usb_modeswitch/$(USB_MODESWITCH).$(USB_MODESWITCH_SUFFIX)
+USB_MODESWITCH_SOURCE  := $(SRCDIR)/$(USB_MODESWITCH).$(USB_MODESWITCH_SUFFIX)
+USB_MODESWITCH_DIR := $(BUILDDIR)/$(USB_MODESWITCH)
+USB_MODESWITCH_LICENSE := GPL
+
+# 
+# Prepare
+# 
+
+#
+# autoconf
+#
+USB_MODESWITCH_CONF_TOOL   := NO
+USB_MODESWITCH_MAKE_ENV:= $(CROSS_ENV)
+USB_MODESWITCH_MAKEVARS:= $(CROSS_ENV) 
CFLAGS=-I$(PTXCONF_SYSROOT_TARGET)/usr/include
+
+# 
+# Install
+# 
+
+$(STATEDIR)/usb-modeswitch.install:
+   @$(call targetinfo)
+   @$(call world/install, USB_MODESWITCH)
+   @install -D -m0755 $(USB_MODESWITCH_DIR)/usb_modeswitch \
+   $(USB_MODESWITCH_PKGDIR)/usr/sbin/usb_modeswitch
+   @$(call touch)
+
+# 
+# Target-Install
+# 
+
+$(STATEDIR)/usb-modeswitch.targetinstall:
+   @$(call targetinfo)
+
+   @$(call install_init, usb-modeswitch)
+   @$(call install_fixup, usb-modeswitch,PRIORITY,optional)
+   @$(call install_fixup, usb-modeswitch,SECTION,base)
+   @$(call install_fixup, usb-modeswitch,AUTHOR,"Bernhard Walle 
")
+   @$(call install_fixup, usb-modeswitch,DESCRIPTION,missing)
+
+   @$(call install_copy, usb-modeswitch, 0, 0, 0755, -, 
/usr/sbin/usb_modeswitch)
+
+   @$(call install_finish, usb-modeswitch)
+
+   @$(call touch)
+
+# vim: syntax=make
-- 
1.8.2


-- 
ptxdist mailing list
ptxdist@pengutronix.de