From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1UJTxM-0002Wp-1x for ptxdist@pengutronix.de; Sat, 23 Mar 2013 20:18:20 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1UJTxJ-0004qC-W4 for ptxdist@pengutronix.de; Sat, 23 Mar 2013 20:18:17 +0100 Date: Sat, 23 Mar 2013 20:18:17 +0100 From: Michael Olbrich Message-ID: <20130323191817.GE1289@pengutronix.de> References: <1364039110-27963-1-git-send-email-bernhard@bwalle.de> <1364039110-27963-2-git-send-email-bernhard@bwalle.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1364039110-27963-2-git-send-email-bernhard@bwalle.de> Subject: Re: [ptxdist] [PATCH 2/2] comgt: New package Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Sat, Mar 23, 2013 at 12:45:10PM +0100, Bernhard Walle wrote: > Signed-off-by: Bernhard Walle > --- > .../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 > +Date: Wed, 25 Jul 2012 17:35:00 +0200 > +Subject: [PATCH] Fix cross compilation > + > +Signed-off-by: Bernhard Walle > +--- > + 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 > +# > +# 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 ") > + @$(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