On Wed, Feb 05, 2014 at 01:42:45PM +0100, Bernhard Sessler wrote:
> This host package builds the tntnet SDK, which is required in order
> to generate the pre-compiled C++ modules.

So this will be used to build an application that uses tntnet, right?

Btw this won't compile without cxxtools, so you need to add a host package
for that as well.

Michael

> Signed-off-by: Bernhard Sessler <[email protected]>
> ---
>  rules/host-tntnet.in   |  9 +++++++++
>  rules/host-tntnet.make | 44 ++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 53 insertions(+)
>  create mode 100644 rules/host-tntnet.in
>  create mode 100644 rules/host-tntnet.make
> 
> diff --git a/rules/host-tntnet.in b/rules/host-tntnet.in
> new file mode 100644
> index 0000000..dafa4bf
> --- /dev/null
> +++ b/rules/host-tntnet.in
> @@ -0,0 +1,9 @@
> +## SECTION=hosttools_noprompt
> +## SECTION=hosttools_platform

no need to add hosttools_platform. That is only used for packages that are
also selected in the platformconfig

> +
> +config HOST_TNTNET
> +     tristate
> +     default ALLYES
> +     select HOST_ZLIB
> +     help
> +       web application server for c++

You can drop the help here. It's not visible anyways.

> diff --git a/rules/host-tntnet.make b/rules/host-tntnet.make
> new file mode 100644
> index 0000000..53aee1a
> --- /dev/null
> +++ b/rules/host-tntnet.make
> @@ -0,0 +1,44 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2014 by Bernhard Seßler <[email protected]>
> +#
> +# 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
> +#
> +HOST_PACKAGES-$(PTXCONF_HOST_TNTNET) += host-tntnet
> +
> +#
> +# Paths and names
> +#
> +HOST_TNTNET_VERSION  := 2.2.1
> +HOST_TNTNET_MD5              := febe799675c1b8b2f7259bad30cf6f23
> +HOST_TNTNET          := tntnet-$(HOST_TNTNET_VERSION)
> +HOST_TNTNET_SUFFIX   := tar.gz
> +HOST_TNTNET_URL              := 
> http://www.tntnet.org/download/$(HOST_TNTNET).$(HOST_TNTNET_SUFFIX)
> +HOST_TNTNET_SOURCE   := $(SRCDIR)/$(HOST_TNTNET).$(HOST_TNTNET_SUFFIX)
> +HOST_TNTNET_DIR              := $(HOST_BUILDDIR)/$(HOST_TNTNET)


This should not be necessary. Host packages define those from the
corresponding target package. You should only need:

HOST_TNTNET_DIR         := $(HOST_BUILDDIR)/$(TNTNET)

Michael

> +
> +# 
> ----------------------------------------------------------------------------
> +# Prepare
> +# 
> ----------------------------------------------------------------------------
> +
> +HOST_TNTNET_CONF_TOOL        := autoconf
> +HOST_TNTNET_CONF_OPT := \
> +     $(HOST_AUTOCONF) \
> +     --disable-dependency-tracking \
> +     --disable-unittest \
> +     --with-demos=no \
> +     --with-epoll=no \
> +     --with-sdk=yes \
> +     --with-sendfile=no \
> +     --with-server=no \
> +     --with-ssl=no \
> +     --with-stressjob=no
> +
> +# vim: syntax=make
> -- 
> 1.8.3.2
> 
> 
> -- 
> ptxdist mailing list
> [email protected]

-- 
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
[email protected]

Reply via email to