Re: [ptxdist] gobject-introspection: syntax error, unexpected typedef-names

2016-09-02 Thread Roland Hieber

On 02.09.2016 11:17, Michael Olbrich wrote:

I don't think the Kernel Version matters. I think the errors are caused by
a broken cross ldd. Please test check if .../sysroot-cross/bin/qemu/ldd
works correctly for target binaries. If not, then please send this file,
it's a shell script.


The ldd script only prints "FATAL: kernel too old" and exits with return 
code 1 when called on platform/root/bin/sh.  I have attached the script. 
 The error actually comes from the call to qemu-cross in line 116, 
which I can reproduce:


$ ./sysroot-cross/bin/qemu-cross -E \
  LD_TRACE_LOADED_OBJECTS=1,LD_WARN=,LD_BIND_NOW=,LD_VERBOSE= \
  root/bin/sh
FATAL: kernel too old

I'm currently rebuilding my project in a new, clean directory to see if 
the error goes away.


 - Roland
#!/bin/bash
# Copyright (C) 1996-2016 Free Software Foundation, Inc.
# This file is part of the GNU C Library.

# The GNU C Library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.

# The GNU C Library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.

# You should have received a copy of the GNU Lesser General Public
# License along with the GNU C Library; if not, see
# .


# This is the `ldd' command, which lists what shared libraries are
# used by given dynamically-linked executables.  It works by invoking the
# run-time dynamic linker as a command and setting the environment
# variable LD_TRACE_LOADED_OBJECTS to a non-empty value.

# We should be able to find the translation right at the beginning.
TEXTDOMAIN=libc
TEXTDOMAINDIR=/usr/share/locale

RTLDLIST="/opt/OSELAS.Toolchain-2016.06.0/arm-v7a-linux-gnueabihf/gcc-5.4.0-glibc-2.23-binutils-2.26-kernel-4.6-sanitized/sysroot-arm-v7a-linux-gnueabihf/lib/ld-linux-armhf.so.3"
warn=
bind_now=
verbose=

while test $# -gt 0; do
  case "$1" in
  --vers | --versi | --versio | --version)
echo 'ldd (GNU libc) 2.23'
printf $"Copyright (C) %s Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
" "2016"
printf $"Written by %s and %s.
" "Roland McGrath" "Ulrich Drepper"
exit 0
;;
  --h | --he | --hel | --help)
echo $"Usage: ldd [OPTION]... FILE...
  --help  print this help and exit
  --version   print version information and exit
  -d, --data-relocs   process data relocations
  -r, --function-relocs   process data and function relocations
  -u, --unusedprint unused direct dependencies
  -v, --verbose   print all information
"
printf $"For bug reporting instructions, please see:\\n%s.\\n" \
  ""
exit 0
;;
  -d | --d | --da | --dat | --data | --data- | --data-r | --data-re | \
  --data-rel | --data-relo | --data-reloc | --data-relocs)
warn=yes
shift
;;
  -r | --f | --fu | --fun | --func | --funct | --functi | --functio | \
  --function | --function- | --function-r | --function-re | --function-rel | \
  --function-relo | --function-reloc | --function-relocs)
warn=yes
bind_now=yes
shift
;;
  -v | --verb | --verbo | --verbos | --verbose)
verbose=yes
shift
;;
  -u | --u | --un | --unu | --unus | --unuse | --unused)
unused=yes
shift
;;
  --v | --ve | --ver)
echo >&2 $"ldd: option \`$1' is ambiguous"
exit 1
;;
  --)   # Stop option processing.
shift; break
;;
  -*)
echo >&2 'ldd:' $"unrecognized option" "\`$1'"
echo >&2 $"Try \`ldd --help' for more information."
exit 1
;;
  *)
break
;;
  esac
done

nonelf ()
{
  # Maybe extra code for non-ELF binaries.
  return 1;
}

add_env="LD_TRACE_LOADED_OBJECTS=1 LD_WARN=$warn LD_BIND_NOW=$bind_now"
add_env="$add_env LD_VERBOSE=$verbose"
if test "$unused" = yes; then
  add_env="$add_env LD_DEBUG=\"$LD_DEBUG${LD_DEBUG:+,}unused\""
fi

# The following command substitution is needed to make ldd work in SELinux
# environments where the RTLD might not have permission to write to the
# terminal.  The extra "x" character prevents the shell from trimming trailing
# newlines from command substitution results.  This function is defined as a
# subshell compound list (using "(...)") to prevent parameter assignments from
# affecting the calling shell execution environment.
try_trace() (
  output=$(eval 
/home/rhieber/Projects/OSELAS.BSP-MyPlatform/platform-myplatform/sysroot-cross/bin/qemu-cross
 -E "${add_env// /,}" '"$@"' 2>&1; rc=$?; printf 'x'; exit $rc)
  rc=$?
  printf '%s' "${output%x}"
  return $rc
)

case $# in
0)
  ec

Re: [ptxdist] AT91bootstrap with ptxdist

2016-09-02 Thread Michael Olbrich
On Tue, Aug 30, 2016 at 09:19:39AM +0200, Guillermo Rodriguez Garcia wrote:
> 2016-08-29 9:26 GMT+02:00 Guillermo Rodriguez Garcia
> :
> > 2016-08-25 13:15 GMT+02:00 Guillermo Rodriguez Garcia
> > :
> >> 2016-08-25 12:54 GMT+02:00 Michael Olbrich :
> >>> On Mon, Aug 22, 2016 at 04:41:52PM +0200, Guillermo Rodriguez Garcia 
> >>> wrote:
>  I am trying to compile AT91bootstrap with ptxdist and I have found the
>  following minor issues:
> 
>  1. Starting from end of 2014, at91bootstrap releases are no longer
>  published on ftp://www.at91.com/pub/.. The "official" source now seems
>  to be the at91bootstrap repo. The ftp site contains versions up to
>  3.7.1 (Nov 2014), while the github repo contains versions from 3.7
>  (Sep 2014) onwards.
> 
> 
> I have had a closer look at this and found the following:
> 
> 1. The original URL used in ptxdist's at91bootstrap2.make
> (ftp://www.at91.com/pub/buildroot/$(AT91BOOTSTRAP2).$(AT91BOOTSTRAP2_SUFFIX))
> does no longer work. The buildroot/ dir in the at91 ftp site does not
> contain at91bootstrap sources anymore.
> 
> 2. In the same ftp site there is a directory
> ftp://www.at91.com/pub/at91bootstrap which contains:
> - Some 1.x at91bootstrap releases (not relevant for
> at91bootstrap_2_.make, which is supposed to deal with versions >= 2.x)
> - No 2.x releases at all (neither source code nor binary)
> - Some (but not all) 3.x releases between 3.1 and 3.7.1: Of these,
> only 3.1 and 3.2 have some sort of source code, although judging from
> the file names they does not seem to be the official releases (perhaps
> a dev snapshot).
> 
> The above means that ptxdist's at91bootstrap2.make is currently more
> or less broken already in its current state.
> 
> 3. Atmel now officially points you to their github repo in order to
> get the source code (see:
> http://www.at91.com/linux4sam/bin/view/Linux4SAM/AT91Bootstrap#Get_AT91Boostrap_Source_Code)
> 
> 4. In the github repo you can find full releases including source code
> for all versions since 3.4 (I said 3.7 in my first mail but I was
> wrong).
> 
> So if no one objects I will prepare and send a patch
> at91bootstrap2.{in,make} to make it work with the current 3.x series.

Sounds good. I've applied the patch. Thanks.

Michael

-- 
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] New package: imagemagick

2016-09-02 Thread Guillermo Rodriguez
This adds a new package for ImageMagick 7. Some configuration
options are set to sensible defaults for embedded targets (quantum
depth set to 8 pixels, HDRI disabled). See notes in imagemagick.make.

Signed-off-by: Guillermo Rodriguez 

---
 rules/imagemagick.in   |   41 ++
 rules/imagemagick.make |  142 
 2 files changed, 183 insertions(+)
 create mode 100644 rules/imagemagick.in
 create mode 100644 rules/imagemagick.make

diff --git a/rules/imagemagick.in b/rules/imagemagick.in
new file mode 100644
index 000..90a0eb6
--- /dev/null
+++ b/rules/imagemagick.in
@@ -0,0 +1,41 @@
+## SECTION=multimedia_tools
+
+menuconfig IMAGEMAGICK
+   tristate
+   select ZLIB if IMAGEMAGICK_USE_ZLIB
+   select LIBPNG if IMAGEMAGICK_USE_LIBPNG
+   select LIBJPEG if IMAGEMAGICK_USE_LIBJPEG
+   prompt "imagemagick   "
+   help
+ ImageMagick® is a software suite to create, edit, compose, or convert
+ bitmap images. It can read and write images in a variety of formats
+ (over 200) including PNG, JPEG, JPEG-2000, GIF, TIFF, DPX, EXR, WebP,
+ Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror,
+ rotate, distort, shear and transform images, adjust image colors, 
apply
+ various special effects, or draw text, lines, polygons, ellipses and
+ Bézier curves.
+
+if IMAGEMAGICK
+
+config IMAGEMAGICK_USE_ZLIB
+   bool
+   default y
+   prompt "Enable ZLIB"
+   help
+ Enable ZLIB support
+
+config IMAGEMAGICK_USE_LIBPNG
+   bool
+   default y
+   prompt "Enable PNG"
+   help
+ Enable PNG support
+
+config IMAGEMAGICK_USE_LIBJPEG
+   bool
+   default y
+   prompt "Enable JPEG"
+   help
+ Enable JPEG support
+ 
+endif
diff --git a/rules/imagemagick.make b/rules/imagemagick.make
new file mode 100644
index 000..f07bab7
--- /dev/null
+++ b/rules/imagemagick.make
@@ -0,0 +1,142 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Guillermo Rodriguez 
+#
+# 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_IMAGEMAGICK) += imagemagick
+
+#
+# Paths and names
+#
+IMAGEMAGICK_VERSION:= 7.0.2-10
+IMAGEMAGICK_MD5:= e1cb23d9c10a8eff228ef30ee281711a
+IMAGEMAGICK:= ImageMagick-$(IMAGEMAGICK_VERSION)
+IMAGEMAGICK_SUFFIX := tar.xz
+IMAGEMAGICK_URL:= 
ftp://ftp.nluug.nl/pub/ImageMagick/$(IMAGEMAGICK).$(IMAGEMAGICK_SUFFIX)
+IMAGEMAGICK_SOURCE := $(SRCDIR)/$(IMAGEMAGICK).$(IMAGEMAGICK_SUFFIX)
+IMAGEMAGICK_DIR:= $(BUILDDIR)/$(IMAGEMAGICK)
+IMAGEMAGICK_LICENSE:= Apache-2.0
+
+# 
+# Prepare
+# 
+
+IMAGEMAGICK_QUANTUM_DEPTH := 8
+
+IMAGEMAGICK_PATH   := PATH=$(CROSS_PATH)
+IMAGEMAGICK_ENV:= $(CROSS_ENV)
+
+#
+# See: http://www.imagemagick.org/script/advanced-unix-installation.php
+#
+# Notes:
+# - Threading is disabled as it brings in a dependency with libgomp.so
+#   (OpenMP) which fails at runtime; disabling openmp itself doesn't seem
+#   to be enough.
+# - Quantum depth is set to 8. Most display adapters and image formats
+#   don't support more than 8 bits per pixel quantum (i.e. per each of the
+#   R, G, B, and alpha components), and higher values have an impact in
+#   runtime performance.
+# - HDRI is disabled. It is not supported by most image formats, and has
+#   a severe impact in runtime performance.
+# - The configure script will try to detect external "helper" programs
+#   available in the host and store their paths in delegates.xml. These
+#   are obviously not applicable on the target. Just ignore the generated
+#   delegates.xml file.
+#
+IMAGEMAGICK_AUTOCONF := \
+   $(CROSS_AUTOCONF_USR) \
+   --disable-docs \
+   --enable-shared \
+   --disable-static \
+   --disable-openmp \
+   --without-threads \
+   --without-modules \
+   --with-quantum-depth=$(IMAGEMAGICK_QUANTUM_DEPTH) \
+   --disable-hdri \
+   --without-autotrace \
+   --without-bzlib \
+   --without-djvu \
+   --without-dps \
+   --without-fftw \
+   --without-flif \
+   --without-fpx \
+   --without-fontconfig \
+   --without-freetype \
+   --without-gslib \
+   --without-gvc \
+   --without-jbig \
+   --without-lcms \
+   --without-lqr \
+   --without-lzma \
+   --without-magick-plus-plus \
+   --without-openexr \
+   --without-openjp2 \
+   --without-pango \
+   --without-perl \
+   --without-raqm \
+   --without-rsvg \
+   --without-tiff \
+   --without-webp \
+   --without-wmf \
+  

Re: [ptxdist] [PATCHv2] dnsmasq: fix overwritten PKG_CONFIG

2016-09-02 Thread Michael Olbrich
On Mon, Aug 22, 2016 at 10:30:36AM +0200, Robert Schwebel wrote:
> The dnsmasq package has a handwritten Makefile, which overwrites the
> PKG_CONFIG set by ptxdist.
> 
> Set the variable to the right value.
> 
> Signed-off-by: Robert Schwebel 
> ---
> 
> Changes since (implicit) v1:
> 
> * break long lines
> 
>  rules/dnsmasq.make | 6 +-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/rules/dnsmasq.make b/rules/dnsmasq.make
> index a9e3e49..7693e93 100644
> --- a/rules/dnsmasq.make
> +++ b/rules/dnsmasq.make
> @@ -59,7 +59,11 @@ ifdef DNSMASQ_DNSSEC
>  DNSMASQ_COPT += -DHAVE_DNSSEC
>  endif
>  
> -DNSMASQ_MAKEVARS := PREFIX=/usr AWK=awk COPTS='$(DNSMASQ_COPT)'
> +DNSMASQ_MAKEVARS := \
> + PREFIX=/usr \
> + AWK=awk \
> + COPTS='$(DNSMASQ_COPT)' \
> + PKG_CONFIG='$(PTXDIST_SYSROOT_CROSS)/bin/$(COMPILER_PREFIX)pkg-config'

What's the error here? The Makefile sets PKG_CONFIG=pkg-config and with
"DNSMASQ_COMPILE_ENV := $(CROSS_ENV)" this should find
$(PTXDIST_SYSROOT_CROSS)/bin/pkg-config. And that's the same as
$(PTXDIST_SYSROOT_CROSS)/bin/$(COMPILER_PREFIX)pkg-config

Michael

>  
>  $(STATEDIR)/dnsmasq.prepare:
>   @$(call targetinfo)
> -- 
> 2.8.1
> 
> 
> ___
> 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

Re: [ptxdist] gobject-introspection: syntax error, unexpected typedef-names

2016-09-02 Thread Michael Olbrich
On Thu, Sep 01, 2016 at 07:21:04PM +0200, Roland Hieber wrote:
> I'm trying to compile {host-}gobject-introspection on ptxdist-2016-08.0 on a
> Debian jessie. The compile target fails with various syntax errors like
> these (full build log is attached):
> 
> > .../sysroot-target/usr/include/glib-2.0/glib/glib-autocleanups.h:88:
> > syntax error, unexpected typedef-name, expecting identifier or '(' in
> > 'typedef GVariantType *GVariantType_autoptr;' at
> > 'GVariantType_autoptr'
> 
> The host-target seems to build though, and the host package is (apparently)
> installed correctly into platform/sysroot-host.  However, the same error
> messages in the target package seem to fail the build.
> 
> Also the autogen.sh lines in host-gobject-introspection.extract.post stage
> look strange to me.
> 
> Also, when building without -je1 -ji1 (see second attachment), I get
> additional warnings "FATAL: kernel too old".  (Does that refer to the Linux
> kernel?  I'm running 3.16.0-4-amd64, but I'm not sure if I'm able to upgrade
> that...)

I don't think the Kernel Version matters. I think the errors are caused by
a broken cross ldd. Please test check if .../sysroot-cross/bin/qemu/ldd
works correctly for target binaries. If not, then please send this file,
it's a shell script.

Michael


-- 
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

Re: [ptxdist] [PATCH 1/3] host-opensc: add new rule to build opensc on host

2016-09-02 Thread Michael Olbrich
On Tue, Aug 23, 2016 at 09:24:00AM +0200, Steffen Trumtrar wrote:
> Signed-off-by: Steffen Trumtrar 
> ---
>  rules/host-opensc.in   | 15 +++
>  rules/host-opensc.make | 25 +
>  2 files changed, 40 insertions(+)
>  create mode 100644 rules/host-opensc.in
>  create mode 100644 rules/host-opensc.make
> 
> diff --git a/rules/host-opensc.in b/rules/host-opensc.in
> new file mode 100644
> index ..a610490c70b2
> --- /dev/null
> +++ b/rules/host-opensc.in
> @@ -0,0 +1,15 @@
> +## SECTION=hosttools_noprompt
> +## SECTION=hosttools_platform
> +
> +config HOST_OPENSC
> + tristate
> + select HOST_PCSC_LITE

And order the patches correctly to make sure all dependencies are available
during a git-bisect.

> + help
> +   Smart card utilities with support for PKCS#15 compatible cards
> +
> +   OpenSC provides a set of libraries and utilities to access
> +   smart cards. It mainly focuses on cards that support
> +   cryptographic operations. It facilitates their use in
> +   security applications such as mail encryption,
> +   authentication, and digital signature. OpenSC implements the
> +   PKCS#11 API.
> diff --git a/rules/host-opensc.make b/rules/host-opensc.make
> new file mode 100644
> index ..9e0dd2a47bcb
> --- /dev/null
> +++ b/rules/host-opensc.make
> @@ -0,0 +1,25 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2016 by Steffen Trumtrar 
> +#
> +# 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_OPENSC) += host-opensc
> +
> +# 
> 
> +# Prepare
> +# 
> 
> +
> +#
> +# autoconf
> +#
> +HOST_OPENSC_CONF_TOOL:= autoconf
> +
> +# vim: syntax=make
> -- 
> 2.8.1
> 
> 
> ___
> 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

Re: [ptxdist] [PATCH 2/3] host-libp11: add new rule to build libp11 on host

2016-09-02 Thread Michael Olbrich
On Tue, Aug 23, 2016 at 09:24:01AM +0200, Steffen Trumtrar wrote:
> Signed-off-by: Steffen Trumtrar 
> ---
>  rules/host-libp11.in   | 12 
>  rules/host-libp11.make | 37 +
>  2 files changed, 49 insertions(+)
>  create mode 100644 rules/host-libp11.in
>  create mode 100644 rules/host-libp11.make
> 
> diff --git a/rules/host-libp11.in b/rules/host-libp11.in
> new file mode 100644
> index ..c0618805bc42
> --- /dev/null
> +++ b/rules/host-libp11.in
> @@ -0,0 +1,12 @@
> +## SECTION=hosttools_noprompt
> +## SECTION=hosttools_platform
> +
> +config HOST_LIBP11
> + tristate
> + select HOST_OPENSSL
> + select HOST_OPENSC
> + help
> +   pkcs#11 convenience library
> +   Libp11 is a library to simplify using smart cards via
> +   PKCS#11 modules. It was spun of the OpenSC project but can
> +   be used with any pkcs#11 module.
> diff --git a/rules/host-libp11.make b/rules/host-libp11.make
> new file mode 100644
> index ..5628f3a783a2
> --- /dev/null
> +++ b/rules/host-libp11.make
> @@ -0,0 +1,37 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2016 by Steffen Trumtrar 
> +#
> +# 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_LIBP11) += host-libp11
> +
> +#
> +# Paths and names
> +#
> +HOST_LIBP11_VERSION  := 0.4.0
> +HOST_LIBP11_MD5  := 00b3e41db5be840d822bda12f3ab2ca7
> +HOST_LIBP11  := libp11-$(HOST_LIBP11_VERSION)
> +HOST_LIBP11_SUFFIX   := tar.gz
> +HOST_LIBP11_URL  := 
> https://github.com/OpenSC/libp11/releases/download/$(HOST_LIBP11)/$(HOST_LIBP11).$(HOST_LIBP11_SUFFIX)
> +HOST_LIBP11_SOURCE   := $(SRCDIR)/$(HOST_LIBP11).$(HOST_LIBP11_SUFFIX)
> +HOST_LIBP11_DIR  := $(HOST_BUILDDIR)/$(HOST_LIBP11)
> +
> +# 
> 
> +# Prepare
> +# 
> 
> +
> +#
> +# autoconf
> +#
> +HOST_LIBP11_CONF_TOOL:= autoconf

No configure options?

> +HOST_LIBP11_MAKE_PAR := NO

Please add a comment why this is necessary to the commit message.

Michael

> +
> +# vim: syntax=make
> -- 
> 2.8.1
> 
> 
> ___
> 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

Re: [ptxdist] [PATCH 1/3] host-opensc: add new rule to build opensc on host

2016-09-02 Thread Michael Olbrich
On Tue, Aug 23, 2016 at 09:24:00AM +0200, Steffen Trumtrar wrote:
> Signed-off-by: Steffen Trumtrar 
> ---
>  rules/host-opensc.in   | 15 +++
>  rules/host-opensc.make | 25 +
>  2 files changed, 40 insertions(+)
>  create mode 100644 rules/host-opensc.in
>  create mode 100644 rules/host-opensc.make
> 
> diff --git a/rules/host-opensc.in b/rules/host-opensc.in
> new file mode 100644
> index ..a610490c70b2
> --- /dev/null
> +++ b/rules/host-opensc.in
> @@ -0,0 +1,15 @@
> +## SECTION=hosttools_noprompt
> +## SECTION=hosttools_platform
> +
> +config HOST_OPENSC
> + tristate
> + select HOST_PCSC_LITE
> + help
> +   Smart card utilities with support for PKCS#15 compatible cards
> +
> +   OpenSC provides a set of libraries and utilities to access
> +   smart cards. It mainly focuses on cards that support
> +   cryptographic operations. It facilitates their use in
> +   security applications such as mail encryption,
> +   authentication, and digital signature. OpenSC implements the
> +   PKCS#11 API.
> diff --git a/rules/host-opensc.make b/rules/host-opensc.make
> new file mode 100644
> index ..9e0dd2a47bcb
> --- /dev/null
> +++ b/rules/host-opensc.make
> @@ -0,0 +1,25 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2016 by Steffen Trumtrar 
> +#
> +# 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_OPENSC) += host-opensc
> +
> +# 
> 
> +# Prepare
> +# 
> 
> +
> +#
> +# autoconf
> +#
> +HOST_OPENSC_CONF_TOOL:= autoconf

The target package sets a lot of configure options. Do the same here.

Michael

> +
> +# vim: syntax=make
> -- 
> 2.8.1
> 
> 
> ___
> 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