* [ptxdist] [PATCH 1/2] usb-modeswitch: New package @ 2013-03-23 11:45 Bernhard Walle 2013-03-23 11:45 ` [ptxdist] [PATCH 2/2] comgt: " Bernhard Walle 2013-03-23 19:12 ` [ptxdist] [PATCH 1/2] usb-modeswitch: " Michael Olbrich 0 siblings, 2 replies; 7+ messages in thread From: Bernhard Walle @ 2013-03-23 11:45 UTC (permalink / raw) To: ptxdist Signed-off-by: Bernhard Walle <bernhard@bwalle.de> --- 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 0000000..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 0000000..4b314bc --- /dev/null +++ b/rules/usb-modeswitch.make @@ -0,0 +1,69 @@ +# -*-makefile-*- +# +# Copyright (C) 2013 by Bernhard Walle <bernhard@bwalle.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_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 <bernhard@bwalle.de>") + @$(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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [ptxdist] [PATCH 2/2] comgt: New package 2013-03-23 11:45 [ptxdist] [PATCH 1/2] usb-modeswitch: New package Bernhard Walle @ 2013-03-23 11:45 ` Bernhard Walle 2013-03-23 19:18 ` Michael Olbrich 2013-03-23 19:12 ` [ptxdist] [PATCH 1/2] usb-modeswitch: " Michael Olbrich 1 sibling, 1 reply; 7+ messages in thread From: Bernhard Walle @ 2013-03-23 11:45 UTC (permalink / raw) To: ptxdist Signed-off-by: Bernhard Walle <bernhard@bwalle.de> --- .../comgt.0.32/0001-Fix-cross-compilation.patch | 22 +++++++ patches/comgt.0.32/series | 4 ++ rules/comgt.in | 7 +++ rules/comgt.make | 67 ++++++++++++++++++++++ 4 files changed, 100 insertions(+) create mode 100644 patches/comgt.0.32/0001-Fix-cross-compilation.patch create mode 100644 patches/comgt.0.32/series create mode 100644 rules/comgt.in create mode 100644 rules/comgt.make diff --git a/patches/comgt.0.32/0001-Fix-cross-compilation.patch b/patches/comgt.0.32/0001-Fix-cross-compilation.patch new file mode 100644 index 0000000..b8ea7aa --- /dev/null +++ b/patches/comgt.0.32/0001-Fix-cross-compilation.patch @@ -0,0 +1,22 @@ +From: Bernhard Walle <bernhard@bwalle.de> +Date: Wed, 25 Jul 2012 17:35:00 +0200 +Subject: [PATCH] Fix cross compilation + +Signed-off-by: Bernhard Walle <bernhard@bwalle.de> +--- + Makefile | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/Makefile b/Makefile +index 6028647..412a7b3 100755 +--- a/Makefile ++++ b/Makefile +@@ -72,8 +72,6 @@ clean: + + + comgt: comgt.o +- cc comgt.o $(LDFLAGS) -o comgt + + comgt.o: comgt.c comgt.h +- cc comgt.c $(CFLAGS) + diff --git a/patches/comgt.0.32/series b/patches/comgt.0.32/series new file mode 100644 index 0000000..c471dfc --- /dev/null +++ b/patches/comgt.0.32/series @@ -0,0 +1,4 @@ +# generated by git-ptx-patches +#tag:base --start-number 1 +0001-Fix-cross-compilation.patch +# 42a9d69cd806f97d2b9a444234c6afa5 - git-ptx-patches magic diff --git a/rules/comgt.in b/rules/comgt.in new file mode 100644 index 0000000..8b1e11d --- /dev/null +++ b/rules/comgt.in @@ -0,0 +1,7 @@ +## SECTION=networking + +config COMGT + tristate + prompt "comgt" + help + Linux UMTS/GPRS command-line tool diff --git a/rules/comgt.make b/rules/comgt.make new file mode 100644 index 0000000..5dbb7f1 --- /dev/null +++ b/rules/comgt.make @@ -0,0 +1,67 @@ +# -*-makefile-*- +# +# Copyright (C) 2012 by Bernhard Walle <bernhard@bwalle.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_COMGT) += comgt + +# +# Paths and names +# +COMGT_VERSION := 0.32 +COMGT_MD5 := db2452680c3d953631299e331daf49ef +COMGT := comgt.$(COMGT_VERSION) +COMGT_SUFFIX := tgz +COMGT_URL := $(call ptx/mirror, SF, comgt/$(COMGT).$(COMGT_SUFFIX)) +COMGT_SOURCE := $(SRCDIR)/$(COMGT).$(COMGT_SUFFIX) +COMGT_DIR := $(BUILDDIR)/$(COMGT) +COMGT_LICENSE := GPL2 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +COMGT_CONF_TOOL := NO +COMGT_MAKE_ENV := $(CROSS_ENV) +COMGT_MAKEVARS := $(CROSS_ENV) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/comgt.install: + @$(call targetinfo) + @install -D -m0755 $(COMGT_DIR)/comgt $(COMGT_PKGDIR)/usr/sbin/comgt + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/comgt.targetinstall: + @$(call targetinfo) + + @$(call install_init, comgt) + @$(call install_fixup, comgt,PRIORITY,optional) + @$(call install_fixup, comgt,SECTION,base) + @$(call install_fixup, comgt,AUTHOR,"Bernhard Walle <bernhard@bwalle.de>") + @$(call install_fixup, comgt,DESCRIPTION,missing) + + @$(call install_copy, comgt, 0, 0, 0755, -, /usr/sbin/comgt) + + @$(call install_finish, comgt) + + @$(call touch) + +# vim: syntax=make -- 1.8.2 -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ptxdist] [PATCH 2/2] comgt: New package 2013-03-23 11:45 ` [ptxdist] [PATCH 2/2] comgt: " Bernhard Walle @ 2013-03-23 19:18 ` Michael Olbrich 0 siblings, 0 replies; 7+ messages in thread From: Michael Olbrich @ 2013-03-23 19:18 UTC (permalink / raw) To: ptxdist On Sat, Mar 23, 2013 at 12:45:10PM +0100, Bernhard Walle wrote: > Signed-off-by: Bernhard Walle <bernhard@bwalle.de> > --- > .../comgt.0.32/0001-Fix-cross-compilation.patch | 22 +++++++ > patches/comgt.0.32/series | 4 ++ > rules/comgt.in | 7 +++ > rules/comgt.make | 67 ++++++++++++++++++++++ > 4 files changed, 100 insertions(+) > create mode 100644 patches/comgt.0.32/0001-Fix-cross-compilation.patch > create mode 100644 patches/comgt.0.32/series > create mode 100644 rules/comgt.in > create mode 100644 rules/comgt.make > > diff --git a/patches/comgt.0.32/0001-Fix-cross-compilation.patch b/patches/comgt.0.32/0001-Fix-cross-compilation.patch > new file mode 100644 > index 0000000..b8ea7aa > --- /dev/null > +++ b/patches/comgt.0.32/0001-Fix-cross-compilation.patch > @@ -0,0 +1,22 @@ > +From: Bernhard Walle <bernhard@bwalle.de> > +Date: Wed, 25 Jul 2012 17:35:00 +0200 > +Subject: [PATCH] Fix cross compilation > + > +Signed-off-by: Bernhard Walle <bernhard@bwalle.de> > +--- > + Makefile | 2 -- > + 1 file changed, 2 deletions(-) > + > +diff --git a/Makefile b/Makefile > +index 6028647..412a7b3 100755 > +--- a/Makefile > ++++ b/Makefile > +@@ -72,8 +72,6 @@ clean: > + > + > + comgt: comgt.o > +- cc comgt.o $(LDFLAGS) -o comgt > + > + comgt.o: comgt.c comgt.h > +- cc comgt.c $(CFLAGS) > + Ahhh, why do some people think they need to write such stupid makefiles? > diff --git a/patches/comgt.0.32/series b/patches/comgt.0.32/series > new file mode 100644 > index 0000000..c471dfc > --- /dev/null > +++ b/patches/comgt.0.32/series > @@ -0,0 +1,4 @@ > +# generated by git-ptx-patches > +#tag:base --start-number 1 > +0001-Fix-cross-compilation.patch > +# 42a9d69cd806f97d2b9a444234c6afa5 - git-ptx-patches magic > diff --git a/rules/comgt.in b/rules/comgt.in > new file mode 100644 > index 0000000..8b1e11d > --- /dev/null > +++ b/rules/comgt.in > @@ -0,0 +1,7 @@ > +## SECTION=networking > + > +config COMGT > + tristate > + prompt "comgt" > + help > + Linux UMTS/GPRS command-line tool > diff --git a/rules/comgt.make b/rules/comgt.make > new file mode 100644 > index 0000000..5dbb7f1 > --- /dev/null > +++ b/rules/comgt.make > @@ -0,0 +1,67 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2012 by Bernhard Walle <bernhard@bwalle.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_COMGT) += comgt > + > +# > +# Paths and names > +# > +COMGT_VERSION := 0.32 > +COMGT_MD5 := db2452680c3d953631299e331daf49ef > +COMGT := comgt.$(COMGT_VERSION) > +COMGT_SUFFIX := tgz > +COMGT_URL := $(call ptx/mirror, SF, comgt/$(COMGT).$(COMGT_SUFFIX)) > +COMGT_SOURCE := $(SRCDIR)/$(COMGT).$(COMGT_SUFFIX) > +COMGT_DIR := $(BUILDDIR)/$(COMGT) > +COMGT_LICENSE := GPL2 > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +# > +# autoconf > +# remove the comment > +COMGT_CONF_TOOL := NO > +COMGT_MAKE_ENV := $(CROSS_ENV) > +COMGT_MAKEVARS := $(CROSS_ENV) no COMGT_MAKEVARS. OMGT_MAKE_ENV is enough. > + > +# ---------------------------------------------------------------------------- > +# Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/comgt.install: > + @$(call targetinfo) > + @install -D -m0755 $(COMGT_DIR)/comgt $(COMGT_PKGDIR)/usr/sbin/comgt > + @$(call touch) > + > +# ---------------------------------------------------------------------------- > +# Target-Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/comgt.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, comgt) > + @$(call install_fixup, comgt,PRIORITY,optional) > + @$(call install_fixup, comgt,SECTION,base) > + @$(call install_fixup, comgt,AUTHOR,"Bernhard Walle <bernhard@bwalle.de>") > + @$(call install_fixup, comgt,DESCRIPTION,missing) > + > + @$(call install_copy, comgt, 0, 0, 0755, -, /usr/sbin/comgt) > + > + @$(call install_finish, comgt) > + > + @$(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-5555 | -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ptxdist] [PATCH 1/2] usb-modeswitch: New package 2013-03-23 11:45 [ptxdist] [PATCH 1/2] usb-modeswitch: New package Bernhard Walle 2013-03-23 11:45 ` [ptxdist] [PATCH 2/2] comgt: " Bernhard Walle @ 2013-03-23 19:12 ` Michael Olbrich 2013-03-23 21:11 ` Bernhard Walle 1 sibling, 1 reply; 7+ messages in thread From: Michael Olbrich @ 2013-03-23 19:12 UTC (permalink / raw) To: ptxdist On Sat, Mar 23, 2013 at 12:45:09PM +0100, Bernhard Walle wrote: > Signed-off-by: Bernhard Walle <bernhard@bwalle.de> > --- > 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 0000000..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 0000000..4b314bc > --- /dev/null > +++ b/rules/usb-modeswitch.make > @@ -0,0 +1,69 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2013 by Bernhard Walle <bernhard@bwalle.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_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 <bernhard@bwalle.de>") > + @$(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-5555 | -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 7+ messages in thread
* [ptxdist] [PATCH 1/2] usb-modeswitch: New package 2013-03-23 19:12 ` [ptxdist] [PATCH 1/2] usb-modeswitch: " Michael Olbrich @ 2013-03-23 21:11 ` Bernhard Walle 2013-03-23 21:11 ` [ptxdist] [PATCH 2/2] comgt: " Bernhard Walle 2013-03-24 9:48 ` [ptxdist] [PATCH 1/2] usb-modeswitch: " Michael Olbrich 0 siblings, 2 replies; 7+ messages in thread From: Bernhard Walle @ 2013-03-23 21:11 UTC (permalink / raw) To: ptxdist Signed-off-by: Bernhard Walle <bernhard@bwalle.de> --- 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 0000000..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 0000000..4534d9c --- /dev/null +++ b/rules/usb-modeswitch.make @@ -0,0 +1,58 @@ +# -*-makefile-*- +# +# Copyright (C) 2013 by Bernhard Walle <bernhard@bwalle.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_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 <bernhard@bwalle.de>") + @$(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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [ptxdist] [PATCH 2/2] comgt: New package 2013-03-23 21:11 ` Bernhard Walle @ 2013-03-23 21:11 ` Bernhard Walle 2013-03-24 9:48 ` [ptxdist] [PATCH 1/2] usb-modeswitch: " Michael Olbrich 1 sibling, 0 replies; 7+ messages in thread From: Bernhard Walle @ 2013-03-23 21:11 UTC (permalink / raw) To: ptxdist Signed-off-by: Bernhard Walle <bernhard@bwalle.de> --- .../comgt.0.32/0001-Fix-cross-compilation.patch | 22 ++++++++ patches/comgt.0.32/series | 4 ++ rules/comgt.in | 7 +++ rules/comgt.make | 63 ++++++++++++++++++++++ 4 files changed, 96 insertions(+) create mode 100644 patches/comgt.0.32/0001-Fix-cross-compilation.patch create mode 100644 patches/comgt.0.32/series create mode 100644 rules/comgt.in create mode 100644 rules/comgt.make diff --git a/patches/comgt.0.32/0001-Fix-cross-compilation.patch b/patches/comgt.0.32/0001-Fix-cross-compilation.patch new file mode 100644 index 0000000..b8ea7aa --- /dev/null +++ b/patches/comgt.0.32/0001-Fix-cross-compilation.patch @@ -0,0 +1,22 @@ +From: Bernhard Walle <bernhard@bwalle.de> +Date: Wed, 25 Jul 2012 17:35:00 +0200 +Subject: [PATCH] Fix cross compilation + +Signed-off-by: Bernhard Walle <bernhard@bwalle.de> +--- + Makefile | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/Makefile b/Makefile +index 6028647..412a7b3 100755 +--- a/Makefile ++++ b/Makefile +@@ -72,8 +72,6 @@ clean: + + + comgt: comgt.o +- cc comgt.o $(LDFLAGS) -o comgt + + comgt.o: comgt.c comgt.h +- cc comgt.c $(CFLAGS) + diff --git a/patches/comgt.0.32/series b/patches/comgt.0.32/series new file mode 100644 index 0000000..c471dfc --- /dev/null +++ b/patches/comgt.0.32/series @@ -0,0 +1,4 @@ +# generated by git-ptx-patches +#tag:base --start-number 1 +0001-Fix-cross-compilation.patch +# 42a9d69cd806f97d2b9a444234c6afa5 - git-ptx-patches magic diff --git a/rules/comgt.in b/rules/comgt.in new file mode 100644 index 0000000..8b1e11d --- /dev/null +++ b/rules/comgt.in @@ -0,0 +1,7 @@ +## SECTION=networking + +config COMGT + tristate + prompt "comgt" + help + Linux UMTS/GPRS command-line tool diff --git a/rules/comgt.make b/rules/comgt.make new file mode 100644 index 0000000..54cda06 --- /dev/null +++ b/rules/comgt.make @@ -0,0 +1,63 @@ +# -*-makefile-*- +# +# Copyright (C) 2012 by Bernhard Walle <bernhard@bwalle.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_COMGT) += comgt + +# +# Paths and names +# +COMGT_VERSION := 0.32 +COMGT_MD5 := db2452680c3d953631299e331daf49ef +COMGT := comgt.$(COMGT_VERSION) +COMGT_SUFFIX := tgz +COMGT_URL := $(call ptx/mirror, SF, comgt/$(COMGT).$(COMGT_SUFFIX)) +COMGT_SOURCE := $(SRCDIR)/$(COMGT).$(COMGT_SUFFIX) +COMGT_DIR := $(BUILDDIR)/$(COMGT) +COMGT_LICENSE := GPL2 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +COMGT_CONF_TOOL := NO +COMGT_MAKE_ENV := $(CROSS_ENV) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/comgt.install: + @$(call targetinfo) + @install -D -m0755 $(COMGT_DIR)/comgt $(COMGT_PKGDIR)/usr/sbin/comgt + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/comgt.targetinstall: + @$(call targetinfo) + + @$(call install_init, comgt) + @$(call install_fixup, comgt,PRIORITY,optional) + @$(call install_fixup, comgt,SECTION,base) + @$(call install_fixup, comgt,AUTHOR,"Bernhard Walle <bernhard@bwalle.de>") + @$(call install_fixup, comgt,DESCRIPTION,missing) + + @$(call install_copy, comgt, 0, 0, 0755, -, /usr/sbin/comgt) + + @$(call install_finish, comgt) + + @$(call touch) + +# vim: syntax=make -- 1.8.2 -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ptxdist] [PATCH 1/2] usb-modeswitch: New package 2013-03-23 21:11 ` Bernhard Walle 2013-03-23 21:11 ` [ptxdist] [PATCH 2/2] comgt: " Bernhard Walle @ 2013-03-24 9:48 ` Michael Olbrich 1 sibling, 0 replies; 7+ messages in thread From: Michael Olbrich @ 2013-03-24 9:48 UTC (permalink / raw) To: ptxdist On Sat, Mar 23, 2013 at 10:11:27PM +0100, Bernhard Walle wrote: > Signed-off-by: Bernhard Walle <bernhard@bwalle.de> 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 0000000..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 0000000..4534d9c > --- /dev/null > +++ b/rules/usb-modeswitch.make > @@ -0,0 +1,58 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2013 by Bernhard Walle <bernhard@bwalle.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_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 <bernhard@bwalle.de>") > + @$(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-5555 | -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-03-24 9:48 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-03-23 11:45 [ptxdist] [PATCH 1/2] usb-modeswitch: New package Bernhard Walle 2013-03-23 11:45 ` [ptxdist] [PATCH 2/2] comgt: " Bernhard Walle 2013-03-23 19:18 ` Michael Olbrich 2013-03-23 19:12 ` [ptxdist] [PATCH 1/2] usb-modeswitch: " Michael Olbrich 2013-03-23 21:11 ` Bernhard Walle 2013-03-23 21:11 ` [ptxdist] [PATCH 2/2] comgt: " Bernhard Walle 2013-03-24 9:48 ` [ptxdist] [PATCH 1/2] usb-modeswitch: " Michael Olbrich
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox