Re: [ptxdist] [EXT] [PATCH] host-dtc: Move devicetree compiler from platform to hosttools_noprompt.

2024-01-23 Thread Denis OSTERLAND-HEIM
LGTM

Acked-by: Denis Osterland-Heim 

-Original Message-
From: ptxdist  On Behalf Of Christian Melki
Sent: Monday, January 22, 2024 7:34 PM
To: ptxdist@pengutronix.de
Subject: [EXT] [ptxdist] [PATCH] host-dtc: Move devicetree compiler from
platform to hosttools_noprompt.

[EXTERNAL EMAIL]
 

The dtc has traditionally been a part of the platform side.
It was selected with a specific version to compile various kernel dts:es.
Nowdays, target programs has started to require the libfdt in runtime.
Ie, programs like QEMU. Beside the runtime, QEMU also have a host-variant
which need host tools.

This work preps for the QEMU upgrade by using the previous work of target
DTC to provide HOST_DTC as a normal ptxconf hosttool.

The end result is that HOST_DTC is reachable for HOST_QEMU.
This also removes the specific version for the platform side.

Signed-off-by: Christian Melki 
---
 platforms/Kconfig |  1 -
 platforms/host-dtc.in | 23 ---
 rules/host-dtc.in |  6 ++
 rules/host-dtc.make   | 25 +++--
 4 files changed, 13 insertions(+), 42 deletions(-)  delete mode 100644
platforms/host-dtc.in  create mode 100644 rules/host-dtc.in

diff --git a/platforms/Kconfig b/platforms/Kconfig index
d9adc4931..93a36bcfe 100644
--- a/platforms/Kconfig
+++ b/platforms/Kconfig
@@ -14,7 +14,6 @@ menu "architecture  "
 source "generated/architecture_options.in"
 endmenu
 source "generated/base_kernel.in"
-source "generated/devicetree.in"
 source "platforms/console.in"
 
 menu "extra kernel  "
diff --git a/platforms/host-dtc.in b/platforms/host-dtc.in deleted file mode
100644 index 00a2c7ffb..0
--- a/platforms/host-dtc.in
+++ /dev/null
@@ -1,23 +0,0 @@
-## SECTION=devicetree
-
-menuconfig HOST_DTC
-   tristate "dtc   "
-   select HOST_FLEX
-   help
- Select this if the HOST_DTC tool is required without
- building a device tree. (It is also used for building
- U-boot FIT images)
-
-if HOST_DTC
-
-config HOST_DTC_VERSION
-   string "Device tree compiler version"
-   default "1.6.1"
-   help
- Specify the DTC version number to be used
-
-config HOST_DTC_MD5
-   string "dtc source md5sum"
-   default "380e536cdad51ec0e90c9a8c28df5aac"
-
-endif
diff --git a/rules/host-dtc.in b/rules/host-dtc.in new file mode 100644
index 0..10c70643b
--- /dev/null
+++ b/rules/host-dtc.in
@@ -0,0 +1,6 @@
+## SECTION=hosttools_noprompt
+
+config HOST_DTC
+   tristate
+   select HOST_FLEX
+   default y if ALLYES
diff --git a/rules/host-dtc.make b/rules/host-dtc.make index
e1625ef91..130dc79a9 100644
--- a/rules/host-dtc.make
+++ b/rules/host-dtc.make
@@ -2,6 +2,7 @@
 #
 # Copyright (C) 2007 by Sascha Hauer
 #   (C) 2010 by Michael Olbrich 
+#   (C) 2024 by Christian Melki 
 #
 # For further information about the PTXdist project and license conditions
# see the README file.
@@ -12,35 +13,23 @@
 #
 HOST_PACKAGES-$(PTXCONF_HOST_DTC) += host-dtc
 
-#
-# Paths and names
-#
-HOST_DTC_VERSION   := $(call ptx/config-version, PTXCONF_HOST_DTC)
-HOST_DTC_MD5   := $(call ptx/config-md5, PTXCONF_HOST_DTC)
-HOST_DTC   := dtc-v$(HOST_DTC_VERSION)
-HOST_DTC_SUFFIX:= tar.gz
-HOST_DTC_URL   :=
https://git.kernel.org/pub/scm/utils/dtc/dtc.git/snapshot/$(HOST_DTC).$(HOST
_DTC_SUFFIX)
-HOST_DTC_SOURCE:= $(SRCDIR)/$(HOST_DTC).$(HOST_DTC_SUFFIX)
-HOST_DTC_DIR   := $(HOST_BUILDDIR)/$(HOST_DTC)
-HOST_DTC_LICENSE   := GPL-2.0-only
-
 #

 # Prepare
 #

 
-HOST_DTC_CONF_TOOL := NO
+HOST_DTC_CONF_TOOL := NO
 
-HOST_DTC_MAKE_ENV  := $(HOST_ENV)
+HOST_DTC_MAKE_ENV := \
+   $(HOST_ENV)
 
-HOST_DTC_MAKE_OPT  := \
+HOST_DTC_MAKE_OPT := \
PREFIX=/usr \
NO_PYTHON=1 \
NO_VALGRIND=1 \
NO_YAML=1
 
-HOST_DTC_INSTALL_OPT   := \
+HOST_DTC_INSTALL_OPT := \
$(HOST_DTC_MAKE_OPT) \
-   install-bin \
-   install-lib
+   install
 
 # vim: syntax=make
--
2.34.1



smime.p7s
Description: S/MIME cryptographic signature


Re: [ptxdist] [EXT] [PATCH] host-dtc: set make env

2024-01-08 Thread Denis OSTERLAND-HEIM
Hi,

what about using the target parameters here?
HOST_DTC_MAKE_OPT = $(DTC_MAKE_OPT)
HOST_DTC_INSTALL_OPT = $(DTC_INSTALL_OPT)

Regards, Denis

-Original Message-
From: ptxdist  On Behalf Of Ladislav Michl
Sent: Friday, January 5, 2024 1:13 PM
To: ptxdist@pengutronix.de
Subject: [EXT] [ptxdist] [PATCH] host-dtc: set make env

[EXTERNAL EMAIL]
 

From: Ladislav Michl 

Signed-off-by: Ladislav Michl 
---
 rules/host-dtc.make | 12 +++-
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/rules/host-dtc.make b/rules/host-dtc.make index
586b098bc..e1625ef91 100644
--- a/rules/host-dtc.make
+++ b/rules/host-dtc.make
@@ -28,15 +28,17 @@ HOST_DTC_LICENSE:= GPL-2.0-only
 # Prepare
 #

 
-HOST_DTC_CONF_TOOL := NO
-HOST_DTC_MAKE_OPT := \
+HOST_DTC_CONF_TOOL := NO
+
+HOST_DTC_MAKE_ENV  := $(HOST_ENV)
+
+HOST_DTC_MAKE_OPT  := \
PREFIX=/usr \
NO_PYTHON=1 \
NO_VALGRIND=1 \
-   NO_YAML=1 \
-   $(HOST_ENV_CC)
+   NO_YAML=1
 
-HOST_DTC_INSTALL_OPT := \
+HOST_DTC_INSTALL_OPT   := \
$(HOST_DTC_MAKE_OPT) \
install-bin \
install-lib
--
2.39.2



smime.p7s
Description: S/MIME cryptographic signature


Re: [ptxdist] [EXT] Re: [PATCH] libfdt: New package.

2024-01-04 Thread Denis OSTERLAND-HEIM
Hi,

great work.
There is also rules/host-dtc.make which maybe can be simplified.

-Original Message-
From: ptxdist  On Behalf Of Ladislav Michl
Sent: Thursday, January 4, 2024 12:16 PM
To: ptxdist@pengutronix.de
Subject: [EXT] Re: [ptxdist] [PATCH] libfdt: New package.

[EXTERNAL EMAIL]
 

Hi Christian!

On Thu, Jan 04, 2024 at 10:26:42AM +0100, Christian Melki wrote:
> Hi Ladis,
> 
> On 1/4/24 10:12 AM, Ladislav Michl wrote:
> > Hi,
> > 
> > On Wed, Jan 03, 2024 at 08:23:52PM +0100, Christian Melki wrote:
> > > Add the device-tree-compiler source as libfdt.
> > > I guess the package could have been named dtc as a target variant 
> > > with libfdt, but I don't know of any uses of the dtc on target 
> > > environments.
> > 
> > Appended my version created about two years ago... Those DTC tools 
> > were used to patch devicetree during on field board upgrade when 
> > moving from ancient kernel. Flash repartioning was part of that 
> > upgrade as well as use of RAUC. Basically all userspace was moved to 
> > ramdisk, detached from flash, new image was prepared and flashed at 
> > once - single point of failure, board was dead when this failed, but 
> > as far as I know, it never happened. So yes, dtc on target 
> > environment is very usefull :)
> > 
> 
> Oh. Didn't know you already had a version.
> 
> I would probably have written my own tool using libfdt, integrated 
> into something else. :) But that isn't saying there is no need for 
> anyone.
> 
> > > So the only use I can think of is libfdt. I think the name is more 
> > > accurate towards usage, but it isn't as symmetrical as the typical 
> > > host-* and normal variants.
> > 
> > In case you reconsider, I'll merge your and my variant (I didn't 
> > bother with licenses as it was part of local BSP).
> 
> I'll gladly reconsider. It's perfectly fine if there are usecases.
> Please go ahead and do a merge if you like.
> But keep binaries as optional. I prefer it that way.
> 
> Either way, libfdt needs to happen on target because of qemu afaict.

Yes. I expect qemu select DTC once someone (hint, hint) updates qemu :)
Here's updated version, please give it a try.

-- >8 --

Subject: [PATCH] dtc: new package

From: Ladislav Michl 

Please note this package is not as symmetrical as the typical
host-* and normal variants. Here the latest version is usually needed.

This work is prepping for qemu 8.2.0+, as it requires libfdt as a separate
library. It has stopped providing one internally.

Signed-off-by: Christian Melki 
Signed-off-by: Ladislav Michl 
---
 rules/dtc.in   | 36 +++
 rules/dtc.make | 80 ++
 2 files changed, 116 insertions(+)
 create mode 100644 rules/dtc.in
 create mode 100644 rules/dtc.make

diff --git a/rules/dtc.in b/rules/dtc.in new file mode 100644 index
0..2edb6f925
--- /dev/null
+++ b/rules/dtc.in
@@ -0,0 +1,36 @@
+## SECTION=system_libraries
+menuconfig DTC
+   tristate
+   prompt "dtc   "
+   help
+ Device Tree Compiler (dtc) toolchain. While dtc itself is
+ occasionally needed for device tree manipulaton on the
+ target, libfdt may be required.
+
+if DTC
+
+config DTC_DTC
+   bool
+   prompt "dtc"
+
+config DTC_DTDIFF
+   bool
+   prompt "dtdiff"
+
+config DTC_FDTDUMP
+   bool
+   prompt "fdtdump"
+
+config DTC_FDTGET
+   bool
+   prompt "fdtget"
+
+config DTC_FDTOVERLAY
+   bool
+   prompt "fdtoverlay"
+
+config DTC_FDTPUT
+   bool
+   prompt "fdtput"
+
+endif
diff --git a/rules/dtc.make b/rules/dtc.make new file mode 100644 index
0..d0e6a7617
--- /dev/null
+++ b/rules/dtc.make
@@ -0,0 +1,80 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2022 Ladislav Michl  # Copyright 
+(C) 2023 Christian Melki  # # For further 
+information about the PTXdist project and license conditions # see the 
+README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_DTC) += dtc
+
+#
+# Paths and names
+#
+DTC_VERSION:= 1.7.0
+DTC_MD5:= 58f007905843f6ed6cecf820eeada0ef
+DTC:= dtc-v$(DTC_VERSION)
+DTC_SUFFIX := tar.gz
+DTC_URL:=
https://git.kernel.org/pub/scm/utils/dtc/dtc.git/snapshot/$(DTC).$(DTC_SUFFI
X)
+DTC_SOURCE := $(SRCDIR)/$(DTC).$(DTC_SUFFIX)
+DTC_DIR:= $(BUILDDIR)/$(DTC)
+DTC_LICENSE:= BSD-2-Clause OR GPL-2.0
+DTC_LICENSE_FILES := \
+   file://README.license;md5=a1eb22e37f09df5b5511b8a278992d0e \
+   file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
+   file://BSD-2-Clause;md5=5d6306d1b08f8df623178dfd81880927
+
+# 
+---
+-
+# Prepare
+# 
+---
+-
+
+DTC_CONF_TOOL := NO
+DTC_MAKE_OPT := \
+   PREFIX=/usr \
+   NO_PYTHON=1 \
+   NO_VALGRIND=1 \
+   NO_YAML=1 \
+   $(CROSS_ENV_CC)
+
+DTC_INSTALL_OPT 

Re: [ptxdist] [EXT] [PATCH] protobuf-c: new package

2023-01-27 Thread Denis OSTERLAND-HEIM
Hi,

-Original Message-
From: ptxdist  On Behalf Of Ian Abbott
Sent: Wednesday, January 25, 2023 2:38 PM
To: ptxdist@pengutronix.de
Cc: Ian Abbott 
Subject: [EXT] [ptxdist] [PATCH] protobuf-c: new package

[EXTERNAL EMAIL]
 

Also host-protobuf-c.  The C code generator plug-in for protoc is only built
for the host package.

Signed-off-by: Ian Abbott 
---
 rules/host-protobuf-c.in   |  6 
 rules/host-protobuf-c.make | 22 ++
 rules/protobuf-c.in| 13 +
 rules/protobuf-c.make  | 59 ++
 4 files changed, 100 insertions(+)
 create mode 100644 rules/host-protobuf-c.in  create mode 100644
rules/host-protobuf-c.make  create mode 100644 rules/protobuf-c.in  create
mode 100644 rules/protobuf-c.make

diff --git a/rules/host-protobuf-c.in b/rules/host-protobuf-c.in new file
mode 100644 index 0..fc7f332f7
--- /dev/null
+++ b/rules/host-protobuf-c.in
@@ -0,0 +1,6 @@
+## SECTION=hosttools_noprompt
+
+config HOST_PROTOBUF_C
+   tristate
+   select HOST_PROTOBUF
+   default y if ALLYES
diff --git a/rules/host-protobuf-c.make b/rules/host-protobuf-c.make new
file mode 100644 index 0..c63134ff0
--- /dev/null
+++ b/rules/host-protobuf-c.make
@@ -0,0 +1,22 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2023 by Ian Abbott  # # For further 
+information about the PTXdist project and license conditions # see the 
+README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_PROTOBUF_C) += host-protobuf-c
+
+#
+# autoconf
+#
+HOST_PROTOBUF_C_CONF_TOOL  := autoconf
+HOST_PROTOBUF_C_CONF_OPT   := \
+   $(HOST_AUTOCONF) \
+   --disable-static
+
+# vim: syntax=make
diff --git a/rules/protobuf-c.in b/rules/protobuf-c.in new file mode 100644
index 0..921f70471
--- /dev/null
+++ b/rules/protobuf-c.in
@@ -0,0 +1,13 @@
+## SECTION=system_libraries
+
+config PROTOBUF_C
+   tristate
+   select HOST_PROTOBUF_C
+   prompt "protobuf-c"
+   help
+ A C implementation of the Protocol Buffers data serialization
+ format.
+
+ NOTE: This installs the libprotobuf-c shared library for the
+ target.  The host package includes the code generator plug-in
+ for the protoc command.
diff --git a/rules/protobuf-c.make b/rules/protobuf-c.make new file mode
100644 index 0..60f7f6494
--- /dev/null
+++ b/rules/protobuf-c.make
@@ -0,0 +1,59 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2023 by Ian Abbott  # # For further 
+information about the PTXdist project and license conditions # see the 
+README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PROTOBUF_C) += protobuf-c
+
+#
+# Paths and names
+#
+PROTOBUF_C_VERSION := 1.4.1
+PROTOBUF_C_MD5 := 4c17d70317ce9fc4cca9690377284659
+PROTOBUF_C := protobuf-c-$(PROTOBUF_C_VERSION)
+PROTOBUF_C_SUFFIX  := tar.gz
+PROTOBUF_C_URL :=
https://github.com/protobuf-c/protobuf-c/releases/download/v$(PROTOBUF_C_VER
SION)/protobuf-c-$(PROTOBUF_C_VERSION).$(PROTOBUF_C_SUFFIX)
+PROTOBUF_C_SOURCE  := $(SRCDIR)/$(PROTOBUF_C).$(PROTOBUF_C_SUFFIX)
+PROTOBUF_C_DIR := $(BUILDDIR)/$(PROTOBUF_C)
+PROTOBUF_C_LICENSE := BSD-2-Clause
+PROTOBUF_C_LICENSE_FILES := 
+file://LICENSE;md5=9f725889e0d77383e26cb42b0b62cea2
+
+# 
+---
+-
+# Prepare
+# 
+---
+-
+
+#
+# autoconf
+#
+PROTOBUF_C_CONF_TOOL   := autoconf
+PROTOBUF_C_CONF_OPT:= \
+   $(CROSS_AUTOCONF_USR) \
+   --disable-protoc \
+   --disable-static
Is there a reason why static is disabled fort he target?

Regards, Denis
+
+# 
+---
+-
+# Target-Install
+# 
+---
+-
+
+$(STATEDIR)/protobuf-c.targetinstall:
+   @$(call targetinfo)
+
+   @$(call install_init, protobuf-c)
+   @$(call install_fixup, protobuf-c,PRIORITY,optional)
+   @$(call install_fixup, protobuf-c,SECTION,base)
+   @$(call install_fixup, protobuf-c,AUTHOR,"Ian Abbott
")
+   @$(call install_fixup, protobuf-c,DESCRIPTION,missing)
+
+   @$(call install_lib, protobuf-c, 0, 0, 0644, libprotobuf-c)
+
+   @$(call install_finish, protobuf-c)
+
+   @$(call touch)
+
+# vim: syntax=make
--
2.39.0



smime.p7s
Description: S/MIME cryptographic signature


Re: [ptxdist] [EXT] [PATCH v2] zlib: Version bump. 1.2.12 -> 1.2.13

2022-10-20 Thread Denis OSTERLAND-HEIM
> From: ptxdist  On Behalf Of Christian
Melki
> Sent: Wednesday, October 19, 2022 9:18 AM
> To: ptxdist@pengutronix.de
> Subject: [ptxdist] [PATCH v2] zlib: Version bump. 1.2.12 -> 1.2.13
>
> https://zlib.net/
> Minor fixes in this release.
> Version bump plugs CVE-2022-37434.
>
> * Remove all patches for 1.2.12. They're now fixed.
> * Reindent license file line.
> * Zlib added a real LICENSE file describing the zlib license.
> Use that file instead of the README which changes every
> release due to version numbering.
>
> Signed-off-by: Christian Melki 
Acked-by: Denis Osterland-Heim 



smime.p7s
Description: S/MIME cryptographic signature


Re: [ptxdist] [RFC PATCH] rc-once: openssh: Do not overwrite existing keys

2021-10-18 Thread Denis Osterland-Heim
Hi,

I think a check if the the file exists would be sufficient,
if the key is generated to a temporary file first.

--- a/projectroot/etc/rc.once.d/openssh
+++ b/projectroot/etc/rc.once.d/openssh
@@ -19,7 +19,11 @@ create_key() {

 echo "Create $keytype key; this may take some time ..."
 rm -f "$keyfile" &&
-ssh-keygen -q -f "$keyfile" -N '' -t "$keytype" $keygen_args || return
+ssh-keygen -q -f "$keyfile.tmp" -N '' -t "$keytype" $keygen_args || return
+sync
+mv "$keyfile.tmp" "$keyfile"
+mv "$keyfile.tmp.pub" "$keyfile.pub"
+sync
 echo "Created $keytype key."
 }

Regards Denis

Am Freitag, den 15.10.2021, 15:22 +0200 schrieb Alexander Dahl:
> Hello Michael,
>
> Am Freitag, 15. Oktober 2021, 14:52:45 CEST schrieb Michael Olbrich:
> > On Mon, Oct 11, 2021 at 02:54:01PM +0200, Alexander Dahl wrote:
> > > When storing your keys not in rootfs but on a separate data partition
> > > (using symbolic links or overlay fs), keys are overwritten on each
> > > firmware upgrade which lets rc-once run again (which happens when using
> > > opkg upgrade/update or RAUC in an A/B scheme for example).
> > >
> > > Changing keys are at best annoying, but may be interpreted as an attack
> > > as well.
> >
> > This has come up before (I'm not sure if it was on this list or some other
> > channel). I'm not quite certain how to handle this.
> >
> > Someone may depend on the current behavior. I think it's rather unlikely so
> > I'll probably ignore that but we should keep it in mind.
>
> Yes, I thought about that. That's why I wanted to discuss it first.
>
> > I'm more concerned with broken keys caused by power failures or things like
> > that while the keys are created. So maybe a better check than just file
> > existence?
> >
> > > For dropbear the same behaviour was implemented with ac97e77eedf7
> > > ("[dropbear] rc.once: only generate keys if they aren't present yet").
> >
> > Marc applied that patch. I'm probably a bit more pedantic about stuff like
> > that :-).
> >
> > > Signed-off-by: Alexander Dahl 
> > > ---
> > >
> > >  projectroot/etc/rc.once.d/openssh | 1 +
> > >  1 file changed, 1 insertion(+)
> > >
> > > diff --git a/projectroot/etc/rc.once.d/openssh
> > > b/projectroot/etc/rc.once.d/openssh index 545586f07..595e28477 100644
> > > --- a/projectroot/etc/rc.once.d/openssh
> > > +++ b/projectroot/etc/rc.once.d/openssh
> > > @@ -27,6 +27,7 @@ create_keys() {
> > >
> > >  hostkeys="$(get_hostkeys)" || return
> > >
> > >  for keyfile in $hostkeys; do
> > >
> > > +[ -e "$keyfile" ] && continue
> >
> > Maybe:
> >
> > [ -s "$keyfile" ] && ssh-keygen -l -f "$keyfile.pub" > /dev/null &&
> > continue
> >
> > A non-empty private key file and a probably valid public key should be
> > sufficient to prevent issues with power failures, I think.
>
> It's a good idea to have a better check than just for file existence!
>
> We already had that empty file problem in the past. That would also be nice to
> have for the dropbear package.
>
> Not sure yet about that public key check, but I'll have a look into it.
>
> Thanks for your feedback, I'll send a v2 with improved checks later.
>
> Greets
> Alex
>
> >
> > Michael
> >
> > >  create_key "$keyfile" || return
> > >
> > >  done
> > >
> > >  }
> > >
> > > base-commit: 51994d1b518323d2975491090a2452d34b1a39f9
>
>
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] PTXCONF_RAUC_COMPATIBLE location

2021-08-24 Thread Denis Osterland-Heim
Hi Roland,

Am Montag, den 23.08.2021, 11:13 +0200 schrieb Roland Hieber:
> On Mon, Aug 23, 2021 at 07:41:24AM +0000, Denis Osterland-Heim wrote:
> > Hi Robin,
> >
> > I see. It is not perfect, that image-rauc uses the variables from rauc 
> > silently.
>
> … and IMAGE_RAUC cannot depend on RAUC because one is in the
> platformconfig menu and one is in the ptxconfig menu. But it will work
> this way nevertheless because at the time that IMAGE_RAUC_ENV is
> assigned in rules/image-rauc.make, the kconfig variables from both menus
> are already available in make.
>
> > I would suggest:
> >
> > diff --git a/platforms/image-rauc.in b/platforms/image-rauc.in
> > index 1f9427b40..bfbe4a18a 100644
> > --- a/platforms/image-rauc.in
> > +++ b/platforms/image-rauc.in
> > @@ -26,4 +26,26 @@ config IMAGE_RAUC_DESCRIPTION
> >  help
> >Optional description that will be placed in the Bundles metadata.
> >
> > +config IMAGE_RAUC_COMPATIBLE
> > +string
> > +prompt "RAUC Bundle Compatible"
> > +default "${PTXCONF_RAUC_COMPATIBLE}"
> > +help
> > +  An explicit identification string that RAUC uses to assure an update
> > +  bundle matches with the correct root filesystem on the target.
> > +  .
> > +  Only if the compatible in the targets RAUC system.conf file and those
> > +  in the Bundle's manifest match exactly, an update will be performed.
> > +  .
> > +  This must match the client configuration.
> > +
> > +config IMAGE_RAUC_BUNDLE_VERSION
> > +string
> > +prompt "RAUC Bundle Version"
> > +default "${PTXDIST_RAUC_BUNDLE_VERSION}"
> > +help
> > +  Overwrite the bundle version if needed.
> > +  .
> > +  This must match the client configuration.
> > +
>
> This has the disadvantage that the menu item is duplicated, and we
> cannot make sure the values entered in the ptxconfig menu are the same
> as in the platformconfig menu. So I'd rather leave it like it is now.
> The image build will fail anyways with "Failed to create bundle:
> Missing value for key 'compatible'" if RAUC is disabled. So maybe add a
> short snippet in the image-rauc help text that rauc must be
> enabled?
Would be welcome.

So if the flexibility to define the compatibility string in menu- or 
platformconfig is not welcome,
we are back at the discussion, if compatibility string should resident in menu- 
or platformconfig.
I believe that there are more applications that use multiple different images 
on one platform.
This would give a tendency to menuconfig, but with variables it does not matter 
where it is technically.
Robins core problem seems to be, that there is no place where he can store the 
compatibility platform name (the old one).

Robin, it looks like it would be the best solution that you add 
`platforms/compatibility-name.in` to you BSP
and use its variable in RAUC_COMPATIBLE.

Regards, Denis

>
>  - Roland
>
>
> >  endif
> > diff --git a/rules/image-rauc.make b/rules/image-rauc.make
> > index fe1b0e89b..1fd810f71 100644
> > --- a/rules/image-rauc.make
> > +++ b/rules/image-rauc.make
> > @@ -28,8 +28,8 @@ ifdef PTXCONF_IMAGE_RAUC
> >
> >  IMAGE_RAUC_ENV= \
> >  $(CODE_SIGNING_ENV) \
> > -RAUC_BUNDLE_COMPATIBLE="$(call remove_quotes,$(PTXCONF_RAUC_COMPATIBLE))" \
> > -RAUC_BUNDLE_VERSION="$(call remove_quotes, 
> > $(PTXCONF_RAUC_BUNDLE_VERSION))" \
> > +RAUC_BUNDLE_COMPATIBLE="$(call 
> > remove_quotes,$(PTXCONF_IMAGE_RAUC_COMPATIBLE))" \
> > +RAUC_BUNDLE_VERSION="$(call remove_quotes, 
> > $(PTXCONF_IMAGE_RAUC_BUNDLE_VERSION))" \
> >  RAUC_BUNDLE_BUILD=$(call ptx/sh, date +%FT%T%z) \
> >  RAUC_BUNDLE_DESCRIPTION=$(PTXCONF_IMAGE_RAUC_DESCRIPTION) \
> >  RAUC_KEY="$(shell cs_get_uri update)" \
> >
> > Upstream and in your configuration:
> >
> > PTXCONF_RAUC_COMPATIBLE="${PTXCONF_IMAGE_RAUC_COMPATIBLE}"
> >
> > and in your platformconfigs:
> >
> > PTXCONF_IMAGE_RAUC_COMPATIBLE="what ever you want"
> >
> > This change would be transparent for all existing use-cases and give 
> > additional flexibility.
> >
> > Regards, Denis
> >
> >
> > Am Montag, den 23.08.2021, 08:54 +0200 schrieb Robin van der Gracht:
> > > Hi Dennis,
> > >
> > > On 2021-08-23 06:27, Denis Osterland-Heim wrote:
> > > > Hi Robin,
> > > >
> > > > You may simply add the platform name to the compatibility string.
> > > >
> > > > PTXCONF_RAUC_COMPATIBLE="${PTXCONF_PROJECT_VENDOR} ${PTXCONF

Re: [ptxdist] PTXCONF_RAUC_COMPATIBLE location

2021-08-23 Thread Denis Osterland-Heim
Hi Robin,

I see. It is not perfect, that image-rauc uses the variables from rauc silently.

I would suggest:

diff --git a/platforms/image-rauc.in b/platforms/image-rauc.in
index 1f9427b40..bfbe4a18a 100644
--- a/platforms/image-rauc.in
+++ b/platforms/image-rauc.in
@@ -26,4 +26,26 @@ config IMAGE_RAUC_DESCRIPTION
 help
   Optional description that will be placed in the Bundles metadata.

+config IMAGE_RAUC_COMPATIBLE
+string
+prompt "RAUC Bundle Compatible"
+default "${PTXCONF_RAUC_COMPATIBLE}"
+help
+  An explicit identification string that RAUC uses to assure an update
+  bundle matches with the correct root filesystem on the target.
+  .
+  Only if the compatible in the targets RAUC system.conf file and those
+  in the Bundle's manifest match exactly, an update will be performed.
+  .
+  This must match the client configuration.
+
+config IMAGE_RAUC_BUNDLE_VERSION
+string
+prompt "RAUC Bundle Version"
+default "${PTXDIST_RAUC_BUNDLE_VERSION}"
+help
+  Overwrite the bundle version if needed.
+  .
+  This must match the client configuration.
+
 endif
diff --git a/rules/image-rauc.make b/rules/image-rauc.make
index fe1b0e89b..1fd810f71 100644
--- a/rules/image-rauc.make
+++ b/rules/image-rauc.make
@@ -28,8 +28,8 @@ ifdef PTXCONF_IMAGE_RAUC

 IMAGE_RAUC_ENV= \
 $(CODE_SIGNING_ENV) \
-RAUC_BUNDLE_COMPATIBLE="$(call remove_quotes,$(PTXCONF_RAUC_COMPATIBLE))" \
-RAUC_BUNDLE_VERSION="$(call remove_quotes, $(PTXCONF_RAUC_BUNDLE_VERSION))" \
+RAUC_BUNDLE_COMPATIBLE="$(call 
remove_quotes,$(PTXCONF_IMAGE_RAUC_COMPATIBLE))" \
+RAUC_BUNDLE_VERSION="$(call remove_quotes, 
$(PTXCONF_IMAGE_RAUC_BUNDLE_VERSION))" \
 RAUC_BUNDLE_BUILD=$(call ptx/sh, date +%FT%T%z) \
 RAUC_BUNDLE_DESCRIPTION=$(PTXCONF_IMAGE_RAUC_DESCRIPTION) \
 RAUC_KEY="$(shell cs_get_uri update)" \

Upstream and in your configuration:

PTXCONF_RAUC_COMPATIBLE="${PTXCONF_IMAGE_RAUC_COMPATIBLE}"

and in your platformconfigs:

PTXCONF_IMAGE_RAUC_COMPATIBLE="what ever you want"

This change would be transparent for all existing use-cases and give additional 
flexibility.

Regards, Denis


Am Montag, den 23.08.2021, 08:54 +0200 schrieb Robin van der Gracht:
> Hi Dennis,
>
> On 2021-08-23 06:27, Denis Osterland-Heim wrote:
> > Hi Robin,
> >
> > You may simply add the platform name to the compatibility string.
> >
> > PTXCONF_RAUC_COMPATIBLE="${PTXCONF_PROJECT_VENDOR} ${PTXCONF_PROJECT}
> > ${PTXCONF_PLATFORM}"
>
> Thank you for your reply.
>
> I've been doing so for some time now. But recently I had to rename my
> platforms but I'd like to keep the compatible string the same. That is when
> I starded questioning the location.
>
> Kind regards,
> Robin van der Gracht
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] PTXCONF_RAUC_COMPATIBLE location

2021-08-23 Thread Denis Osterland-Heim
Hi Robin,

You may simply add the platform name to the compatibility string.

PTXCONF_RAUC_COMPATIBLE="${PTXCONF_PROJECT_VENDOR} ${PTXCONF_PROJECT} 
${PTXCONF_PLATFORM}"

Regards Denis

Am Mittwoch, den 18.08.2021, 16:16 +0200 schrieb Robin van der Gracht:
> Hi Bastian,
>
> On 2021-08-18 15:52, Bastian Krause wrote:
> > Hi Robin,
> >
> > On 8/18/21 3:17 PM, Robin van der Gracht wrote:
> > > We're building an OS for multiple platforms. The platforms aren't
> > > compatible.
> >
> > Is the system.conf supposed to be identical on both platforms - apart
> > from the compatible?
>
> If you mean the ptxconfig file (generated by `ptxdist menuconfig`) then yes.
>
> We've refreshed the hardware of an existing product but want the OS to stay
> the same.
>
> Best regards,
> Robin van der Gracht
>
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH] libjpeg.make: libjpeg needs absolute path CMAKE_INSTALL_LIBDIR.

2021-08-10 Thread Denis Osterland-Heim
Am Montag, den 09.08.2021, 10:36 +0200 schrieb Christian Melki:
> Signed-off-by: Christian Melki 
Reviewed-by: Denis Osterland-Heim 
> ---
>  rules/libjpeg.make | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/rules/libjpeg.make b/rules/libjpeg.make
> index d0d3b569e..7b05d6953 100644
> --- a/rules/libjpeg.make
> +++ b/rules/libjpeg.make
> @@ -46,6 +46,7 @@ endif
>  LIBJPEG_CONF_TOOL := cmake
>  LIBJPEG_CONF_OPT := \
>  $(CROSS_CMAKE_USR) \
> +-DCMAKE_INSTALL_LIBDIR=/usr/$(CROSS_LIB_DIR) \
>  -DENABLE_SHARED=ON \
>  -DENABLE_STATIC=OFF \
>  -DFORCE_INLINE=ON \
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH] pre/Rules.make: Let CMAKE_INSTALL_LIBDIR be relative, as per spec.

2021-08-10 Thread Denis Osterland-Heim
Am Montag, den 09.08.2021, 10:36 +0200 schrieb Christian Melki:
> This means that packages that assume that this variable is absolute
> will have to be modified.
> Adding something like -DCMAKE_INSTALL_LIBDIR=/usr/$(CROSS_LIB_DIR),
> after CROSS_CMAKE_USR to your CONF_OPT will probably suffice.
>
> Signed-off-by: Christian Melki 
Reviewed-by: Denis Osterland-Heim 
> ---
>  rules/pre/Rules.make | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/rules/pre/Rules.make b/rules/pre/Rules.make
> index 54a677c47..0943a51b7 100644
> --- a/rules/pre/Rules.make
> +++ b/rules/pre/Rules.make
> @@ -233,7 +233,7 @@ CROSS_AUTOCONF_ROOT := $(CROSS_AUTOCONF_SYSROOT_ROOT) 
> $(CROSS_AUTOCONF_ARCH)
>
>  CROSS_CMAKE_USR := \
>  -DCMAKE_INSTALL_PREFIX=/usr \
> --DCMAKE_INSTALL_LIBDIR=/usr/$(CROSS_LIB_DIR) \
> +-DCMAKE_INSTALL_LIBDIR=$(CROSS_LIB_DIR) \
>  -DCMAKE_INSTALL_SYSCONFDIR=/etc \
>  -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
>  -DCMAKE_TOOLCHAIN_FILE='${PTXDIST_CMAKE_TOOLCHAIN_TARGET}'
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH] Add missing install CROSS_LIB_DIR for CMAKE environments.

2021-07-23 Thread Denis Osterland-Heim
Hi Christian,

Am Donnerstag, den 22.07.2021, 18:41 +0200 schrieb Christian Melki:
> On 7/22/21 10:07 AM, Denis Osterland-Heim wrote:
> > Hi Michael,
> >
> > Am Donnerstag, den 22.07.2021, 08:46 +0200 schrieb m.olbr...@pengutronix.de:
> > > Hi,
> > >
> > > On Wed, Jul 21, 2021 at 07:54:05PM +0200, Christian Melki wrote:
> > > > Sigh. Spec ambiguity mishmash.
> > > >
> > > > AFAIU, spec says that LIBDIR is relative.
> > > > CMake then constructs FULL_* variants of the corresponding ones as
> > > > absolute paths if not already set.
> > > >
> > > > I'd prefer a relative LIBDIR and then patch programs that have a broken
> > > > behavior. But that's probably no less of a pain...
> > >
> > > I don't mind either way. Maybe you could send patches to make it relative
> > > again an to fix libjpeg.
> > >
> > > > On 7/21/21 6:30 PM, Denis Osterland-Heim wrote:
> > > > > --- a/rules/sdbus-cpp.make
> > > > > +++ b/rules/sdbus-cpp.make
> > > > > @@ -29,7 +29,8 @@
> > > > >
> > > > >  SDBUS_CPP_CONF_TOOL:= cmake
> > > > >  SDBUS_CPP_CONF_OPT:= \
> > > > > -$(CROSS_CMAKE_USR) \
> > > > > +$(filter-out -DCMAKE_INSTALL_LIBDIR=/usr/$(CROSS_LIB_DIR), 
> > > > > $(CROSS_CMAKE_USR)) \
> > > > > +-DCMAKE_INSTALL_LIBDIR=$(CROSS_LIB_DIR) \
> > > > >  -DBUILD_TESTS=OFF \
> > > > >  -DBUILD_CODE_GEN=OFF \
> > > > >  -DBUILD_DOC=OFF
> > >
> > > Did you try '$(CROSS_CMAKE_USR) -DCMAKE_INSTALL_LIBDIR=$(CROSS_LIB_DIR)'? 
> > > I
> > > would expect that cmake simply used the last one specified if a variable 
> > > is
> > > added twice.
> >
> > Looks much easier.
> > I guess, I have thought to complex...
> >
> > Thanks for the hint.
> >
> > >
> > > Christian, I would prefer something like that for libjpeg instead of 
> > > adding
> > > a patch.
> >
> > Hi Christian,
> >
> > Are you willing to do that?
> >
> > Regards, Denis
> >
>
> Yes. Will fix. But ETA can be in a few weeks.
> Trying to get some quality non-screen time (vacation). :)
> Is that timeline OK?
Yes, of course. Thanks a lot in advance.

Regards, Denis

>
> > >
> > > Michael
> > >
> >
> > Diehl Connectivity Solutions GmbH
> > Geschäftsführung: Horst Leonberger
> > Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
> > Nürnberg: HRB 32315
> >
> > 
> >
> > Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese 
> > E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
> > Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise 
> > erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
> > Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
> > und/oder Publikation dieser E-Mail ist strengstens untersagt.
> >
> > - Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten 
> > Sie unter:
> >
> > https://www.diehl.com/group/de/transparenz-und-informationspflichten/
> >
> > The contents of the above mentioned e-mail is not legally binding. This 
> > e-mail contains confidential and/or legally protected information. Please 
> > inform us if you have received this e-mail by
> > mistake and delete it in such a case. Each unauthorized reproduction, 
> > disclosure, alteration, distribution and/or publication of this e-mail is 
> > strictly prohibited.
> >
> > - For general information on data protection and your respective rights 
> > please visit:
> >
> > https://www.diehl.com/group/en/transparency-and-information-obligations/
> >
> >
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH] Add missing install CROSS_LIB_DIR for CMAKE environments.

2021-07-22 Thread Denis Osterland-Heim
Hi Michael,

Am Donnerstag, den 22.07.2021, 08:46 +0200 schrieb m.olbr...@pengutronix.de:
> Hi,
>
> On Wed, Jul 21, 2021 at 07:54:05PM +0200, Christian Melki wrote:
> > Sigh. Spec ambiguity mishmash.
> >
> > AFAIU, spec says that LIBDIR is relative.
> > CMake then constructs FULL_* variants of the corresponding ones as
> > absolute paths if not already set.
> >
> > I'd prefer a relative LIBDIR and then patch programs that have a broken
> > behavior. But that's probably no less of a pain...
>
> I don't mind either way. Maybe you could send patches to make it relative
> again an to fix libjpeg.
>
> > On 7/21/21 6:30 PM, Denis Osterland-Heim wrote:
> > > --- a/rules/sdbus-cpp.make
> > > +++ b/rules/sdbus-cpp.make
> > > @@ -29,7 +29,8 @@
> > >
> > >  SDBUS_CPP_CONF_TOOL:= cmake
> > >  SDBUS_CPP_CONF_OPT:= \
> > > -$(CROSS_CMAKE_USR) \
> > > +$(filter-out -DCMAKE_INSTALL_LIBDIR=/usr/$(CROSS_LIB_DIR), 
> > > $(CROSS_CMAKE_USR)) \
> > > +-DCMAKE_INSTALL_LIBDIR=$(CROSS_LIB_DIR) \
> > >  -DBUILD_TESTS=OFF \
> > >  -DBUILD_CODE_GEN=OFF \
> > >  -DBUILD_DOC=OFF
>
> Did you try '$(CROSS_CMAKE_USR) -DCMAKE_INSTALL_LIBDIR=$(CROSS_LIB_DIR)'? I
> would expect that cmake simply used the last one specified if a variable is
> added twice.
Looks much easier.
I guess, I have thought to complex...

Thanks for the hint.

>
> Christian, I would prefer something like that for libjpeg instead of adding
> a patch.
Hi Christian,

Are you willing to do that?

Regards, Denis

>
> Michael
>
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH] Add missing install CROSS_LIB_DIR for CMAKE environments.

2021-07-21 Thread Denis Osterland-Heim
Hi,

I have encountered an problem with this patch in cmake based users of sdbus-cpp 
package.
This are the difference of installed cmake file after the patch:
--- a/sysroot-target/usr/lib/cmake/sdbus-c++/sdbus-c++-targets.cmake
+++ b/sysroot-target/usr/lib/cmake/sdbus-c++/sdbus-c++-targets.cmake
@@ -41,23 +41,8 @@
 unset(_expectedTargets)


-# Compute the installation prefix relative to this file.
-get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
-# Use original install
prefix when loaded through a
-# cross-prefix symbolic link such as /lib -> /usr/lib.
-get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
-get_filename_component(_realOrig
"/usr/lib/cmake/sdbus-c++" REALPATH)
-if(_realCurr STREQUAL _realOrig)
-  set(_IMPORT_PREFIX "/usr/lib/cmake/sdbus-c++")
-endif()
-unset(_realOrig)
-unset(_realCurr)
-get_filename_component(_IMPORT_PREFIX
"${_IMPORT_PREFIX}" PATH)
-get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
-get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
-if(_IMPORT_PREFIX STREQUAL "/")
-  set(_IMPORT_
PREFIX "")
-endif()
+# The installation prefix configured by this project.
+set(_IMPORT_PREFIX "/usr")

 # Create imported target SDBusCpp::sdbus-c++
 add_library(SDBusCpp::sdbus-c++ SHARED IMPORTED)


This causes following error:
CMake Error at 
x/sysroot-target/usr/lib/cmake/sdbus-c++/sdbus-c++-targets.cmake:83 (message):
  The imported target "SDBusCpp::sdbus-c++" references the file

 "/usr/lib/libsdbus-c++.so.0.8.2"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

 "x/sysroot-target/usr/lib/cmake/sdbus-c++/sdbus-c++-targets.cmake"

  but not all the files it references.
It looks like an effect mentioned in 
https://cmake.org/pipermail/cmake/2012-February/049250.html
and works with the initial relative version.

Unfortunately it looks like none of both variants is unconditionally right.
I am not sure how to handle this this properly, but I know that this is ugly:
--- a/rules/sdbus-cpp.make
+++ b/rules/sdbus-cpp.make
@@ -29,7 +29,8 @@

 SDBUS_CPP_CONF_TOOL:= cmake
 SDBUS_CPP_CONF_OPT:= \
-$(CROSS_CMAKE_USR) \
+$(filter-out -DCMAKE_INSTALL_LIBDIR=/usr/$(CROSS_LIB_DIR), $(CROSS_CMAKE_USR)) 
\
+-DCMAKE_INSTALL_LIBDIR=$(CROSS_LIB_DIR) \
 -DBUILD_TESTS=OFF \
 -DBUILD_CODE_GEN=OFF \
 -DBUILD_DOC=OFF

Regards, Denis

Am Freitag, den 21.05.2021, 13:03 +0200 schrieb Christian Melki:
> On 5/21/21 12:52 PM, Christian Melki wrote:
> > On 5/21/21 12:40 PM, Michael Olbrich wrote:
> > > On Tue, May 18, 2021 at 03:34:01PM +0200, Christian Melki wrote:
> > > > Was installing libraries into wrong directories.
> > > >
> > > > Signed-off-by: Christian Melki 
> > > > ---
> > > >   rules/pre/Rules.make | 1 +
> > > >   1 file changed, 1 insertion(+)
> > > >
> > > > diff --git a/rules/pre/Rules.make b/rules/pre/Rules.make
> > > > index 99e459ce2..93645a42a 100644
> > > > --- a/rules/pre/Rules.make
> > > > +++ b/rules/pre/Rules.make
> > > > @@ -233,6 +233,7 @@ CROSS_AUTOCONF_ROOT :=
> > > > $(CROSS_AUTOCONF_SYSROOT_ROOT) $(CROSS_AUTOCONF_ARCH)
> > > >   CROSS_CMAKE_USR := \
> > > >   -DCMAKE_INSTALL_PREFIX=/usr \
> > > > +-DCMAKE_INSTALL_LIBDIR=$(CROSS_LIB_DIR) \
> > >
> > > Hmmm, I need -DCMAKE_INSTALL_LIBDIR=/usr/$(CROSS_LIB_DIR) here.
> > >
> > > Otherwise the dir is taken as relative to the package build dir, at least
> > > for libjpeg.
> > >
> > > Michael
> > >
> >
> > Hm. Jury's out on that one.
> > I looked it over before I added it and I think it should be relative?
> >
> > https://bugzilla.redhat.com/show_bug.cgi?id=795542
> > https://gitlab.kitware.com/cmake/cmake/-/commit/126c993d031f6f7be4970a67621da92f580d4e5a
> >
> >
> > Seems spec confusion has caused both variants to exist in the wild?
> > But it was changed a long time ago to relative...
> >
> > Christian
> >
>
> Looking closer...
> Maybe the only way to get this right is to specify the absolute path.
> I'm happy with that.
>
> > > >   -DCMAKE_INSTALL_SYSCONFDIR=/etc \
> > > >   -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
> > > >   -DCMAKE_TOOLCHAIN_FILE='${PTXDIST_CMAKE_TOOLCHAIN_TARGET}'
> > > > --
> > > > 2.31.1
> > > >
> > > >
> > > > ___
> > > > ptxdist mailing list
> > > > ptxdist@pengutronix.de
> > > > To unsubscribe, send a mail with subject "unsubscribe" to
> > > > ptxdist-requ...@pengutronix.de
> > > >
> >
> > ___
> > ptxdist mailing list
> > ptxdist@pengutronix.de
> > To unsubscribe, send a mail with subject "unsubscribe" to
> > ptxdist-requ...@pengutronix.de
>
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to 
> ptxdist-requ...@pengutronix.de
Diehl 

[ptxdist] [PATCH] host-mfgtools: version bump 1.4.72 -> 1.4.139

2021-07-02 Thread Denis Osterland-Heim


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/




0001-host-mfgtools-version-bump-1.4.72-1.4.139.mbox
Description: 0001-host-mfgtools-version-bump-1.4.72-1.4.139.mbox
___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] allow network access to HSM in order to sign

2021-06-25 Thread Denis Osterland-Heim
Hi,

diff --git a/rules/pre/010-code-signing.make b/rules/pre/010-code-signing.make
index 370595600..557f4913e 100644
--- a/rules/pre/010-code-signing.make
+++ b/rules/pre/010-code-signing.make
@@ -16,6 +16,6 @@ CODE_SIGNING_ENV = \
 # to communicate with a server in an other stage than get
 #
 ptx/online-code-signing-provider = $(eval CODE_SIGNING_ENV += \
-   HTTPS_PROXY= HTTP_PROXY= https_proxy= http_proxy=)
+   ptxd_allow_network_access=code-signing)

 # vim: syntax=make
diff --git a/scripts/lib/ptxd_make_world_common.sh 
b/scripts/lib/ptxd_make_world_common.sh
index 7d1db67bf..90d097931 100644
--- a/scripts/lib/ptxd_make_world_common.sh
+++ b/scripts/lib/ptxd_make_world_common.sh
@@ -397,7 +397,7 @@ ptxd_make_world_init() {
 #
 # try to prevent downloads outside the get stage
 #
-if [ "${pkg_stage}" != "get" ]; then
+if [ "${pkg_stage}" != "get" ] && ! grep -Eq 
'\sptxd_allow_network_access=\S+' <<< "${pkg_env}"; then
pkg_env="HTTPS_PROXY=- HTTP_PROXY=- https_proxy=- http_proxy=- 
${pkg_env}"
 fi


Might do it, without touching the code-signer user files.

Regards, Denis

Am Freitag, den 25.06.2021, 11:47 +0200 schrieb Michael Olbrich:
> On Wed, Jun 23, 2021 at 05:08:09AM +, Denis Osterland-Heim wrote:
> > Am Dienstag, den 22.06.2021, 15:05 +0200 schrieb Marc Kleine-Budde:
> > > On 6/22/21 6:36 AM, Denis Osterland-Heim wrote:
> > > > Please have a look at 
> > > > https://git.pengutronix.de/cgit/ptxdist/commit/?id=4b3be8225f389c7db0e2d665e8e600cb2cf52b91
> > > >  .
> > > > This should answer your question.
> > >
> > > Thanks.
> >
> > You're welcome.
> >
> > >
> > > However that doesn't work, as the proprietary I'm using refuses to work 
> > > with
> > > https_proxy="" and I don't want to add more binary patches to the lib.
> >
> > :-/
> >
> > Maybe it would be an option to add a configuration switch to disable this 
> > behavior.
> > So your code-signing-provider may select this.
> >
> > --- a/scripts/lib/ptxd_make_world_common.sh
> > +++ b/scripts/lib/ptxd_make_world_common.sh
> > @@ -397,7 +397,7 @@ ptxd_make_world_init() {
> >  #
> >  # try to prevent downloads outside the get stage
> >  #
> > -if [ "${pkg_stage}" != "get" ]; then
> > +if [ "${pkg_stage}" != "get" ] && [ -z 
> > "${PTXCONF_DISABLE_DOWNLOAD_CHECK}" ]; then
> > pkg_env="HTTPS_PROXY=- HTTP_PROXY=- https_proxy=- http_proxy=- 
> > ${pkg_env}"
> >  fi
> >
> > Not sure if this is really works.
>
> I'd like to avoid disabling this globally. Maybe something like this:
>
> In the signing provider rules/pre makefile:
>
> CODE_SIGNING_NETWORK_ACCESS := YES
>
> In the packages that use it:
>
> _NETWORK_ACCESS := $(CODE_SIGNING_NETWORK_ACCESS)
>
> Add it to ptx/env and then check for it in ptxd_make_world_init().
>
> Michael
>
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] allow network access to HSM in order to sign

2021-06-22 Thread Denis Osterland-Heim
Hi,

Am Dienstag, den 22.06.2021, 15:05 +0200 schrieb Marc Kleine-Budde:
> On 6/22/21 6:36 AM, Denis Osterland-Heim wrote:
> > Please have a look at 
> > https://git.pengutronix.de/cgit/ptxdist/commit/?id=4b3be8225f389c7db0e2d665e8e600cb2cf52b91
> >  .
> > This should answer your question.
>
> Thanks.
You're welcome.

>
> However that doesn't work, as the proprietary I'm using refuses to work with
> https_proxy="" and I don't want to add more binary patches to the lib.
:-/

Maybe it would be an option to add a configuration switch to disable this 
behavior.
So your code-signing-provider may select this.

--- a/scripts/lib/ptxd_make_world_common.sh
+++ b/scripts/lib/ptxd_make_world_common.sh
@@ -397,7 +397,7 @@ ptxd_make_world_init() {
 #
 # try to prevent downloads outside the get stage
 #
-if [ "${pkg_stage}" != "get" ]; then
+if [ "${pkg_stage}" != "get" ] && [ -z "${PTXCONF_DISABLE_DOWNLOAD_CHECK}" 
]; then
pkg_env="HTTPS_PROXY=- HTTP_PROXY=- https_proxy=- http_proxy=- 
${pkg_env}"
 fi

Not sure if this is really works.

Regards, Denis

>
> regards,
> Marc
>
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] allow network access to HSM in order to sign

2021-06-21 Thread Denis Osterland-Heim
Hi Marc,

Please have a look at 
https://git.pengutronix.de/cgit/ptxdist/commit/?id=4b3be8225f389c7db0e2d665e8e600cb2cf52b91
 .
This should answer your question.

Regards, Denis

Am Montag, den 21.06.2021, 22:13 +0200 schrieb Marc Kleine-Budde:
> Hello Michael,
>
> since commit:
>
> > ab4af48ba403 ptxd_make_world_init: try to prevent downloads outside the get 
> > stage
>
> signing using a HSM doesn't work anymore, as the signing client
> evaluated the https_proxy variable.
>
> regards,
> Marc
>
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to 
> ptxdist-requ...@pengutronix.de
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH] host-mfgtools: version bump 1.4.43 -> 1.4.72

2021-05-28 Thread Denis Osterland-Heim


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/




[PATCH]_host-mfgtools_version_bump_1.4.43_-__1.4.72.mbox
Description: [PATCH]_host-mfgtools_version_bump_1.4.43_-__1.4.72.mbox
___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH v3 0/3] yubi HSM pkcs11 plugin for signing provider

2021-04-23 Thread Denis Osterland-Heim
Hi Michael,

Thanks for the info.
I know and I will do so.
I am already happy that you are able to work with this workaround so smooth.
In life nothing comes without a cost.
As long as we are not able to send simple plain text e-mails, I have to invest 
this extra effort.

Regards, Denis

Am Freitag, den 23.04.2021, 09:57 +0200 schrieb Michael Olbrich:
> On Wed, Apr 07, 2021 at 12:03:46PM +0000, Denis Osterland-Heim wrote:
> > v2 -> v3:
> >  - add host-openssl dependency to host-libcurl
> >  - remove 030-yubihsm-shell.make with code singing env change
> >  - add macro for code signing env change and add it to template
> >
> > Denis Osterland-Heim (3):
> >   host-libcurl: enable http(s) support
> >   host-yubihsm-shell: new package
> >   code-signing: add macro to mark a online code signing provider
>
> FYI, I did apply these patches. But as they are attachments neither my
> tooling to detect patches that I still need to review/apply nor the git
> hook that sends the 'applied' message can track your patches.
> So you need to keep track of those yourself and remind me if anything gets
> lost.
>
> Michael
>
> >  rules/host-libcurl.in  |  1 +
> >  rules/host-libcurl.make|  4 +--
> >  rules/host-yubihsm-shell.in| 13 
> >  rules/host-yubihsm-shell.make  | 37 
> > ++
> >  rules/pre/010-code-signing.make|  7 
> >  .../template-code-signing-provider-pre-make|  4 +++
> >  6 files changed, 64 insertions(+), 2 deletions(-)
> >
> > base-commit: c3361e082 ("wpewebkit: add runtime logging support")
> > Diehl Connectivity Solutions GmbH
> > Geschäftsführung: Horst Leonberger
> > Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
> > Nürnberg: HRB 32315
> >
> > 
> >
> > Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese 
> > E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
> > Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise 
> > erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
> > Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
> > und/oder Publikation dieser E-Mail ist strengstens untersagt.
> >
> > - Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten 
> > Sie unter:
> >
> > https://www.diehl.com/group/de/transparenz-und-informationspflichten/
> >
> > The contents of the above mentioned e-mail is not legally binding. This 
> > e-mail contains confidential and/or legally protected information. Please 
> > inform us if you have received this e-mail by
> > mistake and delete it in such a case. Each unauthorized reproduction, 
> > disclosure, alteration, distribution and/or publication of this e-mail is 
> > strictly prohibited.
> >
> > - For general information on data protection and your respective rights 
> > please visit:
> >
> > https://www.diehl.com/group/en/transparency-and-information-obligations/
> >
> >
> > Return-Path: 
> > X-Original-To: ptxdist@pengutronix.de
> > Delivered-To: osterlad@cwpc1435.diehlako.local
> > Received: by cwpc1435.diehlako.local (Postfix, from userid 1001)
> > id 729313E432A; Wed,  7 Apr 2021 13:54:50 +0200 (CEST)
> > From: Denis Osterland-Heim 
> > To: ptxdist@pengutronix.de
> > Subject: [PATCH v3 2/3] host-yubihsm-shell: new package
> > Date: Wed,  7 Apr 2021 13:54:49 +0200
> > Message-Id: <20210407115450.21355-2-denis.osterl...@diehl.com>
> > X-Mailer: git-send-email 2.31.1
> > In-Reply-To: <20210407115450.21355-1-denis.osterl...@diehl.com>
> > References: <20210407115450.21355-1-denis.osterl...@diehl.com>
> > MIME-Version: 1.0
> > Content-Transfer-Encoding: 8bit
> >
> > This package provides the pkcs11 plugin for yubi HSMs,
> > which allows to create a signing provider for it.
> >
> > Signed-off-by: Denis Osterland-Heim 
> > ---
> >  rules/host-yubihsm-shell.in   | 13 
> >  rules/host-yubihsm-shell.make | 37 +++
> >  2 files changed, 50 insertions(+)
> >  create mode 100644 rules/host-yubihsm-shell.in
> >  create mode 100644 rules/host-yubihsm-shell.make
> >
> > diff --git a/rules/host-yubihsm-shell.in b/rules/host-yubihsm-shell.in
> > new file mode 100644
> > index 0..65d68fcce
> > --- /dev/null
> > +++ b/rules/host-yubihsm-shell.in
> 

[ptxdist] [PATCH v3 0/3] yubi HSM pkcs11 plugin for signing provider

2021-04-07 Thread Denis Osterland-Heim
v2 -> v3:
 - add host-openssl dependency to host-libcurl
 - remove 030-yubihsm-shell.make with code singing env change
 - add macro for code signing env change and add it to template

Denis Osterland-Heim (3):
  host-libcurl: enable http(s) support
  host-yubihsm-shell: new package
  code-signing: add macro to mark a online code signing provider

 rules/host-libcurl.in  |  1 +
 rules/host-libcurl.make|  4 +--
 rules/host-yubihsm-shell.in| 13 
 rules/host-yubihsm-shell.make  | 37 ++
 rules/pre/010-code-signing.make|  7 
 .../template-code-signing-provider-pre-make|  4 +++
 6 files changed, 64 insertions(+), 2 deletions(-)

base-commit: c3361e082 ("wpewebkit: add runtime logging support")
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/




1617796490.Vfd01Ie71c04M493614.mbox
Description: 1617796490.Vfd01Ie71c04M493614.mbox


1617796490.Vfd01Ie71c05M493755.mbox
Description: 1617796490.Vfd01Ie71c05M493755.mbox


1617796490.Vfd01Ie721ebM490748.mbox
Description: 1617796490.Vfd01Ie721ebM490748.mbox
___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH v3] kernel: proper handle signed modules

2021-03-31 Thread Denis Osterland-Heim


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/




20210331113525.22330-1-denis.osterland.mbox
Description: 20210331113525.22330-1-denis.osterland.mbox
___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH v2 0/2] yubi HSM pkcs11 plugin for signing provider

2021-03-31 Thread Denis Osterland-Heim
Hi,

Am Mittwoch, den 31.03.2021, 09:22 +0200 schrieb Michael Olbrich:
> On Tue, Mar 30, 2021 at 02:53:42PM +0000, Denis Osterland-Heim wrote:
> > v1 -> v2:
> > - pass variables to CODE_SIGNING_ENV in favour of noproxy patch
> > - remove function extending patches, which seams easier to maintain
> >
> > Denis Osterland-Heim (2):
> >   host-libcurl: enable http(s) support
> >   host-yubihsm-shell: new package
> >
> >  rules/host-libcurl.make  |  4 ++--
> >  rules/host-yubihsm-shell.in  | 13 +
> >  rules/host-yubihsm-shell.make| 37 +
> >  rules/pre/030-yubihsm-shell.make | 11 +++
> >  4 files changed, 63 insertions(+), 2 deletions(-)
> >
> > base-commit: c33f9942d ("glib: version bump 2.66.6 -> 2.68.0")
> >
> > Return-Path: 
> > X-Original-To: ptxdist@pengutronix.de
> > Delivered-To: osterlad@cwpc1435.diehlako.local
> > Received: by cwpc1435.diehlako.local (Postfix, from userid 1001)
> > id ABA433E432B; Tue, 30 Mar 2021 16:48:30 +0200 (CEST)
> > From: Denis Osterland-Heim 
> > To: ptxdist@pengutronix.de
> > Subject: [PATCH v2 1/2] host-libcurl: enable http(s) support
> > Date: Tue, 30 Mar 2021 16:48:27 +0200
> > Message-Id: <20210330144828.15293-2-denis.osterl...@diehl.com>
> > X-Mailer: git-send-email 2.31.1
> > In-Reply-To: <20210330144828.15293-1-denis.osterl...@diehl.com>
> > References: <20210330144828.15293-1-denis.osterl...@diehl.com>
> > MIME-Version: 1.0
> > Content-Transfer-Encoding: 8bit
> >
> > Signed-off-by: Denis Osterland-Heim 
> > ---
> >  rules/host-libcurl.make | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/rules/host-libcurl.make b/rules/host-libcurl.make
> > index dc28de778..1a2a1fcf5 100644
> > --- a/rules/host-libcurl.make
> > +++ b/rules/host-libcurl.make
> > @@ -61,7 +61,7 @@ HOST_LIBCURL_CONF_OPT:= \
> >  --without-librtmp \
> >  \
> >  --disable-ares \
> > ---disable-http \
> > +--enable-http \
> >  --disable-nghttp2 \
> >  --disable-cookies \
> >  --disable-ftp \
> > @@ -69,7 +69,7 @@ HOST_LIBCURL_CONF_OPT:= \
> >  --disable-file \
> >  --disable-crypto-auth \
> >  --disable-libssh2 \
> > ---without-ssl
> > +--with-ssl
>
> still missing the openssl dependency.
sorry, will be in next version

>
>
> >
> >  $(STATEDIR)/host-libcurl.install:
> >  @$(call targetinfo)
> > --
> > 2.31.1
> >
> > Return-Path: 
> > X-Original-To: ptxdist@pengutronix.de
> > Delivered-To: osterlad@cwpc1435.diehlako.local
> > Received: by cwpc1435.diehlako.local (Postfix, from userid 1001)
> > id AE8CF3E432B; Tue, 30 Mar 2021 16:48:30 +0200 (CEST)
> > From: Denis Osterland-Heim 
> > To: ptxdist@pengutronix.de
> > Subject: [PATCH v2 2/2] host-yubihsm-shell: new package
> > Date: Tue, 30 Mar 2021 16:48:28 +0200
> > Message-Id: <20210330144828.15293-3-denis.osterl...@diehl.com>
> > X-Mailer: git-send-email 2.31.1
> > In-Reply-To: <20210330144828.15293-1-denis.osterl...@diehl.com>
> > References: <20210330144828.15293-1-denis.osterl...@diehl.com>
> > MIME-Version: 1.0
> > Content-Transfer-Encoding: 8bit
> >
> > This package provides the pkcs11 plugin for yubi HSMs,
> > which allows to create a signing provider for it.
> >
> > Signed-off-by: Denis Osterland-Heim 
> > ---
> >  rules/host-yubihsm-shell.in  | 13 +++
> >  rules/host-yubihsm-shell.make| 37 
> >  rules/pre/030-yubihsm-shell.make | 11 ++
> >  3 files changed, 61 insertions(+)
> >  create mode 100644 rules/host-yubihsm-shell.in
> >  create mode 100644 rules/host-yubihsm-shell.make
> >  create mode 100644 rules/pre/030-yubihsm-shell.make
> >
> > diff --git a/rules/host-yubihsm-shell.in b/rules/host-yubihsm-shell.in
> > new file mode 100644
> > index 0..3b17a2e98
> > --- /dev/null
> > +++ b/rules/host-yubihsm-shell.in
> > @@ -0,0 +1,13 @@
> > +## SECTION=hosttools_noprompt
> > +
> > +config HOST_YUBIHSM_SHELL
> > +tristate
> > +default ALLYES
> > +select HOST_CMAKE
> > +select HOST_OPENSSL
> > +select HOST_LIBCURL
> > +select HOST_LIBUSB
> > +select HOST_GENGETOPT
> > +select HOST_LIBEDIT
> > +select HOST_PCSC_LITE
> > +select HOST_LIBP11
> > diff --git a/rules/host-yubihsm-shell.make b/rules/host-yubihsm-shell.make
> > new file 

[ptxdist] [PATCH v2] kernel: proper handle signed modules

2021-03-30 Thread Denis Osterland-Heim


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/




20210331051336.5509-1-denis.osterland.mbox
Description: 20210331051336.5509-1-denis.osterland.mbox
___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH v2 0/2] yubi HSM pkcs11 plugin for signing provider

2021-03-30 Thread Denis Osterland-Heim
v1 -> v2:
- pass variables to CODE_SIGNING_ENV in favour of noproxy patch
- remove function extending patches, which seams easier to maintain

Denis Osterland-Heim (2):
  host-libcurl: enable http(s) support
  host-yubihsm-shell: new package

 rules/host-libcurl.make  |  4 ++--
 rules/host-yubihsm-shell.in  | 13 +
 rules/host-yubihsm-shell.make| 37 +
 rules/pre/030-yubihsm-shell.make | 11 +++
 4 files changed, 63 insertions(+), 2 deletions(-)

base-commit: c33f9942d ("glib: version bump 2.66.6 -> 2.68.0")

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/




1617115710.Vfd01Idfe513M709882.mbox
Description: 1617115710.Vfd01Idfe513M709882.mbox


1617115710.Vfd01Idfe687M718182.mbox
Description: 1617115710.Vfd01Idfe687M718182.mbox
___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH] kernel: do not strip signed modules

2021-03-30 Thread Denis Osterland-Heim
Hi,

Thanks for the input.

>$(mod_strip_cmd) $(2)/$(notdir $@) ; \
>$(mod_sign_cmd) $(2)/$(notdir $@) $(patsubst %,|| true,$(KBUILD_EXTMOD)) ; \
from scripts/Makefile.modinst

As far as I got it, with INSTALL_MOD_STRIP="--strip-debug -R .GCC.command.line" 
in KERNEL_MAKE_OPT
and always strip=n in targetinstall it should work identically with signed 
modules and without.

What do you and Marc think?

Regards, Denis

Am Dienstag, den 30.03.2021, 09:53 +0200 schrieb Michael Olbrich:
> On Tue, Mar 30, 2021 at 06:08:10AM +0000, Denis Osterland-Heim wrote:
> > If CONFIG_MODULE_SIG_ALL is set in kernelconfig then modules will be
> > automatically signed during the modules_install phase of a kernel build.
> >
> > Signed modules are BRITTLE as the signature is outside of the defined ELF
> > container. Thus they MAY NOT be stripped once the signature is computed
> > and attached. Note the entire module is the signed payload, including any
> > and all debug information present at the time of signing.
>
> Hmm, we had the same  issue at some point. The solution was a local copy of
> the shell code that does the stripping and installing. I think we added
> some code to sign the Modules again.
> The result was nice, but the whole thing was rather invasive and makes
> assumptions on how the module signing works internally in the kernel.
> So it was not something that I wanted to merge mainline that way.
>
> In general, I like this approach better. But there are two issues with it.
>
> 1. There are redundant options and if the uses gets it wrong then it wont
> fail at build time. We can get this from the kernelconfig:
> '$(shell ptxd_get_kconfig $(KERNEL_CONFIG) CONFIG_MODULE_SIG_ALL)' I think.
> But we have to make sure that it's not evaluated too early. To avoid
> slowing down ptxdist startup.
>
> 2. The modules are not stripped at all. So we should set
> INSTALL_MOD_STRIP=1 in this case.
>
> Marc, what do you think?
>
> Michael
>
> > See: https://www.kernel.org/doc/html/latest/admin-guide/module-signing.html
> > Signed-off-by: Denis Osterland-Heim 
> > ---
> >  platforms/kernel.in | 7 +++
> >  rules/kernel.make   | 3 ++-
> >  2 files changed, 9 insertions(+), 1 deletion(-)
> >
> > diff --git a/platforms/kernel.in b/platforms/kernel.in
> > index 68899c0f7..8b9473b03 100644
> > --- a/platforms/kernel.in
> > +++ b/platforms/kernel.in
> > @@ -32,6 +32,13 @@ config KERNEL_MODULES
> >  default y
> >  prompt "build kernel-modules"
> >
> > +config KERNEL_MODULES_SIGNED
> > +bool "kernel-modules are signed on install"
> > +depends on KERNEL_MODULES
> > +help
> > +  Set this to y if CONFIG_MODULE_SIG_ALL is y in kernelconfig.
> > +  Otherwise the strip would damage automatically generated signature.
> > +
> >  config KERNEL_MODULES_INSTALL
> >  bool
> >  default y
> > diff --git a/rules/kernel.make b/rules/kernel.make
> > index ea748fc8a..c964bd672 100644
> > --- a/rules/kernel.make
> > +++ b/rules/kernel.make
> > @@ -313,7 +313,8 @@ ifdef PTXCONF_KERNEL_MODULES_INSTALL
> >  @$(call install_fixup, kernel-modules, AUTHOR,"Robert Schwebel 
> > ")
> >  @$(call install_fixup, kernel-modules, DESCRIPTION,missing)
> >
> > -@$(call install_glob, kernel-modules, 0, 0, -, /lib/modules, *.ko,, k)
> > +@$(call install_glob, kernel-modules, 0, 0, -, /lib/modules, *.ko,, \
> > +$(call ptx/ifdef,PTXCONF_KERNEL_MODULES_SIGNED,n,k))
> >  @$(call install_glob, kernel-modules, 0, 0, -, /lib/modules,, *.ko */build 
> > */source, n)
> >
> >  @$(call install_finish, kernel-modules)
> > --
> > 2.31.1
> >
> > ___
> > ptxdist mailing list
> > ptxdist@pengutronix.de
> > To unsubscribe, send a mail with subject "unsubscribe" to 
> > ptxdist-requ...@pengutronix.de
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above men

[ptxdist] [PATCH] kernel: do not strip signed modules

2021-03-30 Thread Denis Osterland-Heim


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/




1617084308.Vfd01Idfd786M787564.mbox
Description: 1617084308.Vfd01Idfd786M787564.mbox
___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH] crda: install regulatory.db too

2021-03-12 Thread Denis Osterland-Heim
Hi,

This file contains is the signatures.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/net/wireless/Kconfig?h=v5.12-rc2#n97

Regards, Denis

Am Freitag, den 12.03.2021, 08:33 +0100 schrieb Michael Olbrich:
> Hi,
>
> On Thu, Mar 11, 2021 at 07:55:21AM +0000, Denis Osterland-Heim wrote:
> > Once more, sorry for the inconvenience.
>
> No problem.
>
> > Please find mbox attached.
>
> You can just send the attached mbox. As you can see below, my email client
> (mutt) quotes the attachment so I can easily reply and comment.
> And I can apply the patch just like any inline patch, so no extra work for
> me.
>
> > Date: Thu, 11 Mar 2021 08:52:02 +0100
> > From: Denis Osterland-Heim 
> > To: ptxdist@pengutronix.de
> > Subject: [PATCH] crda: install regulatory.db too
> > Message-ID: <20210311075202.1876-1-denis.osterl...@diehl.com>
> > X-Mailer: git-send-email 2.30.2
> >
> > Kernel >= 4.15 want to load this file.
> >
> > Signed-off-by: Denis Osterland-Heim 
> > ---
> >  rules/crda.make | 8 
> >  1 file changed, 8 insertions(+)
> >
> > diff --git a/rules/crda.make b/rules/crda.make
> > index 724aa7ba9..9cbb7af93 100644
> > --- a/rules/crda.make
> > +++ b/rules/crda.make
> > @@ -74,6 +74,10 @@ $(STATEDIR)/crda.install:
> >  @$(call world/install, CRDA)
> >  @install -vD -m 644 $(CRDA_REGDB_DIR)/$(CRDA_REGDB)/regulatory.bin \
> >  $(CRDA_PKGDIR)/usr/lib/crda/regulatory.bin
> > +@install -vD -m 0644 $(CRDA_REGDB_DIR)/$(CRDA_REGDB)/regulatory.db \
> > + $(CRDA_PKGDIR)/lib/firmware/regulatory.db
> > +@install -vD -m 0644 $(CRDA_REGDB_DIR)/$(CRDA_REGDB)/regulatory.db.p7s \
> > + $(CRDA_PKGDIR)/lib/firmware/regulatory.db.p7s
> >  @install -vD -m 644 $(CRDA_REGDB_DIR)/pubkeys/linville.key.pub.pem \
> >  $(CRDA_PKGDIR)/usr/lib/crda/pubkeys/linville.key.pub.pem
> >  @install -vD -m 644 $(CRDA_REGDB_DIR)/pubkeys/sforshee.key.pub.pem \
> > @@ -103,6 +107,10 @@ $(STATEDIR)/crda.targetinstall:
> >  /usr/lib/crda/pubkeys)
> >  @$(call install_alternative, crda, 0, 0, 0644, \
> >  /usr/lib/crda/regulatory.bin)
> > +@$(call install_alternative, crda, 0, 0, 0644, \
> > +/lib/firmware/regulatory.db)
> > +@$(call install_alternative, crda, 0, 0, 0644, \
> > +/lib/firmware/regulatory.db.p7s)
>
> So the commit message mentions regulatory.db but not regulatory.db.p7s.
> What is that file for?
>
> Michael
>
> >
> >  @$(call install_finish, crda)
> >
> > --
> > 2.30.2
>
>
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to 
> ptxdist-requ...@pengutronix.de
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH 5/5] host-yubihsm-shell: new package

2021-03-12 Thread Denis Osterland-Heim
Hi,

Thanks for the hint.
I will give it a try.

You are right, I forgot host-openssl as dependency.

Regards, Denis

Am Freitag, den 12.03.2021, 08:47 +0100 schrieb Michael Olbrich:
> On Mon, Mar 08, 2021 at 12:35:08PM +0000, Denis Osterland-Heim wrote:
> > This package provides the pkcs11 plugin for yubi HSMs,
> > which allows to create a signing provider for it.
> >
> > Patches are sent upstream: https://github.com/Yubico/yubihsm-shell/pull/162
> >
> > To use it together with a CA server:
> > Since ab4af48ba ("ptxd_make_world_init: try to prevent downloads outside 
> > the get stage")
> > `noproxy=*` in the yubihsm.conf is required to allow libcurl HTTP
> > communication in compile stage.
>
> Hmmm, I think you should be able to extend CODE_SIGNING_ENV and add
> "HTTPS_PROXY= HTTP_PROXY= https_proxy= http_proxy=". That should be
> evaluated after the variables set by ab4af48ba and clear them.
>
> And expanding CODE_SIGNING_ENV depending on the signing provider is
> expected. We already do this for softhsm:
> rules/pre/020-code-signing-softhsm.make
>
> Michael
>
> > Signed-off-by: Denis Osterland-Heim 
> > ---
> >  ...lient-cert-support-for-pkcs11-module.patch | 88 +++
> >  ...002-add-bash-like-variable-extension.patch | 67 ++
> >  .../0003-add-noproxy-option.patch | 76 
> >  patches/yubihsm-shell-2.1.0/series|  6 ++
> >  rules/host-yubihsm-shell.in   | 13 +++
> >  rules/host-yubihsm-shell.make | 37 
> >  6 files changed, 287 insertions(+)
> >  create mode 100644 
> > patches/yubihsm-shell-2.1.0/0001-add-client-cert-support-for-pkcs11-module.patch
> >  create mode 100644 
> > patches/yubihsm-shell-2.1.0/0002-add-bash-like-variable-extension.patch
> >  create mode 100644 
> > patches/yubihsm-shell-2.1.0/0003-add-noproxy-option.patch
> >  create mode 100644 patches/yubihsm-shell-2.1.0/series
> >  create mode 100644 rules/host-yubihsm-shell.in
> >  create mode 100644 rules/host-yubihsm-shell.make
> >
> > diff --git 
> > a/patches/yubihsm-shell-2.1.0/0001-add-client-cert-support-for-pkcs11-module.patch
> >  
> > b/patches/yubihsm-shell-2.1.0/0001-add-client-cert-support-for-pkcs11-module.patch
> > new file mode 100644
> > index 0..dbce11c85
> > --- /dev/null
> > +++ 
> > b/patches/yubihsm-shell-2.1.0/0001-add-client-cert-support-for-pkcs11-module.patch
> > @@ -0,0 +1,88 @@
> > +From: Denis Osterland-Heim 
> > +Date: Tue, 26 Jan 2021 14:19:52 +0100
> > +Subject: [PATCH] add client cert support for pkcs11 module
> > +
> > +Allows to authenticate with client certificates at HSM server.
> > +
> > +Signed-off-by: Denis Osterland-Heim 
> > +---
> > + lib/yubihsm.h   |  6 ++
> > + lib/yubihsm_curl.c  |  8 
> > + pkcs11/cmdline.ggo  |  2 ++
> > + pkcs11/yubihsm_pkcs11.c | 14 ++
> > + 4 files changed, 30 insertions(+)
> > +
> > +diff --git a/lib/yubihsm.h b/lib/yubihsm.h
> > +index ef80d42b1865..da08f68038dd 100644
> > +--- a/lib/yubihsm.h
> >  b/lib/yubihsm.h
> > +@@ -518,6 +518,12 @@ typedef enum {
> > +   /// Proxy server to use for connecting to the connector (const char *). 
> > Not
> > +   /// implemented on Windows
> > +   YH_CONNECTOR_PROXY_SERVER = 2,
> > ++  /// File with client certificate to authenticate client with (const 
> > char *).
> > ++  /// Not implemented on Windows
> > ++  YH_CONNECTOR_HTTPS_CERT = 3,
> > ++  /// File with client certificates key (const char *).
> > ++  /// Not implemented on Windows
> > ++  YH_CONNECTOR_HTTPS_KEY = 4,
> > + } yh_connector_option;
> > +
> > + #pragma pack(push, 1)
> > +diff --git a/lib/yubihsm_curl.c b/lib/yubihsm_curl.c
> > +index 6360f3693268..2f46802e0fe1 100644
> > +--- a/lib/yubihsm_curl.c
> >  b/lib/yubihsm_curl.c
> > +@@ -231,6 +231,14 @@ static yh_rc backend_option(yh_backend *connection, 
> > yh_connector_option opt,
> > +   option = CURLOPT_CAINFO;
> > +   optname = "CURLOPT_CAINFO";
> > +   break;
> > ++case YH_CONNECTOR_HTTPS_CERT:
> > ++  option = CURLOPT_SSLCERT;
> > ++  optname = "CURLOPT_SSLCERT";
> > ++  break;
> > ++case YH_CONNECTOR_HTTPS_KEY:
> > ++  option = CURLOPT_SSLKEY;
> > ++  optname = "CURLOPT_SSLKEY";
> > ++  break;
> > + case YH_CONNECTOR_PROXY_SERVER:
> > +   option = CURLOPT_PROXY;
> > + 

Re: [ptxdist] [PATCH] crda: install regulatory.db too

2021-03-10 Thread Denis Osterland-Heim
Hi,

Once more, sorry for the inconvenience.
Please find mbox attached.

Regards, Denis

Am Donnerstag, den 11.03.2021, 08:52 +0100 schrieb Denis Osterland-Heim:
> Kernel >= 4.15 want to load this file.
>
> Signed-off-by: Denis Osterland-Heim 
> ---
>  rules/crda.make | 8 
>  1 file changed, 8 insertions(+)
>
> diff --git a/rules/crda.make b/rules/crda.make
> index 724aa7ba9..9cbb7af93 100644
> --- a/rules/crda.make
> +++ b/rules/crda.make
> @@ -74,6 +74,10 @@ $(STATEDIR)/crda.install:
>  @$(call world/install, CRDA)
>  @install -vD -m 644 $(CRDA_REGDB_DIR)/$(CRDA_REGDB)/regulatory.bin \
>  $(CRDA_PKGDIR)/usr/lib/crda/regulatory.bin
> +@install -vD -m 0644 $(CRDA_REGDB_DIR)/$(CRDA_REGDB)/regulatory.db \
> + $(CRDA_PKGDIR)/lib/firmware/regulatory.db
> +@install -vD -m 0644 $(CRDA_REGDB_DIR)/$(CRDA_REGDB)/regulatory.db.p7s \
> + $(CRDA_PKGDIR)/lib/firmware/regulatory.db.p7s
>  @install -vD -m 644 $(CRDA_REGDB_DIR)/pubkeys/linville.key.pub.pem \
>  $(CRDA_PKGDIR)/usr/lib/crda/pubkeys/linville.key.pub.pem
>  @install -vD -m 644 $(CRDA_REGDB_DIR)/pubkeys/sforshee.key.pub.pem \
> @@ -103,6 +107,10 @@ $(STATEDIR)/crda.targetinstall:
>  /usr/lib/crda/pubkeys)
>  @$(call install_alternative, crda, 0, 0, 0644, \
>  /usr/lib/crda/regulatory.bin)
> +@$(call install_alternative, crda, 0, 0, 0644, \
> +/lib/firmware/regulatory.db)
> +@$(call install_alternative, crda, 0, 0, 0644, \
> +/lib/firmware/regulatory.db.p7s)
>
>  @$(call install_finish, crda)
>
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


--- Begin Message ---
Kernel >= 4.15 want to load this file.

Signed-off-by: Denis Osterland-Heim 
---
 rules/crda.make | 8 
 1 file changed, 8 insertions(+)

diff --git a/rules/crda.make b/rules/crda.make
index 724aa7ba9..9cbb7af93 100644
--- a/rules/crda.make
+++ b/rules/crda.make
@@ -74,6 +74,10 @@ $(STATEDIR)/crda.install:
@$(call world/install, CRDA)
@install -vD -m 644 $(CRDA_REGDB_DIR)/$(CRDA_REGDB)/regulatory.bin \
$(CRDA_PKGDIR)/usr/lib/crda/regulatory.bin
+   @install -vD -m 0644 $(CRDA_REGDB_DIR)/$(CRDA_REGDB)/regulatory.db \
+$(CRDA_PKGDIR)/lib/firmware/regulatory.db
+   @install -vD -m 0644 $(CRDA_REGDB_DIR)/$(CRDA_REGDB)/regulatory.db.p7s \
+$(CRDA_PKGDIR)/lib/firmware/regulatory.db.p7s
@install -vD -m 644 $(CRDA_REGDB_DIR)/pubkeys/linville.key.pub.pem \
$(CRDA_PKGDIR)/usr/lib/crda/pubkeys/linville.key.pub.pem
@install -vD -m 644 $(CRDA_REGDB_DIR)/pubkeys/sforshee.key.pub.pem \
@@ -103,6 +107,10 @@ $(STATEDIR)/crda.targetinstall:
/usr/lib/crda/pubkeys)
@$(call install_alternative, crda, 0, 0, 0644, \
/usr/lib/crda/regulatory.bin)
+   @$(call install_alternative, crda, 0, 0, 0644, \
+   /lib/firmware/regulatory.db)
+   @$(call install_alternative, crda, 0, 0, 0644, \
+   /lib/firmware/regulatory.db.p7s)
 
@$(call install_finish, crda)
 
-- 
2.30.2

--- End Message ---
___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH] crda: install regulatory.db too

2021-03-10 Thread Denis Osterland-Heim
Kernel >= 4.15 want to load this file.

Signed-off-by: Denis Osterland-Heim 
---
 rules/crda.make | 8 
 1 file changed, 8 insertions(+)

diff --git a/rules/crda.make b/rules/crda.make
index 724aa7ba9..9cbb7af93 100644
--- a/rules/crda.make
+++ b/rules/crda.make
@@ -74,6 +74,10 @@ $(STATEDIR)/crda.install:
 @$(call world/install, CRDA)
 @install -vD -m 644 $(CRDA_REGDB_DIR)/$(CRDA_REGDB)/regulatory.bin \
 $(CRDA_PKGDIR)/usr/lib/crda/regulatory.bin
+@install -vD -m 0644 $(CRDA_REGDB_DIR)/$(CRDA_REGDB)/regulatory.db \
+ $(CRDA_PKGDIR)/lib/firmware/regulatory.db
+@install -vD -m 0644 $(CRDA_REGDB_DIR)/$(CRDA_REGDB)/regulatory.db.p7s \
+ $(CRDA_PKGDIR)/lib/firmware/regulatory.db.p7s
 @install -vD -m 644 $(CRDA_REGDB_DIR)/pubkeys/linville.key.pub.pem \
 $(CRDA_PKGDIR)/usr/lib/crda/pubkeys/linville.key.pub.pem
 @install -vD -m 644 $(CRDA_REGDB_DIR)/pubkeys/sforshee.key.pub.pem \
@@ -103,6 +107,10 @@ $(STATEDIR)/crda.targetinstall:
 /usr/lib/crda/pubkeys)
 @$(call install_alternative, crda, 0, 0, 0644, \
 /usr/lib/crda/regulatory.bin)
+@$(call install_alternative, crda, 0, 0, 0644, \
+/lib/firmware/regulatory.db)
+@$(call install_alternative, crda, 0, 0, 0644, \
+/lib/firmware/regulatory.db.p7s)

 @$(call install_finish, crda)

--
2.30.2

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/



___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] yubi HSM pkcs11 plugin for signing provider

2021-03-08 Thread Denis Osterland-Heim
Am Montag, den 08.03.2021, 13:34 +0100 schrieb Denis Osterland-Heim:
> Original mboxes are attached to mail in response.
>
> Denis Osterland-Heim (5):
>   host-gengetopt: move to _noprompt section
>   host-libedit: new package
>   host-libcurl: enable http(s) support
>   libp11: version bump 0.4.10 -> 0.4.11
>   host-yubihsm-shell: new package
>
>  ...add-client-cert-support-for-pkcs11-module.patch | 88 
> ++
>  .../0002-add-bash-like-variable-extension.patch| 67 
>  .../0003-add-noproxy-option.patch  | 76 +++
>  patches/yubihsm-shell-2.1.0/series |  6 ++
>  rules/host-gengetopt.in|  4 +-
>  rules/host-libcurl.make|  4 +-
>  rules/host-libedit.in  |  5 ++
>  rules/host-libedit.make| 11 +++
>  rules/host-yubihsm-shell.in| 13 
>  rules/host-yubihsm-shell.make  | 37 +
>  rules/libp11.make  |  4 +-
>  11 files changed, 309 insertions(+), 6 deletions(-)
>
> base-commit: 1431ed52c ("libwacom: new package")
>
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


--- Begin Message ---
This allows to select this from platforms as well.

Signed-off-by: Denis Osterland-Heim 
---
 rules/host-gengetopt.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules/host-gengetopt.in b/rules/host-gengetopt.in
index f6855ab5f..d42ccf477 100644
--- a/rules/host-gengetopt.in
+++ b/rules/host-gengetopt.in
@@ -1,8 +1,8 @@
-## SECTION=hosttools
+## SECTION=hosttools_noprompt
 
 config HOST_GENGETOPT
tristate
-   prompt "gengetopt"
+   default ALLYES
help
  Gengetopt is a tool to write command line option
  parsing code for C programs.
-- 
2.30.1

--- End Message ---
--- Begin Message ---
Signed-off-by: Denis Osterland-Heim 
---
 rules/host-libedit.in   |  5 +
 rules/host-libedit.make | 11 +++
 2 files changed, 16 insertions(+)
 create mode 100644 rules/host-libedit.in
 create mode 100644 rules/host-libedit.make

diff --git a/rules/host-libedit.in b/rules/host-libedit.in
new file mode 100644
index 0..49e7c4548
--- /dev/null
+++ b/rules/host-libedit.in
@@ -0,0 +1,5 @@
+## SECTION=hosttools_noprompt
+
+config HOST_LIBEDIT
+   tristate
+   default ALLYES
diff --git a/rules/host-libedit.make b/rules/host-libedit.make
new file mode 100644
index 0..ae8bff95f
--- /dev/null
+++ b/rules/host-libedit.make
@@ -0,0 +1,11 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Denis Osterland-Heim 
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+HOST_PACKAGES-$(PTXCONF_HOST_LIBEDIT) += host-libedit
+
+# vim: syntax=make
-- 
2.30.1

--- End Message ---
--- Begin Message ---
This package provides the pkcs11 plugin for yubi HSMs,
which allows to create a signing provider for it.

Patches are sent upstream: https://github.com/Yubico/yubihsm-shell/pull/162

To use it together with a CA server:
Since ab4af48ba ("ptxd_make_world_init: try to prevent downloads outside the 
get stage")
`noproxy=*` in the yubihsm.conf is required to allow libcurl HTTP
communication in compile stage.

Signed-off-by: Denis Osterland-Heim 
---
 ...lient-cert-support-for-pkcs11-module.patch | 88 +++
 ...002-add-bash-like-variable-extension.patch | 67 ++
 .../0003-add-noproxy-option.patch | 76 
 patches/yubihsm-shell-2.1.0/series|  6 ++

[ptxdist] [PATCH 2/5] host-libedit: new package

2021-03-08 Thread Denis Osterland-Heim
Signed-off-by: Denis Osterland-Heim 
---
 rules/host-libedit.in   |  5 +
 rules/host-libedit.make | 11 +++
 2 files changed, 16 insertions(+)
 create mode 100644 rules/host-libedit.in
 create mode 100644 rules/host-libedit.make

diff --git a/rules/host-libedit.in b/rules/host-libedit.in
new file mode 100644
index 0..49e7c4548
--- /dev/null
+++ b/rules/host-libedit.in
@@ -0,0 +1,5 @@
+## SECTION=hosttools_noprompt
+
+config HOST_LIBEDIT
+tristate
+default ALLYES
diff --git a/rules/host-libedit.make b/rules/host-libedit.make
new file mode 100644
index 0..ae8bff95f
--- /dev/null
+++ b/rules/host-libedit.make
@@ -0,0 +1,11 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Denis Osterland-Heim 
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+HOST_PACKAGES-$(PTXCONF_HOST_LIBEDIT) += host-libedit
+
+# vim: syntax=make
--
2.30.1

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/



___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH 4/5] libp11: version bump 0.4.10 -> 0.4.11

2021-03-08 Thread Denis Osterland-Heim
Signed-off-by: Denis Osterland-Heim 
---
 rules/libp11.make | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules/libp11.make b/rules/libp11.make
index 8e2d1517f..2c551b914 100644
--- a/rules/libp11.make
+++ b/rules/libp11.make
@@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_LIBP11) += libp11
 #
 # Paths and names
 #
-LIBP11_VERSION:= 0.4.10
-LIBP11_MD5:= 3464874bb5ca47b8e4c1d540758dcfe9
+LIBP11_VERSION:= 0.4.11
+LIBP11_MD5:= 8b907abd572b0eb8e63413549f68dbe1
 LIBP11:= libp11-$(LIBP11_VERSION)
 LIBP11_SUFFIX:= tar.gz
 LIBP11_URL:= 
https://github.com/OpenSC/libp11/releases/download/$(LIBP11)/$(LIBP11).$(LIBP11_SUFFIX)
--
2.30.1

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/



___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH 3/5] host-libcurl: enable http(s) support

2021-03-08 Thread Denis Osterland-Heim
Signed-off-by: Denis Osterland-Heim 
---
 rules/host-libcurl.make | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules/host-libcurl.make b/rules/host-libcurl.make
index dc28de778..1a2a1fcf5 100644
--- a/rules/host-libcurl.make
+++ b/rules/host-libcurl.make
@@ -61,7 +61,7 @@ HOST_LIBCURL_CONF_OPT:= \
 --without-librtmp \
 \
 --disable-ares \
---disable-http \
+--enable-http \
 --disable-nghttp2 \
 --disable-cookies \
 --disable-ftp \
@@ -69,7 +69,7 @@ HOST_LIBCURL_CONF_OPT:= \
 --disable-file \
 --disable-crypto-auth \
 --disable-libssh2 \
---without-ssl
+--with-ssl

 $(STATEDIR)/host-libcurl.install:
 @$(call targetinfo)
--
2.30.1

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/



___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH 5/5] host-yubihsm-shell: new package

2021-03-08 Thread Denis Osterland-Heim
This package provides the pkcs11 plugin for yubi HSMs,
which allows to create a signing provider for it.

Patches are sent upstream: https://github.com/Yubico/yubihsm-shell/pull/162

To use it together with a CA server:
Since ab4af48ba ("ptxd_make_world_init: try to prevent downloads outside the 
get stage")
`noproxy=*` in the yubihsm.conf is required to allow libcurl HTTP
communication in compile stage.

Signed-off-by: Denis Osterland-Heim 
---
 ...lient-cert-support-for-pkcs11-module.patch | 88 +++
 ...002-add-bash-like-variable-extension.patch | 67 ++
 .../0003-add-noproxy-option.patch | 76 
 patches/yubihsm-shell-2.1.0/series|  6 ++
 rules/host-yubihsm-shell.in   | 13 +++
 rules/host-yubihsm-shell.make | 37 
 6 files changed, 287 insertions(+)
 create mode 100644 
patches/yubihsm-shell-2.1.0/0001-add-client-cert-support-for-pkcs11-module.patch
 create mode 100644 
patches/yubihsm-shell-2.1.0/0002-add-bash-like-variable-extension.patch
 create mode 100644 patches/yubihsm-shell-2.1.0/0003-add-noproxy-option.patch
 create mode 100644 patches/yubihsm-shell-2.1.0/series
 create mode 100644 rules/host-yubihsm-shell.in
 create mode 100644 rules/host-yubihsm-shell.make

diff --git 
a/patches/yubihsm-shell-2.1.0/0001-add-client-cert-support-for-pkcs11-module.patch
 
b/patches/yubihsm-shell-2.1.0/0001-add-client-cert-support-for-pkcs11-module.patch
new file mode 100644
index 0..dbce11c85
--- /dev/null
+++ 
b/patches/yubihsm-shell-2.1.0/0001-add-client-cert-support-for-pkcs11-module.patch
@@ -0,0 +1,88 @@
+From: Denis Osterland-Heim 
+Date: Tue, 26 Jan 2021 14:19:52 +0100
+Subject: [PATCH] add client cert support for pkcs11 module
+
+Allows to authenticate with client certificates at HSM server.
+
+Signed-off-by: Denis Osterland-Heim 
+---
+ lib/yubihsm.h   |  6 ++
+ lib/yubihsm_curl.c  |  8 
+ pkcs11/cmdline.ggo  |  2 ++
+ pkcs11/yubihsm_pkcs11.c | 14 ++
+ 4 files changed, 30 insertions(+)
+
+diff --git a/lib/yubihsm.h b/lib/yubihsm.h
+index ef80d42b1865..da08f68038dd 100644
+--- a/lib/yubihsm.h
 b/lib/yubihsm.h
+@@ -518,6 +518,12 @@ typedef enum {
+   /// Proxy server to use for connecting to the connector (const char *). Not
+   /// implemented on Windows
+   YH_CONNECTOR_PROXY_SERVER = 2,
++  /// File with client certificate to authenticate client with (const char *).
++  /// Not implemented on Windows
++  YH_CONNECTOR_HTTPS_CERT = 3,
++  /// File with client certificates key (const char *).
++  /// Not implemented on Windows
++  YH_CONNECTOR_HTTPS_KEY = 4,
+ } yh_connector_option;
+
+ #pragma pack(push, 1)
+diff --git a/lib/yubihsm_curl.c b/lib/yubihsm_curl.c
+index 6360f3693268..2f46802e0fe1 100644
+--- a/lib/yubihsm_curl.c
 b/lib/yubihsm_curl.c
+@@ -231,6 +231,14 @@ static yh_rc backend_option(yh_backend *connection, 
yh_connector_option opt,
+   option = CURLOPT_CAINFO;
+   optname = "CURLOPT_CAINFO";
+   break;
++case YH_CONNECTOR_HTTPS_CERT:
++  option = CURLOPT_SSLCERT;
++  optname = "CURLOPT_SSLCERT";
++  break;
++case YH_CONNECTOR_HTTPS_KEY:
++  option = CURLOPT_SSLKEY;
++  optname = "CURLOPT_SSLKEY";
++  break;
+ case YH_CONNECTOR_PROXY_SERVER:
+   option = CURLOPT_PROXY;
+   optname = "CURLOPT_PROXY";
+diff --git a/pkcs11/cmdline.ggo b/pkcs11/cmdline.ggo
+index 9a357b73062d..9e87e2aa2861 100644
+--- a/pkcs11/cmdline.ggo
 b/pkcs11/cmdline.ggo
+@@ -21,6 +21,8 @@ option "dinout" - "Enable pkcs11 function tracing" flag off
+ option "libdebug" - "Enable libyubihsm debugging" flag off
+ option "debug-file" - "Output file for debugging" string optional 
default="stderr"
+ option "cacert" - "Cacert to use for HTTPS validation" string optional
++option "cert" - "HTTPS client certificate to authenticate with" string 
optional
++option "key" - "HTTPS client certificate key" string optional
+ option "proxy" - "Proxy server to use for connector" string optional
+ option "timeout" - "Timeout to use for initial connection to connector" int 
optional default="5"
+ option "device-pubkey" - "List of device public keys allowed for asymmetric 
authentication" string optional multiple
+diff --git a/pkcs11/yubihsm_pkcs11.c b/pkcs11/yubihsm_pkcs11.c
+index f543c94ed373..25aec8e7c5fe 100644
+--- a/pkcs11/yubihsm_pkcs11.c
 b/pkcs11/yubihsm_pkcs11.c
+@@ -275,6 +275,20 @@ CK_DEFINE_FUNCTION(CK_RV, C_Initialize)(CK_VOID_PTR 
pInitArgs) {
+ goto c_i_failure;
+   }
+ }
++if (args_info.cert_given) {
++  if (yh_set_connector_option(connector_list[i], YH_CONNECTOR_HTTPS_CERT,
++

[ptxdist] [PATCH 1/5] host-gengetopt: move to _noprompt section

2021-03-08 Thread Denis Osterland-Heim
This allows to select this from platforms as well.

Signed-off-by: Denis Osterland-Heim 
---
 rules/host-gengetopt.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules/host-gengetopt.in b/rules/host-gengetopt.in
index f6855ab5f..d42ccf477 100644
--- a/rules/host-gengetopt.in
+++ b/rules/host-gengetopt.in
@@ -1,8 +1,8 @@
-## SECTION=hosttools
+## SECTION=hosttools_noprompt

 config HOST_GENGETOPT
 tristate
-prompt "gengetopt"
+default ALLYES
 help
   Gengetopt is a tool to write command line option
   parsing code for C programs.
--
2.30.1

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/



___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] yubi HSM pkcs11 plugin for signing provider

2021-03-08 Thread Denis Osterland-Heim
Original mboxes are attached to mail in response.

Denis Osterland-Heim (5):
  host-gengetopt: move to _noprompt section
  host-libedit: new package
  host-libcurl: enable http(s) support
  libp11: version bump 0.4.10 -> 0.4.11
  host-yubihsm-shell: new package

 ...add-client-cert-support-for-pkcs11-module.patch | 88 ++
 .../0002-add-bash-like-variable-extension.patch| 67 
 .../0003-add-noproxy-option.patch  | 76 +++
 patches/yubihsm-shell-2.1.0/series |  6 ++
 rules/host-gengetopt.in|  4 +-
 rules/host-libcurl.make|  4 +-
 rules/host-libedit.in  |  5 ++
 rules/host-libedit.make| 11 +++
 rules/host-yubihsm-shell.in| 13 
 rules/host-yubihsm-shell.make  | 37 +
 rules/libp11.make  |  4 +-
 11 files changed, 309 insertions(+), 6 deletions(-)

base-commit: 1431ed52c ("libwacom: new package")

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/



___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] Ptxdist lightweight packaging usecase.

2021-01-20 Thread Denis Osterland-Heim
Hi,

I am not 100% if I got your point.

If you want to speed-up the ptxdist build you may have a look at 
https://www.ptxdist.org/doc/daily_work_section.html#using-pre-built-archives

If you want to create an environment for application developers where they can 
compile the application without ptxdist,
you just need to provide the `platform-XXX/sysroot-target` and a bunch of 
variables depending on the build-system.

Regards, Denis

Am Mittwoch, den 20.01.2021, 18:39 +0100 schrieb Christian Melki:
> Hi.
>
> I'd like to package (docker) a complete ptxdist build environment for a
> target platform but as light as possible. Since most application
> developers do not care about platform stuff, but still need to build
> images from time to time.
>
> So now I have this question: Can I purge build and still produce results?
>
> If I build a platform and remove src, platform-X/build-target,
> platform-X/build-host the actual storage requirements for a docker
> becomes _far_ less. All state are kept so I'd want the user to be able
> to do clean && compile for his rules. Also I'd like to be able to do a
> complete go && images.
>
> The major caveat seems to be the sources directory. If I whipe the
> sources, ptxdist tries to rebuild stuff, even if there is no file (not
> changed, missing) and all states are completed. Get, prepare, compile,
> install etc.
>
> Is there a proper way ptxdist can accomodate this usecase? I don't find
> it unresonable. There is little point in keeping everything or every
> user producing every bit of the result.
> Storage requirements is only like 10% of the original. Far easier to
> keep complete states of releases as fast checkpoints for minor corrections.
>
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to 
> ptxdist-requ...@pengutronix.de
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [GIT PULL] host-mfgtools: version bump 1.3.191 -> 1.4.43

2021-01-08 Thread Denis Osterland-Heim
Hi Michael,

Yes, of course.
I will do so the next time.

Regards, Denis

Am Freitag, den 08.01.2021, 10:16 +0100 schrieb m.olbr...@pengutronix.de:
> On Fri, Dec 18, 2020 at 02:44:10PM +0000, Denis Osterland-Heim wrote:
> > Hi Michael,
> >
> > Can you pull the commit
> > c53b6b733 ("host-mfgtools: version bump 1.3.191 -> 1.4.43")
> > from https://github.com/OsterlaD/ptxdist.git branch pkg/host-mfgtools?
>
> Thanks, applied. Can you try using mail attachments for the next patch?
> That makes it easier to review and I should still be able to apply it.
>
> Michael
>
> > base-commit: 9691bb8bb ("migrate_platform: fix migration helper for 
> > TF_A_PLATFORM(S)")
> >
> > Am Freitag, den 11.12.2020, 08:25 +0100 schrieb Michael Olbrich:
> > > On Mon, Dec 07, 2020 at 04:46:40PM +, Denis Osterland-Heim wrote:
> > > > Signed-off-by: Denis Osterland-Heim 
> > > > ---
> > > >  rules/host-mfgtools.make | 4 ++--
> > > >  1 file changed, 2 insertions(+), 2 deletions(-)
> > > >
> > > > diff --git a/rules/host-mfgtools.make b/rules/host-mfgtools.make
> > > > index a99ad6055..c8c689c7a 100644
> > > > --- a/rules/host-mfgtools.make
> > > > +++ b/rules/host-mfgtools.make
> > > > @@ -11,8 +11,8 @@ HOST_PACKAGES-$(PTXCONF_HOST_MFGTOOLS) += 
> > > > host-mfgtools
> > > >  #
> > > >  # Paths and names
> > > >  #
> > > > -HOST_MFGTOOLS_VERSION:= 1.3.191
> > > > -HOST_MFGTOOLS_MD5:= f77be0d7a5aaafbae063eb61bd4207ea
> > > > +HOST_MFGTOOLS_VERSION:= 1.4.43
> > > > +HOST_MFGTOOLS_MD5:= a2bebba983cf9ecce1499c86d38afa78
> > >
> > > Your Email Client broke the whitespaces in this patch.
> > >
> > > Michael
> > >
> > > >  HOST_MFGTOOLS:= mfgtools-$(HOST_MFGTOOLS_VERSION)
> > > >  HOST_MFGTOOLS_SUFFIX:= tar.gz
> > > >  HOST_MFGTOOLS_URL:= 
> > > > https://github.com/NXPmicro/mfgtools/releases/download/uuu_$(HOST_MFGTOOLS_VERSION)/uuu_source-$(HOST_MFGTOOLS_VERSION).$(HOST_MFGTOOLS_SUFFIX)
> > > > --
> > > > 2.29.2
> > > >
> > > > Diehl Connectivity Solutions GmbH
> > > > Geschäftsführung: Horst Leonberger
> > > > Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
> > > > Nürnberg: HRB 32315
> > > >
> > > > 
> > > >
> > > > Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese 
> > > > E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte 
> > > > Informationen.
> > > > Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise 
> > > > erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
> > > > Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, 
> > > > Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt.
> > > >
> > > > - Informationen zum Datenschutz, insbesondere zu Ihren Rechten, 
> > > > erhalten Sie unter:
> > > >
> > > > https://www.diehl.com/group/de/transparenz-und-informationspflichten/
> > > >
> > > > The contents of the above mentioned e-mail is not legally binding. This 
> > > > e-mail contains confidential and/or legally protected information. 
> > > > Please inform us if you have received this e-mail by
> > > > mistake and delete it in such a case. Each unauthorized reproduction, 
> > > > disclosure, alteration, distribution and/or publication of this e-mail 
> > > > is strictly prohibited.
> > > >
> > > > - For general information on data protection and your respective rights 
> > > > please visit:
> > > >
> > > > https://www.diehl.com/group/en/transparency-and-information-obligations/
> > > >
> > > >
> > > >
> > > > ___
> > > > ptxdist mailing list
> > > > ptxdist@pengutronix.de
> > > > To unsubscribe, send a mail with subject "unsubscribe" to 
> > > > ptxdist-requ...@pengutronix.de
> > > >
> >
> > Diehl Connectivity Solutions GmbH
> > Geschäftsführung: Horst Leonberger
> > Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
> > Nürnberg: HRB 32315
> >
> > 
> >
> > Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Di

Re: [ptxdist] [GIT PULL] fixup! ca-certificates: version bump 2016.08.08 -> 2019.09.16

2021-01-06 Thread Denis Osterland-Heim
Hi Michael,

That's even better.

Reviewed-by: Denis Osterland-Heim 

Regards, Denis

Am Donnerstag, den 07.01.2021, 08:07 +0100 schrieb Michael Olbrich:
> Hi,
>
> On Fri, Dec 18, 2020 at 02:25:45PM +0000, Denis Osterland-Heim wrote:
> > Sorry. This is of course the other one.
> > 0e23af4a1 ("ca-certificates: version bump 2016.08.08 -> 2019.09.16")
> > Is the right one, from https://github.com/OsterlaD/ptxdist.git on branch 
> > pkg/ca-certificates.
>
> I looked at this a bit more and I noticed, that the file is just imported
> with NSS anyways, so I changed the URL to the NFS repository. I like the
> idea of using tags. They can be a useful version as well.
>
> I've pushed a commit that picks the latest NSS tag instead.
>
> Michael
>
> > base-commit: 9691bb8bb ("migrate_platform: fix migration helper for 
> > TF_A_PLATFORM(S)")
> >
> > Am Freitag, den 18.12.2020, 15:21 +0100 schrieb Denis Osterland-Heim:
> > > Hi Michael,
> > >
> > > Can you pull the commit
> > > c53b6b733 ("host-mfgtools: version bump 1.3.191 -> 1.4.43")
> > > from https://github.com/OsterlaD/ptxdist.git branch pkg/host-mfgtools?
> > >
> > > Regards, Denis
> > >
> > > base-commit: 9691bb8bb ("migrate_platform: fix migration helper for 
> > > TF_A_PLATFORM(S)")
> > >
> > > Am Mittwoch, den 07.10.2020, 09:20 +0200 schrieb Michael Olbrich:
> > > > On Wed, Sep 30, 2020 at 11:39:46AM +, Denis Osterland-Heim wrote:
> > > > > Signed-off-by: Denis Osterland-Heim 
> > > > > ---
> > > > >
> > > > > using the tag looks nicer ;-)
> > > > >
> > > > >  rules/ca-certificates.make | 6 +++---
> > > > >  1 file changed, 3 insertions(+), 3 deletions(-)
> > > > >
> > > > > diff --git a/rules/ca-certificates.make b/rules/ca-certificates.make
> > > > > index bec34fc..4b0f653 100644
> > > > > --- a/rules/ca-certificates.make
> > > > > +++ b/rules/ca-certificates.make
> > > > > @@ -14,10 +14,10 @@ PACKAGES-$(PTXCONF_CA_CERTIFICATES) += 
> > > > > ca-certificates
> > > > >  #
> > > > >  # Paths and names
> > > > >  #
> > > > > -CA_CERTIFICATES_VERSION:= 2016.08.08
> > > > > +CA_CERTIFICATES_VERSION:= 2020.09.16
> > > > >  # The commit hash of the default branch. Update this in sync with 
> > > > > the date above.
> > > > > -CA_CERTIFICATES_HASH:= 79f079284141
> > > > > -CA_CERTIFICATES_MD5:= 4be3172ed2528ade3574cfbe35eec421
> > > > > +CA_CERTIFICATES_HASH:= FIREFOX_81_0_RELEASE
> > > > > +CA_CERTIFICATES_MD5:= a1d60533280caaf36ac6881012fe8978
> > > > >  CA_CERTIFICATES:= ca-certificates-$(CA_CERTIFICATES_VERSION)
> > > > >  CA_CERTIFICATES_SUFFIX:= txt
> > > > >  CA_CERTIFICATES_URL:= 
> > > > > https://hg.mozilla.org/releases/mozilla-release/raw-file/$(CA_CERTIFICATES_HASH)/security/nss/lib/ckfw/builtins/certdata.$(CA_CERTIFICATES_SUFFIX)
> > > >
> > > > Your email client broke the patch.
> > > >
> > > > Michael
> > > >
> > > > > --
> > > > > 2.28.0
> > > > >
> > > > > Diehl Connectivity Solutions GmbH
> > > > > Geschäftsführung: Horst Leonberger
> > > > > Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
> > > > > Nürnberg: HRB 32315
> > > > >
> > > > > 
> > > > >
> > > > > Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese 
> > > > > E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte 
> > > > > Informationen.
> > > > > Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise 
> > > > > erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
> > > > > Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, 
> > > > > Verteilung und/oder Publikation dieser E-Mail ist strengstens 
> > > > > untersagt.
> > > > >
> > > > > - Informationen zum Datenschutz, insbesondere zu Ihren Rechten, 
> > > > > erhalten Sie unter:
> > > > >
> > > > > https://www.diehl.com/group/de/transparenz-und-informationspflichten/
> > > > >
> > > > > The contents of the above mentione

[ptxdist] [GIT PULL] host-mfgtools: version bump 1.3.191 -> 1.4.43

2020-12-18 Thread Denis Osterland-Heim
Hi Michael,

Can you pull the commit
c53b6b733 ("host-mfgtools: version bump 1.3.191 -> 1.4.43")
from https://github.com/OsterlaD/ptxdist.git branch pkg/host-mfgtools?

Regards, Denis

base-commit: 9691bb8bb ("migrate_platform: fix migration helper for 
TF_A_PLATFORM(S)")

Am Freitag, den 11.12.2020, 08:25 +0100 schrieb Michael Olbrich:
> On Mon, Dec 07, 2020 at 04:46:40PM +, Denis Osterland-Heim wrote:
> > Signed-off-by: Denis Osterland-Heim 
> > ---
> >  rules/host-mfgtools.make | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/rules/host-mfgtools.make b/rules/host-mfgtools.make
> > index a99ad6055..c8c689c7a 100644
> > --- a/rules/host-mfgtools.make
> > +++ b/rules/host-mfgtools.make
> > @@ -11,8 +11,8 @@ HOST_PACKAGES-$(PTXCONF_HOST_MFGTOOLS) += host-mfgtools
> >  #
> >  # Paths and names
> >  #
> > -HOST_MFGTOOLS_VERSION:= 1.3.191
> > -HOST_MFGTOOLS_MD5:= f77be0d7a5aaafbae063eb61bd4207ea
> > +HOST_MFGTOOLS_VERSION:= 1.4.43
> > +HOST_MFGTOOLS_MD5:= a2bebba983cf9ecce1499c86d38afa78
>
> Your Email Client broke the whitespaces in this patch.
>
> Michael
>
> >  HOST_MFGTOOLS:= mfgtools-$(HOST_MFGTOOLS_VERSION)
> >  HOST_MFGTOOLS_SUFFIX:= tar.gz
> >  HOST_MFGTOOLS_URL:= 
> > https://github.com/NXPmicro/mfgtools/releases/download/uuu_$(HOST_MFGTOOLS_VERSION)/uuu_source-$(HOST_MFGTOOLS_VERSION).$(HOST_MFGTOOLS_SUFFIX)
> > --
> > 2.29.2
> >
> > Diehl Connectivity Solutions GmbH
> > Geschäftsführung: Horst Leonberger
> > Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
> > Nürnberg: HRB 32315
> >
> > 
> >
> > Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese 
> > E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
> > Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise 
> > erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
> > Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
> > und/oder Publikation dieser E-Mail ist strengstens untersagt.
> >
> > - Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten 
> > Sie unter:
> >
> > https://www.diehl.com/group/de/transparenz-und-informationspflichten/
> >
> > The contents of the above mentioned e-mail is not legally binding. This 
> > e-mail contains confidential and/or legally protected information. Please 
> > inform us if you have received this e-mail by
> > mistake and delete it in such a case. Each unauthorized reproduction, 
> > disclosure, alteration, distribution and/or publication of this e-mail is 
> > strictly prohibited.
> >
> > - For general information on data protection and your respective rights 
> > please visit:
> >
> > https://www.diehl.com/group/en/transparency-and-information-obligations/
> >
> >
> >
> > ___
> > ptxdist mailing list
> > ptxdist@pengutronix.de
> > To unsubscribe, send a mail with subject "unsubscribe" to 
> > ptxdist-requ...@pengutronix.de
> >
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [GIT PULL] fixup! ca-certificates: version bump 2016.08.08 -> 2019.09.16

2020-12-18 Thread Denis Osterland-Heim
Hi Michael,

Sorry. This is of course the other one.
0e23af4a1 ("ca-certificates: version bump 2016.08.08 -> 2019.09.16")
Is the right one, from https://github.com/OsterlaD/ptxdist.git on branch 
pkg/ca-certificates.

Regards, Denis

base-commit: 9691bb8bb ("migrate_platform: fix migration helper for 
TF_A_PLATFORM(S)")

Am Freitag, den 18.12.2020, 15:21 +0100 schrieb Denis Osterland-Heim:
> Hi Michael,
>
> Can you pull the commit
> c53b6b733 ("host-mfgtools: version bump 1.3.191 -> 1.4.43")
> from https://github.com/OsterlaD/ptxdist.git branch pkg/host-mfgtools?
>
> Regards, Denis
>
> base-commit: 9691bb8bb ("migrate_platform: fix migration helper for 
> TF_A_PLATFORM(S)")
>
> Am Mittwoch, den 07.10.2020, 09:20 +0200 schrieb Michael Olbrich:
> > On Wed, Sep 30, 2020 at 11:39:46AM +, Denis Osterland-Heim wrote:
> > > Signed-off-by: Denis Osterland-Heim 
> > > ---
> > >
> > > using the tag looks nicer ;-)
> > >
> > >  rules/ca-certificates.make | 6 +++---
> > >  1 file changed, 3 insertions(+), 3 deletions(-)
> > >
> > > diff --git a/rules/ca-certificates.make b/rules/ca-certificates.make
> > > index bec34fc..4b0f653 100644
> > > --- a/rules/ca-certificates.make
> > > +++ b/rules/ca-certificates.make
> > > @@ -14,10 +14,10 @@ PACKAGES-$(PTXCONF_CA_CERTIFICATES) += ca-certificates
> > >  #
> > >  # Paths and names
> > >  #
> > > -CA_CERTIFICATES_VERSION:= 2016.08.08
> > > +CA_CERTIFICATES_VERSION:= 2020.09.16
> > >  # The commit hash of the default branch. Update this in sync with the 
> > > date above.
> > > -CA_CERTIFICATES_HASH:= 79f079284141
> > > -CA_CERTIFICATES_MD5:= 4be3172ed2528ade3574cfbe35eec421
> > > +CA_CERTIFICATES_HASH:= FIREFOX_81_0_RELEASE
> > > +CA_CERTIFICATES_MD5:= a1d60533280caaf36ac6881012fe8978
> > >  CA_CERTIFICATES:= ca-certificates-$(CA_CERTIFICATES_VERSION)
> > >  CA_CERTIFICATES_SUFFIX:= txt
> > >  CA_CERTIFICATES_URL:= 
> > > https://hg.mozilla.org/releases/mozilla-release/raw-file/$(CA_CERTIFICATES_HASH)/security/nss/lib/ckfw/builtins/certdata.$(CA_CERTIFICATES_SUFFIX)
> >
> > Your email client broke the patch.
> >
> > Michael
> >
> > > --
> > > 2.28.0
> > >
> > > Diehl Connectivity Solutions GmbH
> > > Geschäftsführung: Horst Leonberger
> > > Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
> > > Nürnberg: HRB 32315
> > >
> > > 
> > >
> > > Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese 
> > > E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
> > > Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise 
> > > erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
> > > Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
> > > und/oder Publikation dieser E-Mail ist strengstens untersagt.
> > >
> > > - Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten 
> > > Sie unter:
> > >
> > > https://www.diehl.com/group/de/transparenz-und-informationspflichten/
> > >
> > > The contents of the above mentioned e-mail is not legally binding. This 
> > > e-mail contains confidential and/or legally protected information. Please 
> > > inform us if you have received this e-mail by
> > > mistake and delete it in such a case. Each unauthorized reproduction, 
> > > disclosure, alteration, distribution and/or publication of this e-mail is 
> > > strictly prohibited.
> > >
> > > - For general information on data protection and your respective rights 
> > > please visit:
> > >
> > > https://www.diehl.com/group/en/transparency-and-information-obligations/
> > >
> > >
> > >
> > > ___
> > > ptxdist mailing list
> > > ptxdist@pengutronix.de
> > > To unsubscribe, send a mail with subject "unsubscribe" to 
> > > ptxdist-requ...@pengutronix.de
> > >
> >
> >
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherwei

[ptxdist] [GIT PULL] fixup! ca-certificates: version bump 2016.08.08 -> 2019.09.16

2020-12-18 Thread Denis Osterland-Heim
Hi Michael,

Can you pull the commit
c53b6b733 ("host-mfgtools: version bump 1.3.191 -> 1.4.43")
from https://github.com/OsterlaD/ptxdist.git branch pkg/host-mfgtools?

Regards, Denis

base-commit: 9691bb8bb ("migrate_platform: fix migration helper for 
TF_A_PLATFORM(S)")

Am Mittwoch, den 07.10.2020, 09:20 +0200 schrieb Michael Olbrich:
> On Wed, Sep 30, 2020 at 11:39:46AM +, Denis Osterland-Heim wrote:
> > Signed-off-by: Denis Osterland-Heim 
> > ---
> >
> > using the tag looks nicer ;-)
> >
> >  rules/ca-certificates.make | 6 +++---
> >  1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/rules/ca-certificates.make b/rules/ca-certificates.make
> > index bec34fc..4b0f653 100644
> > --- a/rules/ca-certificates.make
> > +++ b/rules/ca-certificates.make
> > @@ -14,10 +14,10 @@ PACKAGES-$(PTXCONF_CA_CERTIFICATES) += ca-certificates
> >  #
> >  # Paths and names
> >  #
> > -CA_CERTIFICATES_VERSION:= 2016.08.08
> > +CA_CERTIFICATES_VERSION:= 2020.09.16
> >  # The commit hash of the default branch. Update this in sync with the date 
> > above.
> > -CA_CERTIFICATES_HASH:= 79f079284141
> > -CA_CERTIFICATES_MD5:= 4be3172ed2528ade3574cfbe35eec421
> > +CA_CERTIFICATES_HASH:= FIREFOX_81_0_RELEASE
> > +CA_CERTIFICATES_MD5:= a1d60533280caaf36ac6881012fe8978
> >  CA_CERTIFICATES:= ca-certificates-$(CA_CERTIFICATES_VERSION)
> >  CA_CERTIFICATES_SUFFIX:= txt
> >  CA_CERTIFICATES_URL:= 
> > https://hg.mozilla.org/releases/mozilla-release/raw-file/$(CA_CERTIFICATES_HASH)/security/nss/lib/ckfw/builtins/certdata.$(CA_CERTIFICATES_SUFFIX)
>
> Your email client broke the patch.
>
> Michael
>
> > --
> > 2.28.0
> >
> > Diehl Connectivity Solutions GmbH
> > Geschäftsführung: Horst Leonberger
> > Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
> > Nürnberg: HRB 32315
> >
> > 
> >
> > Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese 
> > E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
> > Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise 
> > erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
> > Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
> > und/oder Publikation dieser E-Mail ist strengstens untersagt.
> >
> > - Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten 
> > Sie unter:
> >
> > https://www.diehl.com/group/de/transparenz-und-informationspflichten/
> >
> > The contents of the above mentioned e-mail is not legally binding. This 
> > e-mail contains confidential and/or legally protected information. Please 
> > inform us if you have received this e-mail by
> > mistake and delete it in such a case. Each unauthorized reproduction, 
> > disclosure, alteration, distribution and/or publication of this e-mail is 
> > strictly prohibited.
> >
> > - For general information on data protection and your respective rights 
> > please visit:
> >
> > https://www.diehl.com/group/en/transparency-and-information-obligations/
> >
> >
> >
> > ___
> > ptxdist mailing list
> > ptxdist@pengutronix.de
> > To unsubscribe, send a mail with subject "unsubscribe" to 
> > ptxdist-requ...@pengutronix.de
> >
>
>
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH] migrate_platform: fix migration helper for TF_A_PLATFORM(S)

2020-12-14 Thread Denis Osterland-Heim
Hi,

Why not simply add `=` to the expression?

-s/^\(\(# \)\?PTXCONF_TF_A_PLATFORM\)\(.*$\)/\1S\3/
+s/^\(\(# \)\?PTXCONF_TF_A_PLATFORM\)\(\(=\|$\).*$\)/\1S\3/

(untested)

Regards, Denis

Am Montag, den 14.12.2020, 08:06 +0100 schrieb Robert Schwebel:
> The migration helper introduced in c9d48debf405ed49deffebef892990376052df09
> changes PTXCONF_TF_A_PLATFORM into PTXCONF_TF_A_PLATFORMS. However, if
> the platformconfig does already contain PLATFORMS, the regexp matches
> anyway and converts it into PLATFORMSS.
>
> Fixes: c9d48debf405ed49deffebef892990376052df09
>
> Signed-off-by: Robert Schwebel 
> ---
>  scripts/migrate/migrate_platform | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/scripts/migrate/migrate_platform 
> b/scripts/migrate/migrate_platform
> index b31592b88..1c701846f 100755
> --- a/scripts/migrate/migrate_platform
> +++ b/scripts/migrate/migrate_platform
> @@ -40,4 +40,5 @@ s/^\(\(# 
> \)\?PTXCONF\)_IMAGE_IPKG_EXTRA_ARGS\(.*$\)/\1_IMAGE_XPKG_EXTRA_ARGS\3/
>  # symbol : PTXCONF_TF_A_PLATFORM -> PTXCONF_TF_A_PLATFORMS
>  # reason : tf-a can be built for multiple platforms now
>  #
> +s/^\(\(# \)\?PTXCONF\)_TF_A_PLATFORMS\(.*$\)/\1_TF_A_PLATFORM\3/
>  s/^\(\(# \)\?PTXCONF_TF_A_PLATFORM\)\(.*$\)/\1S\3/
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH] host-mfgtools: version bump 1.3.191 -> 1.4.43

2020-12-07 Thread Denis Osterland-Heim
Signed-off-by: Denis Osterland-Heim 
---
 rules/host-mfgtools.make | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules/host-mfgtools.make b/rules/host-mfgtools.make
index a99ad6055..c8c689c7a 100644
--- a/rules/host-mfgtools.make
+++ b/rules/host-mfgtools.make
@@ -11,8 +11,8 @@ HOST_PACKAGES-$(PTXCONF_HOST_MFGTOOLS) += host-mfgtools
 #
 # Paths and names
 #
-HOST_MFGTOOLS_VERSION:= 1.3.191
-HOST_MFGTOOLS_MD5:= f77be0d7a5aaafbae063eb61bd4207ea
+HOST_MFGTOOLS_VERSION:= 1.4.43
+HOST_MFGTOOLS_MD5:= a2bebba983cf9ecce1499c86d38afa78
 HOST_MFGTOOLS:= mfgtools-$(HOST_MFGTOOLS_VERSION)
 HOST_MFGTOOLS_SUFFIX:= tar.gz
 HOST_MFGTOOLS_URL:= 
https://github.com/NXPmicro/mfgtools/releases/download/uuu_$(HOST_MFGTOOLS_VERSION)/uuu_source-$(HOST_MFGTOOLS_VERSION).$(HOST_MFGTOOLS_SUFFIX)
--
2.29.2

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/



___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] ?= [PATCH] DRAFT:=?utf-8?q? openssh: make host key generation optional

2020-11-16 Thread Denis Osterland-Heim
Hi,

If I have a ro root, I disable rconce completely and implement something 
comparable for a data partition
and mount the device unique keys to /etc/ssh/.
rconce mount your ro root rw and stores something, at least the "done" marker 
file, to your root.
I assume you are fine with this changes and just want to keep the key over 
updates and therefor you should really consider a data/config partition.
You may also generate the keys in production and mount the config partition 
read-only to /etc/ssh/.
But do NOT deploy the same key to different devices.

Regards, Denis

Am Montag, den 16.11.2020, 11:32 +0100 schrieb Michael Olbrich:
> On Mon, Nov 16, 2020 at 10:45:07AM +0100, Artur Wiebe wrote:
> > On Monday, November 16, 2020 10:36 CET, Michael Olbrich 
> >  wrote:
> > > On Sun, Nov 15, 2020 at 06:08:56PM +0100, Roland Hieber wrote:
> > > > On Sun, Nov 15, 2020 at 11:06:12AM +0100, Ladislav Michl wrote:
> > > > > On Sat, Nov 14, 2020 at 09:34:47PM +0100, Roland Hieber wrote:
> > > > > > On Fri, Nov 13, 2020 at 06:46:48PM +0100, Ladislav Michl wrote:
> > > > > > > On Fri, Nov 13, 2020 at 03:19:55PM +0100, Artur Wiebe wrote:
> > > > > > > > How can openssh.postinst be disabled from within the rule files?
> > > > > > >
> > > > > > > The very same could be achieved with symlink in your BSP:
> > > > > > > projectroot/etc/rc.once.d/openssh -> /dev/null
> > > > > >
> > > > > > I don't understand why you want to disable this. The SSH server 
> > > > > > will not
> > > > > > start without host keys. Or do you want to install a static version 
> > > > > > of
> > > > > > the host keys generated at build time?
> > > > >
> > > > > Yes, keys are static, generated at build time. Root filesystem is
> > > > > read-only.
> > > > >
> > > > > > If so, there should be an option for this. But for now, in my 
> > > > > > opinion,
> > > > > > disabling OPENSSH_SSHD_GENKEYS will just lead to a broken SSH 
> > > > > > server.
> > > > >
> > > > > As this is easy to solve at BSP level I never thought it could
> > > > > be a thing :)
> > > >
> > > > OK, but at least I would mention it in the kconfig help text. The
> > >
> > > Ack.
> > >
> > > > openssh recipe could also just pick up /etc/ssh/ssh_host_*_key via
> > > > install_alternative if this option is disabled.
> > >
> > > No. Shared ssh server keys are a bad idea. That's not something I want to
> > > merge upstream.
> >
> > This was also my concern...
> >
> > >
> > > But there are other use-cases to not use rc-once, e.g. if the server keys
> > > are generated during provisioning. And not selecting rc-once in this case
> > > makes sense, so this is acceptable im general.
> >
> > I still need a way to disable openssh.postinst if OPENSSH_SSHD_GENKEYS is 
> > not set.
>
> Hmmm, right. In the BSP, a /dev/null symlinks works for this as well, but
> we currently don't have a way to not install the postinst script. We could
> do something like this (untested):
>
> $(call install_script_replace, openssh, postinst, @RC_ONCE@, \
> $(call ptx/ifdef, PTXCONF_OPENSSH_SSHD_GENKEYS,,#))
>
> And in rules/openssh.postinst:
>
> #!/bin/sh
> @RC_ONCE@$DESTDIR/usr/sbin/enable-rc-once openssh
>
> This way the script may be installed, but it will do nothing. If
> PTXCONF_OPENSSH_SSHD_GENKEYS is disabled.
>
> Michael
>
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH] ptxd_make_fit_image: Add mandatory properties

2020-11-10 Thread Denis Osterland-Heim
Hi,

AFAIK bootloaders should have reasonable defaults for this values.
So they should be optional.

Regrads, Denis

Am Dienstag, den 10.11.2020, 10:11 +0100 schrieb avazquez@gmail.com:
> From: AVazquez 
>
> Add mandatory properties for types kernel and ramdisk.
>
> Signed-off-by: AVazquez 
> ---
>  platforms/kernel-fit.in| 10 ++
>  scripts/lib/ptxd_make_fit_image.sh |  4 
>  2 files changed, 14 insertions(+)
>
> diff --git a/platforms/kernel-fit.in b/platforms/kernel-fit.in
> index 8cbc1a8..d917a97 100644
> --- a/platforms/kernel-fit.in
> +++ b/platforms/kernel-fit.in
> @@ -17,6 +17,16 @@ menuconfig KERNEL_FIT
>
>  if KERNEL_FIT
>
> +config KERNEL_FIT_LOAD
> +string
> +default "0xC0008000"
> +prompt "Kernel load address"
> +
> +config KERNEL_FIT_ENTRY
> +string
> +default "0xC0008000"
> +prompt "Kernel entry address"
> +
>  config KERNEL_FIT_SIGNED
>  bool
>  prompt "sign FIT image"
> diff --git a/scripts/lib/ptxd_make_fit_image.sh 
> b/scripts/lib/ptxd_make_fit_image.sh
> index 9754d1e..4314b0e 100644
> --- a/scripts/lib/ptxd_make_fit_image.sh
> +++ b/scripts/lib/ptxd_make_fit_image.sh
> @@ -21,7 +21,10 @@ ptxd_make_image_fit_its() {
>  data = /incbin/("${image_kernel}");
>  type = "kernel";
>  arch = "$(ptxd_get_ptxconf PTXCONF_ARCH_STRING)";
> +os = "linux";
>  compression = "none";
> +load = <$(ptxd_get_ptxconf PTXCONF_KERNEL_FIT_LOAD)>;
> +entry = <$(ptxd_get_ptxconf PTXCONF_KERNEL_FIT_ENTRY)>;
>  hash-1 {
>  algo = "sha256";
>  };
> @@ -33,6 +36,7 @@ EOF
>  description = "initramfs";
>  data = /incbin/("${image_initramfs}");
>  type = "ramdisk";
> +os = "linux";
>  compression = "none";
>  hash-1 {
>  algo = "sha256";
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH] ca-certificates: version bump 2016.08.08 -> 2019.09.16

2020-10-28 Thread Denis Osterland-Heim
Hi,

Thanks for the offer.
Maybe I find a working way again, in the future.

Regards, Denis

Am Dienstag, den 27.10.2020, 22:11 +0100 schrieb Roland Hieber:
> On Wed, Oct 21, 2020 at 06:48:41AM +0000, Denis Osterland-Heim wrote:
> > Use tag name instead of hash, because it is easier human readable.
> >
> > Signed-off-by: Denis Osterland-Heim 
> > ---
> > Hi,
> >
> > I wanna test if it is better when I use base64.
>
> Unfortunately it doesn't :( Try sending it as an attachment.
>
>  - Roland
>
> >
> > Regards, Denis
> >
> >  rules/ca-certificates.make | 6 +++---
> >  1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/rules/ca-certificates.make b/rules/ca-certificates.make
> > index bec34fcab..4b0f653cd 100644
> > --- a/rules/ca-certificates.make
> > +++ b/rules/ca-certificates.make
> > @@ -14,10 +14,10 @@ PACKAGES-$(PTXCONF_CA_CERTIFICATES) += ca-certificates
> >  #
> >  # Paths and names
> >  #
> > -CA_CERTIFICATES_VERSION:= 2016.08.08
> > +CA_CERTIFICATES_VERSION:= 2020.09.16
> >  # The commit hash of the default branch. Update this in sync with the date 
> > above.
> > -CA_CERTIFICATES_HASH:= 79f079284141
> > -CA_CERTIFICATES_MD5:= 4be3172ed2528ade3574cfbe35eec421
> > +CA_CERTIFICATES_HASH:= FIREFOX_81_0_RELEASE
> > +CA_CERTIFICATES_MD5:= a1d60533280caaf36ac6881012fe8978
> >  CA_CERTIFICATES:= ca-certificates-$(CA_CERTIFICATES_VERSION)
> >  CA_CERTIFICATES_SUFFIX:= txt
> >  CA_CERTIFICATES_URL:= 
> > https://hg.mozilla.org/releases/mozilla-release/raw-file/$(CA_CERTIFICATES_HASH)/security/nss/lib/ckfw/builtins/certdata.$(CA_CERTIFICATES_SUFFIX)
> > --
> > 2.28.0
> >
> > Diehl Connectivity Solutions GmbH
> > Geschäftsführung: Horst Leonberger
> > Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
> > Nürnberg: HRB 32315
> >
> > 
> >
> > Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese 
> > E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
> > Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise 
> > erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
> > Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
> > und/oder Publikation dieser E-Mail ist strengstens untersagt.
> >
> > - Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten 
> > Sie unter:
> >
> > https://www.diehl.com/group/de/transparenz-und-informationspflichten/
> >
> > The contents of the above mentioned e-mail is not legally binding. This 
> > e-mail contains confidential and/or legally protected information. Please 
> > inform us if you have received this e-mail by
> > mistake and delete it in such a case. Each unauthorized reproduction, 
> > disclosure, alteration, distribution and/or publication of this e-mail is 
> > strictly prohibited.
> >
> > - For general information on data protection and your respective rights 
> > please visit:
> >
> > https://www.diehl.com/group/en/transparency-and-information-obligations/
> >
> >
> >
> > ___
> > ptxdist mailing list
> > ptxdist@pengutronix.de
> > To unsubscribe, send a mail with subject "unsubscribe" to 
> > ptxdist-requ...@pengutronix.de
> >
>
>
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/




[PATCH]_ca-certificates_version_bump_2016.08.08_-__2019.09.16.mbox
Description: [PATCH]_ca-certificates_version_bump_2016.08.08_-__2019.09.16.mbox
___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH] ca-certificates: version bump 2016.08.08 -> 2019.09.16

2020-10-21 Thread Denis Osterland-Heim
Use tag name instead of hash, because it is easier human readable.

Signed-off-by: Denis Osterland-Heim 
---
Hi,

I wanna test if it is better when I use base64.

Regards, Denis

 rules/ca-certificates.make | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/rules/ca-certificates.make b/rules/ca-certificates.make
index bec34fcab..4b0f653cd 100644
--- a/rules/ca-certificates.make
+++ b/rules/ca-certificates.make
@@ -14,10 +14,10 @@ PACKAGES-$(PTXCONF_CA_CERTIFICATES) += ca-certificates
 #
 # Paths and names
 #
-CA_CERTIFICATES_VERSION:= 2016.08.08
+CA_CERTIFICATES_VERSION:= 2020.09.16
 # The commit hash of the default branch. Update this in sync with the date 
above.
-CA_CERTIFICATES_HASH:= 79f079284141
-CA_CERTIFICATES_MD5:= 4be3172ed2528ade3574cfbe35eec421
+CA_CERTIFICATES_HASH:= FIREFOX_81_0_RELEASE
+CA_CERTIFICATES_MD5:= a1d60533280caaf36ac6881012fe8978
 CA_CERTIFICATES:= ca-certificates-$(CA_CERTIFICATES_VERSION)
 CA_CERTIFICATES_SUFFIX:= txt
 CA_CERTIFICATES_URL:= 
https://hg.mozilla.org/releases/mozilla-release/raw-file/$(CA_CERTIFICATES_HASH)/security/nss/lib/ckfw/builtins/certdata.$(CA_CERTIFICATES_SUFFIX)
--
2.28.0

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/



___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH v2] rootfs: Fix creation of the /media directory

2020-10-05 Thread Denis Osterland-Heim
Hi,

Am Montag, den 05.10.2020, 14:02 +0200 schrieb Gavin Schenk:
> Hi Denis,
>
> > Am Montag, den 05.10.2020, 13:10 +0200 schrieb Gavin Schenk:
> > > Ensure that with PTXCONF_ROOTFS_MEDIA set directory '/media' is created
> > > even if none of PTXCONF_ROOTFS_MEDIA[1-6] is set.
> > >
> > > On our read-only system we mount a tmpfs on directory '/media' in order
> > > to dynamically create additional mount points there.
> > >
> > > Fixes: 63e2d8696 (rootfs: don't create empty /media subdirs)
> >
> > Sounds like your "fix" is a change of intended behavior.
>
> what is the intended behavior of PTXCONF_ROOTFS_MEDIA besides creating a
> folder /media which is not always the case without this patch?
You are right. I got it wrong.
If ROOTFS_MEDIA is set, I would expect a /media folder as well.

Regards, Denis

>
> > I suggest to create this folder in the package,
> > in which you install your mount logic (the dynamic creation).
>
> Yes that would be a possible alternative if this patch is rejected.
>
> > This keeps the status quo for the rest of ptxdist installations,
> > where /media is not needed.
> >
>
> If /media is not needed you can just unset PTXCONF_ROOTFS_MEDIA.
> With this change the semantic equals to e.g. PTXCONF_ROOTFS_HOME, where the
> intended behaviour is creating directory /home, in my opinion.
>
> Regards
> Gavin
> Eckelmann AG
> Vorstand: Dipl.-Ing. Peter Frankenbach (Sprecher) Dipl.-Wi.-Ing. Philipp 
> Eckelmann
> Dr.-Ing. Marco Münchhof Dr.-Ing. Frank Uhlemann
> Vorsitzender des Aufsichtsrats: Hubertus G. Krossa Stv. Vorsitzender des 
> Aufsichtsrats: Dr.-Ing. Gerd Eckelmann
> Sitz der Gesellschaft: Berliner Str. 161, 65205 Wiesbaden, Amtsgericht 
> Wiesbaden HRB 12636
> http://www.eckelmann.de
>
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to 
> ptxdist-requ...@pengutronix.de
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH v2] rootfs: Fix creation of the /media directory

2020-10-05 Thread Denis Osterland-Heim
Hi,

Am Montag, den 05.10.2020, 13:10 +0200 schrieb Gavin Schenk:
> Ensure that with PTXCONF_ROOTFS_MEDIA set directory '/media' is created
> even if none of PTXCONF_ROOTFS_MEDIA[1-6] is set.
>
> On our read-only system we mount a tmpfs on directory '/media' in order
> to dynamically create additional mount points there.
>
> Fixes: 63e2d8696 (rootfs: don't create empty /media subdirs)
Sounds like your "fix" is a change of intended behavior.
I suggest to create this folder in the package,
in which you install your mount logic (the dynamic creation).
This keeps the status quo for the rest of ptxdist installations,
where /media is not needed.

Regards, Denis

> Signed-off-by: Gavin Schenk 
> ---
>
> Hi Uwe,
>
> thank you for the feedback, this is my V2.
> I have a new alias in my .gitconfig :-)
>
> Regards
> Gavin
>
>  rules/rootfs.make | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/rules/rootfs.make b/rules/rootfs.make
> index 6b37db5bd..419ca001e 100644
> --- a/rules/rootfs.make
> +++ b/rules/rootfs.make
> @@ -63,6 +63,7 @@ ifdef PTXCONF_ROOTFS_HOME_ROOT
> @$(call install_copy, rootfs, 0, 0, 0700, /root)
>  endif
>  ifdef PTXCONF_ROOTFS_MEDIA
> +   @$(call install_copy, rootfs, 0, 0, 0755, /media)
>  ifneq ($(call remove_quotes,$(PTXCONF_ROOTFS_MEDIA1)),)
> @$(call install_copy, rootfs, 0, 0, 0777, 
> /media/$(PTXCONF_ROOTFS_MEDIA1))
>  endif
> --
> 2.28.0
>
> Eckelmann AG
> Vorstand: Dipl.-Ing. Peter Frankenbach (Sprecher) Dipl.-Wi.-Ing. Philipp 
> Eckelmann
> Dr.-Ing. Marco Mnchhof Dr.-Ing. Frank Uhlemann
> Vorsitzender des Aufsichtsrats: Hubertus G. Krossa Stv. Vorsitzender des 
> Aufsichtsrats: Dr.-Ing. Gerd Eckelmann
> Sitz der Gesellschaft: Berliner Str. 161, 65205 Wiesbaden, Amtsgericht 
> Wiesbaden HRB 12636
> http://www.eckelmann.de
>
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to 
> ptxdist-requ...@pengutronix.de
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH] fixup! ca-certificates: version bump 2016.08.08 -> 2019.09.16

2020-09-30 Thread Denis Osterland-Heim
Signed-off-by: Denis Osterland-Heim 
---

using the tag looks nicer ;-)

 rules/ca-certificates.make | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/rules/ca-certificates.make b/rules/ca-certificates.make
index bec34fc..4b0f653 100644
--- a/rules/ca-certificates.make
+++ b/rules/ca-certificates.make
@@ -14,10 +14,10 @@ PACKAGES-$(PTXCONF_CA_CERTIFICATES) += ca-certificates
 #
 # Paths and names
 #
-CA_CERTIFICATES_VERSION:= 2016.08.08
+CA_CERTIFICATES_VERSION:= 2020.09.16
 # The commit hash of the default branch. Update this in sync with the date 
above.
-CA_CERTIFICATES_HASH:= 79f079284141
-CA_CERTIFICATES_MD5:= 4be3172ed2528ade3574cfbe35eec421
+CA_CERTIFICATES_HASH:= FIREFOX_81_0_RELEASE
+CA_CERTIFICATES_MD5:= a1d60533280caaf36ac6881012fe8978
 CA_CERTIFICATES:= ca-certificates-$(CA_CERTIFICATES_VERSION)
 CA_CERTIFICATES_SUFFIX:= txt
 CA_CERTIFICATES_URL:= 
https://hg.mozilla.org/releases/mozilla-release/raw-file/$(CA_CERTIFICATES_HASH)/security/nss/lib/ckfw/builtins/certdata.$(CA_CERTIFICATES_SUFFIX)
--
2.28.0

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/



___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH] ca-certificates: version bump 2016.08.08 -> 2019.09.16

2020-09-30 Thread Denis Osterland-Heim
Signed-off-by: Denis Osterland-Heim 
---
Hi,

I hope that e-mail works this time.

Regards Denis

 rules/ca-certificates.make | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/rules/ca-certificates.make b/rules/ca-certificates.make
index bec34fc..527f33c 100644
--- a/rules/ca-certificates.make
+++ b/rules/ca-certificates.make
@@ -14,10 +14,10 @@ PACKAGES-$(PTXCONF_CA_CERTIFICATES) += ca-certificates
 #
 # Paths and names
 #
-CA_CERTIFICATES_VERSION:= 2016.08.08
+CA_CERTIFICATES_VERSION:= 2020.09.16
 # The commit hash of the default branch. Update this in sync with the date 
above.
-CA_CERTIFICATES_HASH:= 79f079284141
-CA_CERTIFICATES_MD5:= 4be3172ed2528ade3574cfbe35eec421
+CA_CERTIFICATES_HASH:= 080f865dcb5a2427138f686afa8e72ba81936743
+CA_CERTIFICATES_MD5:= a1d60533280caaf36ac6881012fe8978
 CA_CERTIFICATES:= ca-certificates-$(CA_CERTIFICATES_VERSION)
 CA_CERTIFICATES_SUFFIX:= txt
 CA_CERTIFICATES_URL:= 
https://hg.mozilla.org/releases/mozilla-release/raw-file/$(CA_CERTIFICATES_HASH)/security/nss/lib/ckfw/builtins/certdata.$(CA_CERTIFICATES_SUFFIX)
--
2.28.0

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/



___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH v2] fixup! libqmi: add option to enable mbim-qmux support

2020-08-24 Thread Denis Osterland-Heim
Hi,

Thanks for the offer.
Please find attached the original message.

Regards, Denis

Am Montag, den 17.08.2020, 08:22 +0200 schrieb Michael Olbrich:
> Hi,
>
> On Fri, Aug 14, 2020 at 01:29:45PM +0000, Denis Osterland-Heim wrote:
> > Seems it does not work anymore :-/
> >
> > In my sent folder, the e-mail is correct, but the one send back by mailing 
> > list is broken.
> > Looks like the exchange server in between "improves" my patch.
> > Maybe I find a workaround...
>
> Maybe try it as an attachment.
>
> Michael
>
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/




20200814124459.21932-1-Denis.Osterland.mbox
Description: 20200814124459.21932-1-Denis.Osterland.mbox
___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH v2] fixup! libqmi: add option to enable mbim-qmux support

2020-08-14 Thread Denis Osterland-Heim
Hi,

Seems it does not work anymore :-/

In my sent folder, the e-mail is correct, but the one send back by mailing list 
is broken.
Looks like the exchange server in between "improves" my patch.
Maybe I find a workaround...

Regards, Denis

Am Freitag, den 14.08.2020, 12:45 +0000 schrieb Denis Osterland-Heim:
> Some modems require support for this in auto mode.
> Default to y if ModemManager is there, beacuse it selects mbim
> anyway, so the feature comes nearly no cost.
> Explicit disable username option.
>
> Signed-off-by: Denis Osterland-Heim 
> ---
> Hi,
>
> I try to understand what happens...
>
> Regards, Denis
>
>  rules/libqmi.in   | 13 +++--
>  rules/libqmi.make |  2 ++
>  2 files changed, 13 insertions(+), 2 deletions(-)
>
> diff --git a/rules/libqmi.in b/rules/libqmi.in
> index ac65515d3..9fe39036a 100644
> --- a/rules/libqmi.in
> +++ b/rules/libqmi.in
> @@ -1,9 +1,18 @@
>  ## SECTION=networking
>
> -config LIBQMI
> +menuconfig LIBQMI
>  tristate
>  select HOST_SYSTEM_PYTHON3
>  select GLIB
> -prompt "libqmi"
> +select LIBMBIM if LIBQMI_MBIM_QMUX
> +prompt "libqmi"
>  help
>Support library to use the Qualcomm MSM Interface (QMI) protocol
> +
> +if LIBQMI
> +
> +config LIBQMI_MBIM_QMUX
> +bool "enable mbim-qmux support"
> +default y if MODEMMANAGER
> +
> +endif
> diff --git a/rules/libqmi.make b/rules/libqmi.make
> index 00ec44f8e..9670236e2 100644
> --- a/rules/libqmi.make
> +++ b/rules/libqmi.make
> @@ -39,6 +39,8 @@ LIBQMI_CONF_OPT:= \
>  --disable-gtk-doc \
>  --disable-gtk-doc-html \
>  --disable-gtk-doc-pdf \
> +--disable-qmi-username \
> +--$(call ptx/endis, PTXCONF_LIBQMI_MBIM_QMUX)-mbim-qmux \
>  --without-udev \
>  --with-udev-base-dir=/usr/lib/udev
>
> --
> 2.28.0
>
> Diehl Connectivity Solutions GmbH
> Geschäftsführung: Horst Leonberger
> Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
> Nürnberg: HRB 32315
>
> 
>
> Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
> enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
> Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
> haben. Bitte loeschen Sie in diesem Fall die Nachricht.
> Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
> und/oder Publikation dieser E-Mail ist strengstens untersagt.
>
> - Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
> unter:
>
> https://www.diehl.com/group/de/transparenz-und-informationspflichten/
>
> The contents of the above mentioned e-mail is not legally binding. This 
> e-mail contains confidential and/or legally protected information. Please 
> inform us if you have received this e-mail by
> mistake and delete it in such a case. Each unauthorized reproduction, 
> disclosure, alteration, distribution and/or publication of this e-mail is 
> strictly prohibited.
>
> - For general information on data protection and your respective rights 
> please visit:
>
> https://www.diehl.com/group/en/transparency-and-information-obligations/
>
>
>
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to 
> ptxdist-requ...@pengutronix.de
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH v2] fixup! libqmi: add option to enable mbim-qmux support

2020-08-14 Thread Denis Osterland-Heim
Some modems require support for this in auto mode.
Default to y if ModemManager is there, beacuse it selects mbim
anyway, so the feature comes nearly no cost.
Explicit disable username option.

Signed-off-by: Denis Osterland-Heim 
---
Hi,

I try to understand what happens...

Regards, Denis

 rules/libqmi.in   | 13 +++--
 rules/libqmi.make |  2 ++
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/rules/libqmi.in b/rules/libqmi.in
index ac65515d3..9fe39036a 100644
--- a/rules/libqmi.in
+++ b/rules/libqmi.in
@@ -1,9 +1,18 @@
 ## SECTION=networking

-config LIBQMI
+menuconfig LIBQMI
 tristate
 select HOST_SYSTEM_PYTHON3
 select GLIB
-prompt "libqmi"
+select LIBMBIM if LIBQMI_MBIM_QMUX
+prompt "libqmi"
 help
   Support library to use the Qualcomm MSM Interface (QMI) protocol
+
+if LIBQMI
+
+config LIBQMI_MBIM_QMUX
+bool "enable mbim-qmux support"
+default y if MODEMMANAGER
+
+endif
diff --git a/rules/libqmi.make b/rules/libqmi.make
index 00ec44f8e..9670236e2 100644
--- a/rules/libqmi.make
+++ b/rules/libqmi.make
@@ -39,6 +39,8 @@ LIBQMI_CONF_OPT:= \
 --disable-gtk-doc \
 --disable-gtk-doc-html \
 --disable-gtk-doc-pdf \
+--disable-qmi-username \
+--$(call ptx/endis, PTXCONF_LIBQMI_MBIM_QMUX)-mbim-qmux \
 --without-udev \
 --with-udev-base-dir=/usr/lib/udev

--
2.28.0

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/



___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH v2] libqmi: add option to enable mbim-qmux support

2020-08-13 Thread Denis Osterland-Heim
Some modems require support for this in auto mode.
Default to y if ModemManager is there, beacuse it selects mbim
anyway, so the feature comes nearly no cost.
Explicit disable username option.

Signed-off-by: Denis Osterland-Heim 
---
 rules/libqmi.in   | 13 +++--
 rules/libqmi.make |  2 ++
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/rules/libqmi.in b/rules/libqmi.in
index ac65515d3..9fe39036a 100644
--- a/rules/libqmi.in
+++ b/rules/libqmi.in
@@ -1,9 +1,18 @@
 ## SECTION=networking

-config LIBQMI
+menuconfig LIBQMI
 tristate
 select HOST_SYSTEM_PYTHON3
 select GLIB
-prompt "libqmi"
+select LIBMBIM if LIBQMI_MBIM_QMUX
+prompt "libqmi"
 help
   Support library to use the Qualcomm MSM Interface (QMI) protocol
+
+if LIBQMI
+
+config LIBQMI_MBIM_QMUX
+bool "enable mbim-qmux support"
+default y if MODEMMANAGER
+
+endif
diff --git a/rules/libqmi.make b/rules/libqmi.make
index 00ec44f8e..9670236e2 100644
--- a/rules/libqmi.make
+++ b/rules/libqmi.make
@@ -39,6 +39,8 @@ LIBQMI_CONF_OPT:= \
 --disable-gtk-doc \
 --disable-gtk-doc-html \
 --disable-gtk-doc-pdf \
+--disable-qmi-username \
+--$(call ptx/endis, PTXCONF_LIBQMI_MBIM_QMUX)-mbim-qmux \
 --without-udev \
 --with-udev-base-dir=/usr/lib/udev

--
2.28.0

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315



Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.

- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter:

https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited.

- For general information on data protection and your respective rights please 
visit:

https://www.diehl.com/group/en/transparency-and-information-obligations/



___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH] libqmi: add option to enable mbim-qmux support

2020-08-04 Thread Denis Osterland-Heim
Some modems require support for this in auto mode.
Default to y if ModemManager is there, beacuse it selects mbim
anyway, so the feature comes nearly no cost.

Signed-off-by: Denis Osterland-Heim 
---
 rules/libqmi.in   | 13 +++--
 rules/libqmi.make |  3 ++-
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/rules/libqmi.in b/rules/libqmi.in
index ac65515..9fe3903 100644
--- a/rules/libqmi.in
+++ b/rules/libqmi.in
@@ -1,9 +1,18 @@
 ## SECTION=networking
 
-config LIBQMI
+menuconfig LIBQMI
tristate
select HOST_SYSTEM_PYTHON3
select GLIB
-   prompt "libqmi"
+   select LIBMBIM if LIBQMI_MBIM_QMUX
+   prompt "libqmi"
help
  Support library to use the Qualcomm MSM Interface (QMI) protocol
+
+if LIBQMI
+
+config LIBQMI_MBIM_QMUX
+   bool "enable mbim-qmux support"
+   default y if MODEMMANAGER
+
+endif
diff --git a/rules/libqmi.make b/rules/libqmi.make
index 00ec44f..372163c 100644
--- a/rules/libqmi.make
+++ b/rules/libqmi.make
@@ -40,7 +40,8 @@ LIBQMI_CONF_OPT   := \
--disable-gtk-doc-html \
--disable-gtk-doc-pdf \
--without-udev \
-   --with-udev-base-dir=/usr/lib/udev
+   --with-udev-base-dir=/usr/lib/udev \
+   --$(call ptx/endis, PTXCONF_LIBQMI_MBIM_QMUX)-mbim-qmux
 
 # 
 # Target-Install
-- 
2.28.0



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/

___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH] host-mfgtools: version bump 1.3.169 -> 1.3.191

2020-06-18 Thread Denis Osterland-Heim
Signed-off-by: Denis Osterland-Heim 
---
 rules/host-mfgtools.make | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules/host-mfgtools.make b/rules/host-mfgtools.make
index bae6e62b9..a99ad6055 100644
--- a/rules/host-mfgtools.make
+++ b/rules/host-mfgtools.make
@@ -11,8 +11,8 @@ HOST_PACKAGES-$(PTXCONF_HOST_MFGTOOLS) += host-mfgtools
 #
 # Paths and names
 #
-HOST_MFGTOOLS_VERSION  := 1.3.169
-HOST_MFGTOOLS_MD5  := 957655df30b80ed8cdff217544af6136
+HOST_MFGTOOLS_VERSION  := 1.3.191
+HOST_MFGTOOLS_MD5  := f77be0d7a5aaafbae063eb61bd4207ea
 HOST_MFGTOOLS  := mfgtools-$(HOST_MFGTOOLS_VERSION)
 HOST_MFGTOOLS_SUFFIX   := tar.gz
 HOST_MFGTOOLS_URL  := 
https://github.com/NXPmicro/mfgtools/releases/download/uuu_$(HOST_MFGTOOLS_VERSION)/uuu_source-$(HOST_MFGTOOLS_VERSION).$(HOST_MFGTOOLS_SUFFIX)
-- 
2.27.0



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/

___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH v2] host-mfgtools: version bump 1.3.167 -> 1.3.169

2020-04-21 Thread Denis Osterland-Heim
Remove custom extract stage, because 1.3.169 has only one toplevel dir,
as it should be.

Signed-off-by: Denis Osterland-Heim 
---
 rules/host-mfgtools.make | 21 +++--
 1 file changed, 3 insertions(+), 18 deletions(-)

diff --git a/rules/host-mfgtools.make b/rules/host-mfgtools.make
index fd8966548..bae6e62b9 100644
--- a/rules/host-mfgtools.make
+++ b/rules/host-mfgtools.make
@@ -11,31 +11,16 @@ HOST_PACKAGES-$(PTXCONF_HOST_MFGTOOLS) += host-mfgtools
 #
 # Paths and names
 #
-HOST_MFGTOOLS_VERSION  := 1.3.167
-HOST_MFGTOOLS_MD5  := 08fba433dd11525c9b425ad1ff91b85b
+HOST_MFGTOOLS_VERSION  := 1.3.169
+HOST_MFGTOOLS_MD5  := 957655df30b80ed8cdff217544af6136
 HOST_MFGTOOLS  := mfgtools-$(HOST_MFGTOOLS_VERSION)
 HOST_MFGTOOLS_SUFFIX   := tar.gz
 HOST_MFGTOOLS_URL  := 
https://github.com/NXPmicro/mfgtools/releases/download/uuu_$(HOST_MFGTOOLS_VERSION)/uuu_source-$(HOST_MFGTOOLS_VERSION).$(HOST_MFGTOOLS_SUFFIX)
 HOST_MFGTOOLS_SOURCE   := $(SRCDIR)/$(HOST_MFGTOOLS).$(HOST_MFGTOOLS_SUFFIX)
 HOST_MFGTOOLS_DIR  := $(HOST_BUILDDIR)/$(HOST_MFGTOOLS)
-# needed to handle broken archive
-HOST_MFGTOOLS_SUBDIR   := uuu_source-$(HOST_MFGTOOLS_VERSION)
-HOST_MFGTOOLS_STRIP_LEVEL := 0
 HOST_MFGTOOLS_LICENSE  := BSD-3-Clause
 HOST_MFGTOOLS_LICENSE_FILES:= \
-   
file://$(HOST_MFGTOOLS_SUBDIR)/LICENSE;md5=38ec0c18112e9a92cffc4951661e85a5
-
-# 
-# Extract
-# 
-
-$(STATEDIR)/host-mfgtools.extract.post:
-   @$(call targetinfo)
-   @$(call world/patchin/post, HOST_MFGTOOLS)
-#  # .tarball-version is in the wrong subdirectory
-   @cp $(HOST_MFGTOOLS_DIR)/uuu-$(HOST_MFGTOOLS_VERSION)/.tarball-version \
-   $(HOST_MFGTOOLS_DIR)/$(HOST_MFGTOOLS_SUBDIR)
-   @$(call touch)
+   file://LICENSE;md5=38ec0c18112e9a92cffc4951661e85a5
 
 # 
 # Prepare
-- 
2.26.2



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/

___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH] host-mfgtools: version bump 1.3.167 -> 1.3.169

2020-04-21 Thread Denis Osterland-Heim
Hi Roland,

Am Dienstag, den 21.04.2020, 12:54 +0200 schrieb Roland Hieber:
> On Tue, Apr 21, 2020 at 10:15:01AM +0000, Denis Osterland-Heim wrote:
> > Signed-off-by: Denis Osterland-Heim 
> > ---
> > Hi,
> > 
> > the 167 source tarball has two toplevel directories, one with the git
> > submodule content and one without. This was an accident by upstream and
> > is fixed in 169. It worked on my machine but on older machines (Ubuntu
> > 16.04) it failed because of mv can not override directories.
> > I am not sure why it works on my PC.
> 
> Michael already pushed a fix for this on master in commit
> e5d4c7c479293eb34345 ("host-mfgtools: fix random extract failures") by
> handling it in the extract stage.  Please rebase onto the current master
> to test the version bump, and test if the extract step is still needed :)
Shame on me that I was to slow.
I will do so. I am sure we can get rid of special extract stage.

I would go with an additional revert patch, or would it be better to squash it?

Regards Denis

> 
>  - Roland
> 
> > 
> > Regards Denis 
> > 
> >  rules/host-mfgtools.make | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/rules/host-mfgtools.make b/rules/host-mfgtools.make
> > index fd8966548..d40017458 100644
> > --- a/rules/host-mfgtools.make
> > +++ b/rules/host-mfgtools.make
> > @@ -11,8 +11,8 @@ HOST_PACKAGES-$(PTXCONF_HOST_MFGTOOLS) += host-mfgtools
> >  #
> >  # Paths and names
> >  #
> > -HOST_MFGTOOLS_VERSION  := 1.3.167
> > -HOST_MFGTOOLS_MD5  := 08fba433dd11525c9b425ad1ff91b85b
> > +HOST_MFGTOOLS_VERSION  := 1.3.169
> > +HOST_MFGTOOLS_MD5  := 957655df30b80ed8cdff217544af6136
> >  HOST_MFGTOOLS  := mfgtools-$(HOST_MFGTOOLS_VERSION)
> >  HOST_MFGTOOLS_SUFFIX   := tar.gz
> >  HOST_MFGTOOLS_URL  := 
> > https://github.com/NXPmicro/mfgtools/releases/download/uuu_$(HOST_MFGTOOLS_VERSION)/uuu_source-$(HOST_MFGTOOLS_VERSION).$(HOST_MFGTOOLS_SUFFIX)
> > -- 
> > 2.26.2
> > 
> > 
> > 
> > Diehl Connectivity Solutions GmbH
> > Geschäftsführung: Horst Leonberger
> > Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
> > Nürnberg: HRB 32315
> > ___
> > 
> > Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese 
> > E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
> > Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise 
> > erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
> > Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
> > und/oder Publikation dieser E-Mail ist strengstens untersagt.
> > - Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten 
> > Sie unter 
> > https://www.diehl.com/group/de/transparenz-und-informationspflichten/
> > 
> > The contents of the above mentioned e-mail is not legally binding. This 
> > e-mail contains confidential and/or legally protected information. Please 
> > inform us if you have received this e-mail by
> > mistake and delete it in such a case. Each unauthorized reproduction, 
> > disclosure, alteration, distribution and/or publication of this e-mail is 
> > strictly prohibited. 
> > - For general information on data protection and your respective rights 
> > please visit 
> > https://www.diehl.com/group/en/transparency-and-information-obligations/
> > 
> > ___
> > ptxdist mailing list
> > ptxdist@pengutronix.de
> > 
> 
> 


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/
___
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] [PATCH] host-mfgtools: version bump 1.3.167 -> 1.3.169

2020-04-21 Thread Denis Osterland-Heim
Signed-off-by: Denis Osterland-Heim 
---
Hi,

the 167 source tarball has two toplevel directories, one with the git
submodule content and one without. This was an accident by upstream and
is fixed in 169. It worked on my machine but on older machines (Ubuntu
16.04) it failed because of mv can not override directories.
I am not sure why it works on my PC.

Regards Denis 

 rules/host-mfgtools.make | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules/host-mfgtools.make b/rules/host-mfgtools.make
index fd8966548..d40017458 100644
--- a/rules/host-mfgtools.make
+++ b/rules/host-mfgtools.make
@@ -11,8 +11,8 @@ HOST_PACKAGES-$(PTXCONF_HOST_MFGTOOLS) += host-mfgtools
 #
 # Paths and names
 #
-HOST_MFGTOOLS_VERSION  := 1.3.167
-HOST_MFGTOOLS_MD5  := 08fba433dd11525c9b425ad1ff91b85b
+HOST_MFGTOOLS_VERSION  := 1.3.169
+HOST_MFGTOOLS_MD5  := 957655df30b80ed8cdff217544af6136
 HOST_MFGTOOLS  := mfgtools-$(HOST_MFGTOOLS_VERSION)
 HOST_MFGTOOLS_SUFFIX   := tar.gz
 HOST_MFGTOOLS_URL  := 
https://github.com/NXPmicro/mfgtools/releases/download/uuu_$(HOST_MFGTOOLS_VERSION)/uuu_source-$(HOST_MFGTOOLS_VERSION).$(HOST_MFGTOOLS_SUFFIX)
-- 
2.26.2



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/

___
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] [PATCH] host-libftdi1: fix cmake variable name

2020-04-16 Thread Denis Osterland-Heim
HOST_CMAKE_USR is not defined, but HOST_CMAKE_OPT is and provides
the values for cmake standard variables.

Signed-off-by: Denis Osterland-Heim 
---
 rules/host-libftdi1.make | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/host-libftdi1.make b/rules/host-libftdi1.make
index 0f26a65fa..6139661b8 100644
--- a/rules/host-libftdi1.make
+++ b/rules/host-libftdi1.make
@@ -13,7 +13,7 @@ HOST_PACKAGES-$(PTXCONF_HOST_LIBFTDI1) += host-libftdi1
 
 HOST_LIBFTDI1_CONF_TOOL:= cmake
 HOST_LIBFTDI1_CONF_OPT := \
-   $(HOST_CMAKE_USR) \
+   $(HOST_CMAKE_OPT) \
-DDOCUMENTATION=OFF \
-DPYTHON_BINDINGS=OFF \
-DSTATICLIBS=OFF \
-- 
2.26.1



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/

___
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] [PATCH] host-mfgtools: version bump 1.3.154 -> 1.3.167

2020-04-16 Thread Denis Osterland-Heim
Upstream now provides a source tarball with .tarball-version file,
so remove the post-extract step.
Add cmake configuration switch.

Signed-off-by: Denis Osterland-Heim 
---
 rules/host-mfgtools.make | 19 ++-
 1 file changed, 6 insertions(+), 13 deletions(-)

diff --git a/rules/host-mfgtools.make b/rules/host-mfgtools.make
index f9429ce1e..0427bff26 100644
--- a/rules/host-mfgtools.make
+++ b/rules/host-mfgtools.make
@@ -11,31 +11,24 @@ HOST_PACKAGES-$(PTXCONF_HOST_MFGTOOLS) += host-mfgtools
 #
 # Paths and names
 #
-HOST_MFGTOOLS_VERSION  := 1.3.154
-HOST_MFGTOOLS_MD5  := dd97a479db92b70a36c15d834f1e503c
+HOST_MFGTOOLS_VERSION  := 1.3.167
+HOST_MFGTOOLS_MD5  := 08fba433dd11525c9b425ad1ff91b85b
 HOST_MFGTOOLS  := mfgtools-$(HOST_MFGTOOLS_VERSION)
 HOST_MFGTOOLS_SUFFIX   := tar.gz
-HOST_MFGTOOLS_URL  := 
https://github.com/NXPmicro/mfgtools/archive/uuu_$(HOST_MFGTOOLS_VERSION).$(HOST_MFGTOOLS_SUFFIX)
+HOST_MFGTOOLS_URL  := 
https://github.com/NXPmicro/mfgtools/releases/download/uuu_$(HOST_MFGTOOLS_VERSION)/uuu_source-$(HOST_MFGTOOLS_VERSION).$(HOST_MFGTOOLS_SUFFIX)
 HOST_MFGTOOLS_SOURCE   := $(SRCDIR)/$(HOST_MFGTOOLS).$(HOST_MFGTOOLS_SUFFIX)
 HOST_MFGTOOLS_DIR  := $(HOST_BUILDDIR)/$(HOST_MFGTOOLS)
 HOST_MFGTOOLS_LICENSE  := BSD-3-Clause
 HOST_MFGTOOLS_LICENSE_FILES:= \
file://LICENSE;md5=38ec0c18112e9a92cffc4951661e85a5
 
-# 
-# Extract
-# 
-
-$(STATEDIR)/host-mfgtools.extract.post:
-   @$(call targetinfo)
-   @$(call world/patchin/post, HOST_MFGTOOLS)
-   @echo "uuu_$(HOST_MFGTOOLS_VERSION)" > 
$(HOST_MFGTOOLS_DIR)/.tarball-version
-   @$(call touch)
-
 # 
 # Prepare
 # 
 
 HOST_MFGTOOLS_CONF_TOOL:= cmake
+HOST_MFGTOOLS_CONF_OPT := \
+   $(HOST_CMAKE_OPT) \
+   -DBUILD_DOC=OFF
 
 # vim: syntax=make
-- 
2.26.1



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/

___
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] [PATCH] networkmanager: ppp support requires GLOBAL_IPV6

2020-04-02 Thread Denis Osterland-Heim
pppd installs eui64.h only if GLOBAL_IPV6 is set,
but networkmanager ppp support includes this header without a check.
This patch allows to enable ppp support only if GLOBAL_IPV6 is
selected to avoid a compile error.

Signed-off-by: Denis Osterland-Heim 
---
 rules/networkmanager.in | 4 
 1 file changed, 4 insertions(+)

diff --git a/rules/networkmanager.in b/rules/networkmanager.in
index dbbc3d072..16703ea6c 100644
--- a/rules/networkmanager.in
+++ b/rules/networkmanager.in
@@ -86,8 +86,12 @@ config NETWORKMANAGER_WWAN
 
 config NETWORKMANAGER_PPP
bool
+   depends on GLOBAL_IPV6
prompt "enable ppp support"
 
+comment "ppp support requires GLOBAL_IPV6!"
+   depends on !GLOBAL_IPV6
+
 config NETWORKMANAGER_CONCHECK
bool
prompt "enable connectivity checking support"
-- 
2.26.0



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/

___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH v2] fixup! imx-uuc: new package

2020-04-02 Thread Denis Osterland-Heim
Hi Michael,

Am Mittwoch, den 01.04.2020, 17:08 +0200 schrieb Michael Olbrich:
> On Tue, Mar 31, 2020 at 05:29:01AM +0000, Denis Osterland-Heim wrote:
> > NXP user space util used by mfgtool.
> > 
> > Signed-off-by: Denis Osterland-Heim 
> > ---
> >  ...001-sh-does-not-support-array-syntax.patch | 117 ++
> >  .../series|   4 +
> 
> Now we have two patches :-/. I'll do another fixup myself.
I am a little bit confused.
I thought you would apply just the fixup version.
It looks like something like: git am; git am; git rebase -i HEAD^^
What happens at your side?

Regards Denis

> 
> Michael
> 
> >  rules/imx-uuc.in  |   7 ++
> >  rules/imx-uuc.make|  60 +
> >  4 files changed, 188 insertions(+)
> >  create mode 100644 
> > patches/imx-uuc-2019-11-07-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/0001-sh-does-not-support-array-syntax.patch
> >  create mode 100644 
> > patches/imx-uuc-2019-11-07-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/series
> >  create mode 100644 rules/imx-uuc.in
> >  create mode 100644 rules/imx-uuc.make
> > 
> > diff --git 
> > a/patches/imx-uuc-2019-11-07-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/0001-sh-does-not-support-array-syntax.patch
> >  b/patches/imx-uuc-2019-11-07-
> > gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/0001-sh-does-not-support-array-syntax.patch
> > new file mode 100644
> > index 0..995baea19
> > --- /dev/null
> > +++ 
> > b/patches/imx-uuc-2019-11-07-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/0001-sh-does-not-support-array-syntax.patch
> > @@ -0,0 +1,117 @@
> > +From: Denis Osterland-Heim 
> > +Date: Thu, 12 Mar 2020 17:36:22 +0100
> > +Subject: [PATCH] sh does not support array syntax
> > +
> > +Remove NFS support, because it uses additional arrays and it is not
> > +tested.
> > +
> > +Signed-off-by: Denis Osterland-Heim 
> > +---
> > + linuxrc | 72 
> > ++---
> > + 1 file changed, 6 insertions(+), 66 deletions(-)
> > +
> > +diff --git a/linuxrc b/linuxrc
> > +index 54bb8a2cbbd8..1f15e3cbdff3 100755
> > +--- a/linuxrc
> >  b/linuxrc
> > +@@ -16,20 +16,8 @@ last=0;
> > + 
> > + UDC_DIR=/sys/class/udc
> > + 
> > +-function launch_dhcpd() {
> > +-
> > +-  touch -f /var/lib/misc/udhcpd.leases
> > +-  echo start  168.1.1.50 > /conf
> > +-  echo end168.1.1.253 >> /conf
> > +-  echo interface usb$1>>/conf
> > +-
> > +-  ifconfig usb$1 168.1.1.1
> > +-  udhcpd /conf
> > +-
> > +-}
> > +-
> > + function contains() {
> > +-  for i in "${files[@]}"
> > ++  for i in $files
> > +   do
> > +   if [ "$i" == "$1" ]; then
> > +   return 1;
> > +@@ -45,7 +33,8 @@ function launch_uuc() {
> > +   echo 0x066F > idVendor
> > + 
> > +   if [[ ${cmdline} == *nfsroot* ]]; then
> > +-  echo 0x9CFF > idProduct
> > ++  echo "unsupported"
> > ++  exit 1
> > +   else
> > +   echo 0x9BFF > idProduct
> > +   fi
> > +@@ -69,57 +58,8 @@ function launch_uuc() {
> > +   echo 0x40 > os_desc/b_vendor_code
> > + 
> > +   if [[ ${cmdline} == *nfsroot* ]]; then
> > +-  mkdir functions/ncm.1
> > +-  ln -s functions/ncm.1 configs/c.1/
> > +-# mkdir functions/acm.1
> > +-# ln -s functions/acm.1 configs/c.1/
> > +-  echo $1 > UDC
> > +-
> > +-  echo "Start config network"
> > +-
> > +-ifconfig usb$2 up
> > +-while [ ! -e /find_one ]
> > +-do
> > +-if [[ `ifconfig usb$2` == *inet6* ]]; then
> > +-  break;
> > +-  fi
> > +-  sleep 1
> > +-done
> > +-
> > +-  if [ -e /find_one ]; then
> > +-  exit 0
> > +-  fi
> > +-
> > +-  touch /find_one
> > +-
> > +-  launch_dhcpd $2
> > +-
> > +-  remote=""
> > +-  while [[ "$remote" == "" ]];
> > +-  do
> > +-  sleep 2
> > +-  echo retry get remote ipaddress
> > +-  ping6 -c2 -I usb$2 ff02::1
> > +-
> > +-  

[ptxdist] [PATCH v2] fixup! imx-uuc: new package

2020-03-30 Thread Denis Osterland-Heim
NXP user space util used by mfgtool.

Signed-off-by: Denis Osterland-Heim 
---
 ...001-sh-does-not-support-array-syntax.patch | 117 ++
 .../series|   4 +
 rules/imx-uuc.in  |   7 ++
 rules/imx-uuc.make|  60 +
 4 files changed, 188 insertions(+)
 create mode 100644 
patches/imx-uuc-2019-11-07-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/0001-sh-does-not-support-array-syntax.patch
 create mode 100644 
patches/imx-uuc-2019-11-07-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/series
 create mode 100644 rules/imx-uuc.in
 create mode 100644 rules/imx-uuc.make

diff --git 
a/patches/imx-uuc-2019-11-07-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/0001-sh-does-not-support-array-syntax.patch
 
b/patches/imx-uuc-2019-11-07-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/0001-sh-does-not-support-array-syntax.patch
new file mode 100644
index 0..995baea19
--- /dev/null
+++ 
b/patches/imx-uuc-2019-11-07-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/0001-sh-does-not-support-array-syntax.patch
@@ -0,0 +1,117 @@
+From: Denis Osterland-Heim 
+Date: Thu, 12 Mar 2020 17:36:22 +0100
+Subject: [PATCH] sh does not support array syntax
+
+Remove NFS support, because it uses additional arrays and it is not
+tested.
+
+Signed-off-by: Denis Osterland-Heim 
+---
+ linuxrc | 72 ++---
+ 1 file changed, 6 insertions(+), 66 deletions(-)
+
+diff --git a/linuxrc b/linuxrc
+index 54bb8a2cbbd8..1f15e3cbdff3 100755
+--- a/linuxrc
 b/linuxrc
+@@ -16,20 +16,8 @@ last=0;
+ 
+ UDC_DIR=/sys/class/udc
+ 
+-function launch_dhcpd() {
+-
+-  touch -f /var/lib/misc/udhcpd.leases
+-  echo start  168.1.1.50 > /conf
+-  echo end168.1.1.253 >> /conf
+-  echo interface usb$1>>/conf
+-
+-  ifconfig usb$1 168.1.1.1
+-  udhcpd /conf
+-
+-}
+-
+ function contains() {
+-  for i in "${files[@]}"
++  for i in $files
+   do
+   if [ "$i" == "$1" ]; then
+   return 1;
+@@ -45,7 +33,8 @@ function launch_uuc() {
+   echo 0x066F > idVendor
+ 
+   if [[ ${cmdline} == *nfsroot* ]]; then
+-  echo 0x9CFF > idProduct
++  echo "unsupported"
++  exit 1
+   else
+   echo 0x9BFF > idProduct
+   fi
+@@ -69,57 +58,8 @@ function launch_uuc() {
+   echo 0x40 > os_desc/b_vendor_code
+ 
+   if [[ ${cmdline} == *nfsroot* ]]; then
+-  mkdir functions/ncm.1
+-  ln -s functions/ncm.1 configs/c.1/
+-# mkdir functions/acm.1
+-# ln -s functions/acm.1 configs/c.1/
+-  echo $1 > UDC
+-
+-  echo "Start config network"
+-
+-ifconfig usb$2 up
+-while [ ! -e /find_one ]
+-do
+-if [[ `ifconfig usb$2` == *inet6* ]]; then
+-  break;
+-  fi
+-  sleep 1
+-done
+-
+-  if [ -e /find_one ]; then
+-  exit 0
+-  fi
+-
+-  touch /find_one
+-
+-  launch_dhcpd $2
+-
+-  remote=""
+-  while [[ "$remote" == "" ]];
+-  do
+-  sleep 2
+-  echo retry get remote ipaddress
+-  ping6 -c2 -I usb$2 ff02::1
+-
+-  remote=`ip -6 neighbor show dev usb$2`
+-  remote=(${remote})
+-  remote=${remote[0]}
+-  done
+-
+-nfs=${cmdline#*nfsroot=}
+-nfs=($nfs)
+-nfs=${nfs[0]}
+-
+-  nfs=${nfs##*:}
+-
+-echo ${remote} ${nfs}
+-
+-  mount -t nfs [${remote}%usb$2]:${nfsroot}/${nfs} /mnt/
+-
+-cd /
+-
+-  touch /exit_scan
+-
++  echo "unsuppored"
++  exit 1
+   else
+   mkdir functions/ffs.utp$2
+   mkdir /dev/usb-utp$2
+@@ -161,7 +101,7 @@ if test "$(ls -A "$UDC_DIR")"; then
+   for entry in *
+   do
+   if contains $entry; then
+-  files[$last]=$entry;
++  files="$files $entry";
+   id=$last;
+   last=`expr $last + 1`;
+   echo "Found New UDC: $entry";
diff --git 
a/patches/imx-uuc-2019-11-07-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/series 
b/patches/imx-uuc-2019-11-07-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/series
new file mode 100644
index 0..125c531a3
--- /dev/null
+++ 
b/patches/imx-uuc-2019-11-07-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base 

Re: [ptxdist] Networkmanager pppd support broken

2020-03-30 Thread Denis Osterland-Heim
Hi Michael,

Am Montag, den 30.03.2020, 21:39 +0200 schrieb Michael Olbrich:
> On Mon, Mar 30, 2020 at 04:27:48PM +0000, Denis Osterland-Heim wrote:
> > NetworkManager pppd compile support seems broken.
> > 
> > ../NetworkManager-1.20.8/src/ppp/nm-pppd-plugin.c:34:10: fatal error: 
> > pppd/eui64.h: No such file or directory
> >34 | #include 
> >   |  ^~
> > compilation terminated.
> > 
> > It seems to refer to https://github.com/wkz/pppd/blob/master/pppd/eui64.h
> > but this header is not installed to sysroot-target/usr/include/pppd
> > https://github.com/wkz/pppd/blob/master/pppd/Makefile.linux#L18
> 
> It's added here:
> 
> https://github.com/wkz/pppd/blob/master/pppd/Makefile.linux#L180
this solves the puzzle.
eui64.h is only installed if GLOBAL_IPV6 is selected, but NetworkManager pppd
depends on it unconditionally.

Shall we go with "select" or "depends on" in case of this global setting?

> 
> > Does anyone use it?
> 
> The file is installed and building the NetworkManager pppd support works in
> my build everything test.
I should have known this. sorry

Regards Denis

> 
> Michael
> 


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/
___
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] Networkmanager pppd support broken

2020-03-30 Thread Denis Osterland-Heim
Hi,

NetworkManager pppd compile support seems broken.

../NetworkManager-1.20.8/src/ppp/nm-pppd-plugin.c:34:10: fatal error: 
pppd/eui64.h: No such file or directory
   34 | #include 
  |  ^~
compilation terminated.

It seems to refer to https://github.com/wkz/pppd/blob/master/pppd/eui64.h
but this header is not installed to sysroot-target/usr/include/pppd
https://github.com/wkz/pppd/blob/master/pppd/Makefile.linux#L18

Does anyone use it?

Regards Denis


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/
___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH v2 1/3] imx-uuc: new package

2020-03-27 Thread Denis Osterland-Heim
Hi Michael,

Am Freitag, den 27.03.2020, 13:06 +0100 schrieb Michael Olbrich:
> On Thu, Mar 26, 2020 at 05:03:56PM +0000, Denis Osterland-Heim wrote:
> > NXP user space util used by mfgtool.
> > 
> > Signed-off-by: Denis Osterland-Heim 
> > ---
> >  ...001-sh-does-not-support-array-syntax.patch | 117 ++
> >  .../series|   4 +
> >  rules/imx-uuc.in  |   7 ++
> >  rules/imx-uuc.make|  60 +
> >  4 files changed, 188 insertions(+)
> >  create mode 100644 
> > patches/imx-uuc-0.0-1-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/0001-sh-does-not-support-array-syntax.patch
> >  create mode 100644 
> > patches/imx-uuc-0.0-1-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/series
> 
> The patch is not applied. The directory does not match.
You are right.
s/0.0-1/2019-11-07/ on path.
Can you fix up?
Shall I send a fix up?
Shall I send a v3?

Regards Denis

> 
> Michael
> 
> >  create mode 100644 rules/imx-uuc.in
> >  create mode 100644 rules/imx-uuc.make
> > 
> > diff --git 
> > a/patches/imx-uuc-0.0-1-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/0001-sh-does-not-support-array-syntax.patch
> >  b/patches/imx-uuc-0.0-1-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/0001-sh-
> > does-not-support-array-syntax.patch
> > new file mode 100644
> > index 0..995baea19
> > --- /dev/null
> > +++ 
> > b/patches/imx-uuc-0.0-1-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/0001-sh-does-not-support-array-syntax.patch
> > @@ -0,0 +1,117 @@
> > +From: Denis Osterland-Heim 
> > +Date: Thu, 12 Mar 2020 17:36:22 +0100
> > +Subject: [PATCH] sh does not support array syntax
> > +
> > +Remove NFS support, because it uses additional arrays and it is not
> > +tested.
> > +
> > +Signed-off-by: Denis Osterland-Heim 
> > +---
> > + linuxrc | 72 
> > ++---
> > + 1 file changed, 6 insertions(+), 66 deletions(-)
> > +
> > +diff --git a/linuxrc b/linuxrc
> > +index 54bb8a2cbbd8..1f15e3cbdff3 100755
> > +--- a/linuxrc
> >  b/linuxrc
> > +@@ -16,20 +16,8 @@ last=0;
> > + 
> > + UDC_DIR=/sys/class/udc
> > + 
> > +-function launch_dhcpd() {
> > +-
> > +-  touch -f /var/lib/misc/udhcpd.leases
> > +-  echo start  168.1.1.50 > /conf
> > +-  echo end168.1.1.253 >> /conf
> > +-  echo interface usb$1>>/conf
> > +-
> > +-  ifconfig usb$1 168.1.1.1
> > +-  udhcpd /conf
> > +-
> > +-}
> > +-
> > + function contains() {
> > +-  for i in "${files[@]}"
> > ++  for i in $files
> > +   do
> > +   if [ "$i" == "$1" ]; then
> > +   return 1;
> > +@@ -45,7 +33,8 @@ function launch_uuc() {
> > +   echo 0x066F > idVendor
> > + 
> > +   if [[ ${cmdline} == *nfsroot* ]]; then
> > +-  echo 0x9CFF > idProduct
> > ++  echo "unsupported"
> > ++  exit 1
> > +   else
> > +   echo 0x9BFF > idProduct
> > +   fi
> > +@@ -69,57 +58,8 @@ function launch_uuc() {
> > +   echo 0x40 > os_desc/b_vendor_code
> > + 
> > +   if [[ ${cmdline} == *nfsroot* ]]; then
> > +-  mkdir functions/ncm.1
> > +-  ln -s functions/ncm.1 configs/c.1/
> > +-# mkdir functions/acm.1
> > +-# ln -s functions/acm.1 configs/c.1/
> > +-  echo $1 > UDC
> > +-
> > +-  echo "Start config network"
> > +-
> > +-ifconfig usb$2 up
> > +-while [ ! -e /find_one ]
> > +-do
> > +-if [[ `ifconfig usb$2` == *inet6* ]]; then
> > +-  break;
> > +-  fi
> > +-  sleep 1
> > +-done
> > +-
> > +-  if [ -e /find_one ]; then
> > +-  exit 0
> > +-  fi
> > +-
> > +-  touch /find_one
> > +-
> > +-  launch_dhcpd $2
> > +-
> > +-  remote=""
> > +-  while [[ "$remote" == "" ]];
> > +-  do
> > +-  sleep 2
> > +-  echo retry get remote ipaddress
> > +-  ping6 -c2 -I usb$2 ff02::1
> > +-
> > +-  remote=`ip -6 neighbor show dev usb$2`
> > +-  remote=(${remote})
>

Re: [ptxdist] [PATCH v2 0/3] Freescale/NXP i.MX mfgtools 3.0

2020-03-27 Thread Denis Osterland-Heim
Hi Michael,

Am Freitag, den 27.03.2020, 13:41 +0100 schrieb Michael Olbrich:
> On Thu, Mar 26, 2020 at 05:03:57PM +0000, Denis Osterland-Heim wrote:
> > v1->v2:
> >  - 1/3 use tabs for defines, suggested by Roland Hiebler
> >  - 1/3 add dummy version before git hash, suggested by Michael Olbricht,
> >Roland Hiebler and Guillermo Rodriguez Garcia
> >  - 1/3 remove obsolete CREDITS reference, suggested by Roland Hiebler
> >  - 3/3 version bump to 1.3.154
> >  - 3/3 write .tarball-version in extract.post, suggested by Michael Olbricht
> > 
> > 
> > This patch series adds support for the Freescale/NXP mfgtools 3.0.
> > You can use them with vanilla kernel and barebox.
> > 
> > There are two known issues:
> >  - the git downloads => no stable md5 sum
> 
> Huh? I've not seen any changing md5 sums for such gitlab URLs.
> And the previous explicit git downloads used git-archive. The  md5 sums
> should be stable as well for such URLs.
shame on me.
Copy paste error.
Both issues are cleared.
With your help, the imx-uuc should be stable now, too.
And the array syntax is now removed by a patch.
The patch is not yet perfect, and improves still welcome but production ready.
To be honest I have not yet fully understood the NFS MFG-Tool use case.

Regards Denis

> 
> Michael
> 
> >  - the linuxrc provided by imx-uuc uses array syntax
> > 
> > I have a version of the linuxrc script where I replaced the array
> > stuff with blank separation, but not sure if this should be put as
> > projectroot/linuxrc in ptxdist.
> > 
> > Here are some examples how to use it. I have tested it with a i.MX6ull EVK
> > barebox-2020.02.0 and linux-5.4.25.
> > 
> > The command `uuu barebox-image` is equivalent to `imx-usb-loader 
> > barebox-image`.
> > 
> > The example
> > https://www.barebox.org/doc/latest/user/usb.html#android-fastboot-support
> > can be done with a `uuu boot.uu` command.
> > boot.uu:
> > ```
> > uuu_version 1.0.1
> > CFG: FB: -chip imx -pid 0x0104 -vid 0x1d6b
> > FB: flash kernel linuximage
> > FB: flash devicetree imx.dtb
> > FB: flash initrd root.cpio.gz
> > FB: oem exec global linux.bootargs.fa=rdinit=/sbin/init
> > FB: oem exec bootm
> > FB: done
> > ```
> > 
> > To run a shell command a kernel with USB gadgets/functionfs enabled
> > and imx-uuc install on target is needed.
> > This is an example of whole USB boot sequence and a command
> > executed in linux user space.
> > To see the output of the echo, the command is `uuu -v hello.uu`
> > hello.uu:
> > ```
> > uuu_version 1.0.1
> > SDP: dcd -f barebox-image
> > SDP: write -f barebox-image -ivt 0
> > SDP: jump -f barebox-image
> > CFG: FB: -chip imx -pid 0x0104 -vid 0x1d6b
> > FB: flash kernel linuximage
> > FB: flash devicetree imx.dtb
> > FB: flash initrd root.cpio.gz
> > FB: oem exec global linux.bootargs.fa=rdinit=/linuxrc
> > FB: oem exec bootm
> > FBK: ucmd echo "Hello World"
> > FBK: done
> > ```
> > 
> >  .../0001-sh-does-not-support-array-syntax.patch| 117 
> > +
> >  .../series |   4 +
> >  rules/host-libzip.in   |   8 ++
> >  rules/host-libzip.make |  11 ++
> >  rules/host-mfgtools.in |  13 +++
> >  rules/host-mfgtools.make   |  41 
> >  rules/imx-uuc.in   |   7 ++
> >  rules/imx-uuc.make |  60 +++
> >  8 files changed, 261 insertions(+)
> > 
> > 
> > 
> > 
> > Diehl Connectivity Solutions GmbH
> > Geschäftsführung: Horst Leonberger
> > Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
> > Nürnberg: HRB 32315
> > ___
> > 
> > Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese 
> > E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
> > Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise 
> > erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
> > Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
> > und/oder Publikation dieser E-Mail ist strengstens untersagt.
> > - Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten 
> > Sie unter 
> > https://www.diehl.com/group/de/transparenz-un

[ptxdist] [PATCH v2 0/3] Freescale/NXP i.MX mfgtools 3.0

2020-03-26 Thread Denis Osterland-Heim
v1->v2:
 - 1/3 use tabs for defines, suggested by Roland Hiebler
 - 1/3 add dummy version before git hash, suggested by Michael Olbricht,
   Roland Hiebler and Guillermo Rodriguez Garcia
 - 1/3 remove obsolete CREDITS reference, suggested by Roland Hiebler
 - 3/3 version bump to 1.3.154
 - 3/3 write .tarball-version in extract.post, suggested by Michael Olbricht


This patch series adds support for the Freescale/NXP mfgtools 3.0.
You can use them with vanilla kernel and barebox.

There are two known issues:
 - the git downloads => no stable md5 sum
 - the linuxrc provided by imx-uuc uses array syntax

I have a version of the linuxrc script where I replaced the array
stuff with blank separation, but not sure if this should be put as
projectroot/linuxrc in ptxdist.

Here are some examples how to use it. I have tested it with a i.MX6ull EVK
barebox-2020.02.0 and linux-5.4.25.

The command `uuu barebox-image` is equivalent to `imx-usb-loader barebox-image`.

The example
https://www.barebox.org/doc/latest/user/usb.html#android-fastboot-support
can be done with a `uuu boot.uu` command.
boot.uu:
```
uuu_version 1.0.1
CFG: FB: -chip imx -pid 0x0104 -vid 0x1d6b
FB: flash kernel linuximage
FB: flash devicetree imx.dtb
FB: flash initrd root.cpio.gz
FB: oem exec global linux.bootargs.fa=rdinit=/sbin/init
FB: oem exec bootm
FB: done
```

To run a shell command a kernel with USB gadgets/functionfs enabled
and imx-uuc install on target is needed.
This is an example of whole USB boot sequence and a command
executed in linux user space.
To see the output of the echo, the command is `uuu -v hello.uu`
hello.uu:
```
uuu_version 1.0.1
SDP: dcd -f barebox-image
SDP: write -f barebox-image -ivt 0
SDP: jump -f barebox-image
CFG: FB: -chip imx -pid 0x0104 -vid 0x1d6b
FB: flash kernel linuximage
FB: flash devicetree imx.dtb
FB: flash initrd root.cpio.gz
FB: oem exec global linux.bootargs.fa=rdinit=/linuxrc
FB: oem exec bootm
FBK: ucmd echo "Hello World"
FBK: done
```

 .../0001-sh-does-not-support-array-syntax.patch| 117 +
 .../series |   4 +
 rules/host-libzip.in   |   8 ++
 rules/host-libzip.make |  11 ++
 rules/host-mfgtools.in |  13 +++
 rules/host-mfgtools.make   |  41 
 rules/imx-uuc.in   |   7 ++
 rules/imx-uuc.make |  60 +++
 8 files changed, 261 insertions(+)




Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/

___
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] [PATCH v2 2/3] host-libzip: new package

2020-03-26 Thread Denis Osterland-Heim
Signed-off-by: Denis Osterland-Heim 
---
 rules/host-libzip.in   |  8 
 rules/host-libzip.make | 11 +++
 2 files changed, 19 insertions(+)
 create mode 100644 rules/host-libzip.in
 create mode 100644 rules/host-libzip.make

diff --git a/rules/host-libzip.in b/rules/host-libzip.in
new file mode 100644
index 0..14689309f
--- /dev/null
+++ b/rules/host-libzip.in
@@ -0,0 +1,8 @@
+## SECTION=hosttools_noprompt
+
+config HOST_LIBZIP
+   tristate
+   select HOST_CMAKE
+   select HOST_ZLIB
+   select HOST_BZIP2
+   default y if ALLYES
diff --git a/rules/host-libzip.make b/rules/host-libzip.make
new file mode 100644
index 0..54b16cad0
--- /dev/null
+++ b/rules/host-libzip.make
@@ -0,0 +1,11 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Denis Osterland-Heim 
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+HOST_PACKAGES-$(PTXCONF_HOST_LIBZIP) += host-libzip
+
+# vim: syntax=make
-- 
2.26.0



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/

___
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] [PATCH v2 1/3] imx-uuc: new package

2020-03-26 Thread Denis Osterland-Heim
NXP user space util used by mfgtool.

Signed-off-by: Denis Osterland-Heim 
---
 ...001-sh-does-not-support-array-syntax.patch | 117 ++
 .../series|   4 +
 rules/imx-uuc.in  |   7 ++
 rules/imx-uuc.make|  60 +
 4 files changed, 188 insertions(+)
 create mode 100644 
patches/imx-uuc-0.0-1-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/0001-sh-does-not-support-array-syntax.patch
 create mode 100644 
patches/imx-uuc-0.0-1-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/series
 create mode 100644 rules/imx-uuc.in
 create mode 100644 rules/imx-uuc.make

diff --git 
a/patches/imx-uuc-0.0-1-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/0001-sh-does-not-support-array-syntax.patch
 
b/patches/imx-uuc-0.0-1-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/0001-sh-does-not-support-array-syntax.patch
new file mode 100644
index 0..995baea19
--- /dev/null
+++ 
b/patches/imx-uuc-0.0-1-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/0001-sh-does-not-support-array-syntax.patch
@@ -0,0 +1,117 @@
+From: Denis Osterland-Heim 
+Date: Thu, 12 Mar 2020 17:36:22 +0100
+Subject: [PATCH] sh does not support array syntax
+
+Remove NFS support, because it uses additional arrays and it is not
+tested.
+
+Signed-off-by: Denis Osterland-Heim 
+---
+ linuxrc | 72 ++---
+ 1 file changed, 6 insertions(+), 66 deletions(-)
+
+diff --git a/linuxrc b/linuxrc
+index 54bb8a2cbbd8..1f15e3cbdff3 100755
+--- a/linuxrc
 b/linuxrc
+@@ -16,20 +16,8 @@ last=0;
+ 
+ UDC_DIR=/sys/class/udc
+ 
+-function launch_dhcpd() {
+-
+-  touch -f /var/lib/misc/udhcpd.leases
+-  echo start  168.1.1.50 > /conf
+-  echo end168.1.1.253 >> /conf
+-  echo interface usb$1>>/conf
+-
+-  ifconfig usb$1 168.1.1.1
+-  udhcpd /conf
+-
+-}
+-
+ function contains() {
+-  for i in "${files[@]}"
++  for i in $files
+   do
+   if [ "$i" == "$1" ]; then
+   return 1;
+@@ -45,7 +33,8 @@ function launch_uuc() {
+   echo 0x066F > idVendor
+ 
+   if [[ ${cmdline} == *nfsroot* ]]; then
+-  echo 0x9CFF > idProduct
++  echo "unsupported"
++  exit 1
+   else
+   echo 0x9BFF > idProduct
+   fi
+@@ -69,57 +58,8 @@ function launch_uuc() {
+   echo 0x40 > os_desc/b_vendor_code
+ 
+   if [[ ${cmdline} == *nfsroot* ]]; then
+-  mkdir functions/ncm.1
+-  ln -s functions/ncm.1 configs/c.1/
+-# mkdir functions/acm.1
+-# ln -s functions/acm.1 configs/c.1/
+-  echo $1 > UDC
+-
+-  echo "Start config network"
+-
+-ifconfig usb$2 up
+-while [ ! -e /find_one ]
+-do
+-if [[ `ifconfig usb$2` == *inet6* ]]; then
+-  break;
+-  fi
+-  sleep 1
+-done
+-
+-  if [ -e /find_one ]; then
+-  exit 0
+-  fi
+-
+-  touch /find_one
+-
+-  launch_dhcpd $2
+-
+-  remote=""
+-  while [[ "$remote" == "" ]];
+-  do
+-  sleep 2
+-  echo retry get remote ipaddress
+-  ping6 -c2 -I usb$2 ff02::1
+-
+-  remote=`ip -6 neighbor show dev usb$2`
+-  remote=(${remote})
+-  remote=${remote[0]}
+-  done
+-
+-nfs=${cmdline#*nfsroot=}
+-nfs=($nfs)
+-nfs=${nfs[0]}
+-
+-  nfs=${nfs##*:}
+-
+-echo ${remote} ${nfs}
+-
+-  mount -t nfs [${remote}%usb$2]:${nfsroot}/${nfs} /mnt/
+-
+-cd /
+-
+-  touch /exit_scan
+-
++  echo "unsuppored"
++  exit 1
+   else
+   mkdir functions/ffs.utp$2
+   mkdir /dev/usb-utp$2
+@@ -161,7 +101,7 @@ if test "$(ls -A "$UDC_DIR")"; then
+   for entry in *
+   do
+   if contains $entry; then
+-  files[$last]=$entry;
++  files="$files $entry";
+   id=$last;
+   last=`expr $last + 1`;
+   echo "Found New UDC: $entry";
diff --git 
a/patches/imx-uuc-0.0-1-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/series 
b/patches/imx-uuc-0.0-1-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/series
new file mode 100644
index 0..125c531a3
--- /dev/null
+++ b/patches/imx-uuc-0.0-1-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-sh-does-not-sup

[ptxdist] [PATCH v2 3/3] host-mfgtools: new package

2020-03-26 Thread Denis Osterland-Heim
Tool to USB boot i.MX systems from NXP via Android fastboot.

Signed-off-by: Denis Osterland-Heim 
---
 rules/host-mfgtools.in   | 13 +
 rules/host-mfgtools.make | 41 
 2 files changed, 54 insertions(+)
 create mode 100644 rules/host-mfgtools.in
 create mode 100644 rules/host-mfgtools.make

diff --git a/rules/host-mfgtools.in b/rules/host-mfgtools.in
new file mode 100644
index 0..c9046f10d
--- /dev/null
+++ b/rules/host-mfgtools.in
@@ -0,0 +1,13 @@
+## SECTION=hosttools
+
+config HOST_MFGTOOLS
+   tristate
+   default y if ALLYES
+   prompt "uuu (Universal Update Utility), mfgtools 3.0"
+   select HOST_CMAKE
+   select HOST_LIBUSB
+   select HOST_ZLIB
+   select HOST_BZIP2
+   select HOST_LIBZIP
+   help
+ Freescale/NXP I.MX Chip image deploy tools.
diff --git a/rules/host-mfgtools.make b/rules/host-mfgtools.make
new file mode 100644
index 0..f9429ce1e
--- /dev/null
+++ b/rules/host-mfgtools.make
@@ -0,0 +1,41 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Denis Osterland-Heim 
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+HOST_PACKAGES-$(PTXCONF_HOST_MFGTOOLS) += host-mfgtools
+
+#
+# Paths and names
+#
+HOST_MFGTOOLS_VERSION  := 1.3.154
+HOST_MFGTOOLS_MD5  := dd97a479db92b70a36c15d834f1e503c
+HOST_MFGTOOLS  := mfgtools-$(HOST_MFGTOOLS_VERSION)
+HOST_MFGTOOLS_SUFFIX   := tar.gz
+HOST_MFGTOOLS_URL  := 
https://github.com/NXPmicro/mfgtools/archive/uuu_$(HOST_MFGTOOLS_VERSION).$(HOST_MFGTOOLS_SUFFIX)
+HOST_MFGTOOLS_SOURCE   := $(SRCDIR)/$(HOST_MFGTOOLS).$(HOST_MFGTOOLS_SUFFIX)
+HOST_MFGTOOLS_DIR  := $(HOST_BUILDDIR)/$(HOST_MFGTOOLS)
+HOST_MFGTOOLS_LICENSE  := BSD-3-Clause
+HOST_MFGTOOLS_LICENSE_FILES:= \
+   file://LICENSE;md5=38ec0c18112e9a92cffc4951661e85a5
+
+# 
+# Extract
+# 
+
+$(STATEDIR)/host-mfgtools.extract.post:
+   @$(call targetinfo)
+   @$(call world/patchin/post, HOST_MFGTOOLS)
+   @echo "uuu_$(HOST_MFGTOOLS_VERSION)" > 
$(HOST_MFGTOOLS_DIR)/.tarball-version
+   @$(call touch)
+
+# 
+# Prepare
+# 
+
+HOST_MFGTOOLS_CONF_TOOL:= cmake
+
+# vim: syntax=make
-- 
2.26.0



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/

___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [RFC PATCH 1/3] imx-uuc: new package

2020-03-26 Thread Denis Osterland-Heim
Hi Michael,

Am Donnerstag, den 26.03.2020, 17:23 +0100 schrieb Michael Olbrich:
> On Thu, Mar 26, 2020 at 09:03:58AM +0000, Denis Osterland-Heim wrote:
> > Am Mittwoch, den 25.03.2020, 21:40 +0100 schrieb Roland Hieber:
> > > On Wed, Mar 25, 2020 at 07:52:54PM +0100, Roland Hieber wrote:
> > > > Nitpick: I don't know how picky opkg-based systems are with having
> > > > monotonically increasing version numbers, but in case someone uses them
> > > > to update software in the field, you could make them happy by providing
> > > > a fake 'git describe' tag as a version:
> > > > 
> > > > IMX_UUC_VERSION:= 0.0-1-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc
> > > > 
> > > > and then increase the -1 every time for a version bump. This way git
> > > > can extract the commit ID from the version info and opkg versions are
> > > > increasing monotonically. The MD5 will be different though.
> > 
> > Cool. I will apply.
> 
> Please use the Date of the Last commit. Also: github can produce stable
> tarballs for any commit. Take a look at how this is handled in glslang.make
> for example.
Looks perfect!
Thanks, then I will switch to that.

Regards Denis

> 
> Michael
> 


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/
___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [RFC PATCH 3/3] host-mfgtools: new package

2020-03-26 Thread Denis Osterland-Heim
Hi Michael,

Am Donnerstag, den 26.03.2020, 17:16 +0100 schrieb Michael Olbrich:
> On Thu, Mar 26, 2020 at 08:28:26AM +0000, Denis Osterland-Heim wrote:
> > Hi Roland,
> > 
> > sorry for the confusion yesterday, seems it was to late for me...
> > 
> > Am Mittwoch, den 25.03.2020, 19:33 +0100 schrieb Roland Hieber:
> > > On Tue, Mar 24, 2020 at 02:53:23PM +, Denis Osterland-Heim wrote:
> > > > Tool to USB boot i.MX systems from NXP via Android fastboot.
> > > > 
...
> > > > +
> > > > +# 
> > > > 
> > > > +# Extract
> > > > +# 
> > > > 
> > > > +
> > > > +$(STATEDIR)/host-mfgtools.extract:
> > > > +   @$(call targetinfo)
> > > > +   @$(call clean, $(HOST_MFGTOOLS_DIR))
> > > > +   @$(call extract, HOST_MFGTOOLS)
> > > > +   @echo "uuu_$(HOST_MFGTOOLS_VERSION)" > 
> > > > $(HOST_MFGTOOLS_DIR)/.tarball-version
> > > 
> > > NB: The released tarballs also don't have this file, is it really needed?
> > 
> > Unfortunately it is still need, until upstream generates a tarball with the 
> > file.
> > https://github.com/NXPmicro/mfgtools/issues/173
> 
> Do this in extract.post not extract.
Okay.

Regards Denis

> 
> Michael
> 
> > Regards Denis
> > 
> > > 
> > >  - Roland
> > > 
> > > > +   @$(call patchin, HOST_MFGTOOLS)
> > > > +   @$(call touch)
> > > > +
> > > > +# 
> > > > 
> > > > +# Prepare
> > > > +# 
> > > > 
> > > > +
> > > > +HOST_MFGTOOLS_CONF_TOOL:= cmake
> > > > +
> > > > +# vim: syntax=make
> > > > -- 
> > > > 2.25.2
> > > > 
> > > > 
> > > > 
> > > > Diehl Connectivity Solutions GmbH
> > > > Geschäftsführung: Horst Leonberger
> > > > Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
> > > > Nürnberg: HRB 32315
> > > > ___
> > > > 
> > > > Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese 
> > > > E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte 
> > > > Informationen.
> > > > Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise 
> > > > erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
> > > > Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, 
> > > > Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt.
> > > > - Informationen zum Datenschutz, insbesondere zu Ihren Rechten, 
> > > > erhalten Sie unter 
> > > > https://www.diehl.com/group/de/transparenz-und-informationspflichten/
> > > > 
> > > > The contents of the above mentioned e-mail is not legally binding. This 
> > > > e-mail contains confidential and/or legally protected information. 
> > > > Please inform us if you have received this e-mail by
> > > > mistake and delete it in such a case. Each unauthorized reproduction, 
> > > > disclosure, alteration, distribution and/or publication of this e-mail 
> > > > is strictly prohibited. 
> > > > - For general information on data protection and your respective rights 
> > > > please visit 
> > > > https://www.diehl.com/group/en/transparency-and-information-obligations/
> > > > 
> > > > ___
> > > > ptxdist mailing list
> > > > ptxdist@pengutronix.de
> > > > 
> > > 
> > > 
> > 
> > 
> > Diehl Connectivity Solutions GmbH
> > Geschäftsführung: Horst Leonberger
> > Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
> > Nürnberg: HRB 32315
> > ___
> > 
> > Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese 
> > E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
> > Informieren Sie uns 

Re: [ptxdist] [RFC PATCH 1/3] imx-uuc: new package

2020-03-26 Thread Denis Osterland-Heim
Hi Roland,

Am Mittwoch, den 25.03.2020, 21:40 +0100 schrieb Roland Hieber:
> On Wed, Mar 25, 2020 at 07:52:54PM +0100, Roland Hieber wrote:
> > On Wed, Mar 25, 2020 at 07:43:46PM +0100, Roland Hieber wrote:
> > > On Tue, Mar 24, 2020 at 02:53:23PM +0000, Denis Osterland-Heim wrote:
> > > > NXP user space util used by mfgtool.
> > > > 
> > > > Signed-off-by: Denis Osterland-Heim 
> > > > ---
> > > >  rules/imx-uuc.in   |  7 ++
> > > >  rules/imx-uuc.make | 62 ++
> > > >  2 files changed, 69 insertions(+)
> > > >  create mode 100644 rules/imx-uuc.in
> > > >  create mode 100644 rules/imx-uuc.make
> > > > 
> > > > diff --git a/rules/imx-uuc.in b/rules/imx-uuc.in
> > > > new file mode 100644
> > > > index 0..ec0cbcd3a
> > > > --- /dev/null
> > > > +++ b/rules/imx-uuc.in
> > > > @@ -0,0 +1,7 @@
> > > > +## SECTION=communication
> > > > +
> > > > +config IMX_UUC
> > > > +   tristate
> > > > +   prompt "imx-uuc"
> > > > +   help
> > > > + A Daemon wait for Freescale/NXP mfgtools host's command.
> 
> Oh, and also keep the tabs as indentation here, not spaces (except for
> the two spaces before the help text).
Yes, of course. It are tabs. When I select it, it is bigger than one space.

> 
> > > > diff --git a/rules/imx-uuc.make b/rules/imx-uuc.make
> > > > new file mode 100644
> > > > index 0..d275ec8af
> > > > --- /dev/null
> > > > +++ b/rules/imx-uuc.make
> > > > @@ -0,0 +1,62 @@
> > > > +# -*-makefile-*-
> > > > +#
> > > > +# Copyright (C) 2016-2020 by Denis Osterland 
> > > > 
> > > > +#
> > > > +# See CREDITS for details about who has contributed to this project.
> > > 
> > > This line keeps coming back to haunt us… :)
> > > https://git.pengutronix.de/cgit/ptxdist/commit?h=cbd6bda680c6
I see. I will remove it. It is lying around since 2016.

> > > 
> > > > +#
> > > > +# For further information about the PTXdist project and license 
> > > > conditions
> > > > +# see the README file.
> > > > +#
> > > > +
> > > > +PACKAGES-$(PTXCONF_IMX_UUC) += imx-uuc
> > > > +
> > > > +#
> > > > +# Paths and names
> > > > +#
> > > > +IMX_UUC_VERSION:= d6afb27e55d73d7ad08cd2dd51c784d8ec9694dc
> > > > +IMX_UUC_MD5:= 1a807ab59464385309b92794b43b5caa
> 
> Same here: tabs for alignment before the :=.
I will change it.

> 
> > Sorry, I slipped while writing the mail. What I wanted to write in the
> > first place:
> > 
> > Nitpick: I don't know how picky opkg-based systems are with having
> > monotonically increasing version numbers, but in case someone uses them
> > to update software in the field, you could make them happy by providing
> > a fake 'git describe' tag as a version:
> > 
> > IMX_UUC_VERSION:= 0.0-1-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc
> > 
> > and then increase the -1 every time for a version bump. This way git
> > can extract the commit ID from the version info and opkg versions are
> > increasing monotonically. The MD5 will be different though.
Cool. I will apply.

I hope for a release, but looks not promising.
https://github.com/NXPmicro/imx-uuc/issues/12

> > 
> >  - Roland
> > 
> > > > +IMX_UUC:= imx-uuc-$(IMX_UUC_VERSION)
> > > > +IMX_UUC_SUFFIX := tar.gz
> > > > +IMX_UUC_URL:= 
> > > > https://github.com/NXPmicro/imx-uuc.git;tag=$(IMX_UUC_VERSION)
> > > > +IMX_UUC_SOURCE := $(SRCDIR)/$(IMX_UUC).$(IMX_UUC_SUFFIX)
> > > > +IMX_UUC_DIR:= $(BUILDDIR)/$(IMX_UUC)
> > > > +IMX_UUC_LICENSE:= GPL-2.0-or-later
> > > > +IMX_UUC_LICENSE_FILES  := \
> > > > +   file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263
> > > > +
> > > > +# 
> > > > 
> > > > +# Prepare
> > > > +# 
> > > > 
> > > > +
> > > > +IMX_UUC_CONF_TOOL  := NO
> > > > +
> > > > +# 
> > > > 
> > > 

Re: [ptxdist] [RFC PATCH 3/3] host-mfgtools: new package

2020-03-26 Thread Denis Osterland-Heim
Hi Roland,

sorry for the confusion yesterday, seems it was to late for me...

Am Mittwoch, den 25.03.2020, 19:33 +0100 schrieb Roland Hieber:
> On Tue, Mar 24, 2020 at 02:53:23PM +0000, Denis Osterland-Heim wrote:
> > Tool to USB boot i.MX systems from NXP via Android fastboot.
> > 
> > Signed-off-by: Denis Osterland-Heim 
> > ---
> >  rules/host-mfgtools.in   | 13 
> >  rules/host-mfgtools.make | 43 
> >  2 files changed, 56 insertions(+)
> >  create mode 100644 rules/host-mfgtools.in
> >  create mode 100644 rules/host-mfgtools.make
> > 
> > diff --git a/rules/host-mfgtools.in b/rules/host-mfgtools.in
> > new file mode 100644
> > index 0..c9046f10d
> > --- /dev/null
> > +++ b/rules/host-mfgtools.in
> > @@ -0,0 +1,13 @@
> > +## SECTION=hosttools
> > +
> > +config HOST_MFGTOOLS
> > +   tristate
> > +   default y if ALLYES
> > +   prompt "uuu (Universal Update Utility), mfgtools 3.0"
> > +   select HOST_CMAKE
> > +   select HOST_LIBUSB
> > +   select HOST_ZLIB
> > +   select HOST_BZIP2
> > +   select HOST_LIBZIP
> > +   help
> > + Freescale/NXP I.MX Chip image deploy tools.
> > diff --git a/rules/host-mfgtools.make b/rules/host-mfgtools.make
> > new file mode 100644
> > index 0..fb4b2cf05
> > --- /dev/null
> > +++ b/rules/host-mfgtools.make
> > @@ -0,0 +1,43 @@
> > +# -*-makefile-*-
> > +#
> > +# Copyright (C) 2020 by Denis Osterland-Heim 
> > +#
> > +# For further information about the PTXdist project and license conditions
> > +# see the README file.
> > +#
> > +
> > +HOST_PACKAGES-$(PTXCONF_HOST_MFGTOOLS) += host-mfgtools
> > +
> > +#
> > +# Paths and names
> > +#
> > +HOST_MFGTOOLS_VERSION  := 1.3.136-9-g47ddef5
> 
> Apparently this commit was released a few days ago as version 1.3.154:
> <https://github.com/NXPmicro/mfgtools/releases>
I have already changed it locally, v2 will come ;-)

> 
> > +HOST_MFGTOOLS_MD5  := 1555253943e1f39746694365c7f89eb1
> > +HOST_MFGTOOLS  := mfgtools-$(HOST_MFGTOOLS_VERSION)
> > +HOST_MFGTOOLS_SUFFIX   := tar.gz
> > +HOST_MFGTOOLS_URL  := 
> > https://github.com/NXPmicro/mfgtools.git;tag=47ddef51d6c24b1f917f348d0f62b4af38852994
> 
> So you can use the default release tarball here, and use the default
> extract stage below.
Not yet, but hopefully with next version.

> 
> > +HOST_MFGTOOLS_SOURCE   := 
> > $(SRCDIR)/$(HOST_MFGTOOLS).$(HOST_MFGTOOLS_SUFFIX)
> > +HOST_MFGTOOLS_DIR  := $(HOST_BUILDDIR)/$(HOST_MFGTOOLS)
> > +HOST_MFGTOOLS_LICENSE  := BSD-3-Clause
> > +HOST_MFGTOOLS_LICENSE_FILES:= \
> > +   file://LICENSE;md5=38ec0c18112e9a92cffc4951661e85a5
> > +
> > +# 
> > 
> > +# Extract
> > +# 
> > 
> > +
> > +$(STATEDIR)/host-mfgtools.extract:
> > +   @$(call targetinfo)
> > +   @$(call clean, $(HOST_MFGTOOLS_DIR))
> > +   @$(call extract, HOST_MFGTOOLS)
> > +   @echo "uuu_$(HOST_MFGTOOLS_VERSION)" > 
> > $(HOST_MFGTOOLS_DIR)/.tarball-version
> 
> NB: The released tarballs also don't have this file, is it really needed?
Unfortunately it is still need, until upstream generates a tarball with the 
file.
https://github.com/NXPmicro/mfgtools/issues/173

Regards Denis

> 
>  - Roland
> 
> > +   @$(call patchin, HOST_MFGTOOLS)
> > +   @$(call touch)
> > +
> > +# 
> > 
> > +# Prepare
> > +# 
> > 
> > +
> > +HOST_MFGTOOLS_CONF_TOOL:= cmake
> > +
> > +# vim: syntax=make
> > -- 
> > 2.25.2
> > 
> > 
> > 
> > Diehl Connectivity Solutions GmbH
> > Geschäftsführung: Horst Leonberger
> > Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
> > Nürnberg: HRB 32315
> > ___
> > 
> > Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese 
> > E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
> > Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise 
> > erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
> > Jede unerlaubte Form der Reproduktion, 

[ptxdist] [RFC PATCH 0/3] Freescale/NXP i.MX mfgtools 3.0

2020-03-24 Thread Denis Osterland-Heim
Hi,

this patch series adds support for the Freescale/NXP mfgtools 3.0.
You can use them with vanilla kernel and barebox.

There are two known issues:
 - the git downloads => no stable md5 sum
 - the linuxrc provided by imx-uuc uses array syntax

I have a version of the linuxrc script where I replaced the array
stuff with blank separation, but not sure if this should be put as
projectroot/linuxrc in ptxdist.

Here are some examples how to use it. I have tested it with a i.MX6ull EVK
barebox-2020.02.0 and linux-5.4.25.

The command `uuu barebox-image` is equivalent to `imx-usb-loader barebox-image`.

The example
https://www.barebox.org/doc/latest/user/usb.html#android-fastboot-support
can be done with a `uuu boot.uu` command.
boot.uu:
```
uuu_version 1.0.1
CFG: FB: -chip imx -pid 0x0104 -vid 0x1d6b
FB: flash kernel linuximage
FB: flash devicetree imx.dtb
FB: flash initrd root.cpio.gz
FB: oem exec global linux.bootargs.fa=rdinit=/sbin/init
FB: oem exec bootm
FB: done
```

To run a shell command a kernel with USB gadgets/functionfs enabled
and imx-uuc install on target is needed.
This is an example of whole USB boot sequence and a command
executed in linux user space.
To see the output of the echo, the command is `uuu -v hello.uu`
hello.uu:
```
uuu_version 1.0.1
SDP: dcd -f barebox-image
SDP: write -f barebox-image -ivt 0
SDP: jump -f barebox-image
CFG: FB: -chip imx -pid 0x0104 -vid 0x1d6b
FB: flash kernel linuximage
FB: flash devicetree imx.dtb
FB: flash initrd root.cpio.gz
FB: oem exec global linux.bootargs.fa=rdinit=/linuxrc
FB: oem exec bootm
FBK: ucmd echo "Hello World"
FBK: done
```

 rules/host-libzip.in |  8 +++
 rules/host-libzip.make   | 11 +
 rules/host-mfgtools.in   | 13 ++
 rules/host-mfgtools.make | 43 +
 rules/imx-uuc.in |  7 ++
 rules/imx-uuc.make   | 62 
 6 files changed, 144 insertions(+)




Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/

___
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] [RFC PATCH 1/3] imx-uuc: new package

2020-03-24 Thread Denis Osterland-Heim
NXP user space util used by mfgtool.

Signed-off-by: Denis Osterland-Heim 
---
 rules/imx-uuc.in   |  7 ++
 rules/imx-uuc.make | 62 ++
 2 files changed, 69 insertions(+)
 create mode 100644 rules/imx-uuc.in
 create mode 100644 rules/imx-uuc.make

diff --git a/rules/imx-uuc.in b/rules/imx-uuc.in
new file mode 100644
index 0..ec0cbcd3a
--- /dev/null
+++ b/rules/imx-uuc.in
@@ -0,0 +1,7 @@
+## SECTION=communication
+
+config IMX_UUC
+   tristate
+   prompt "imx-uuc"
+   help
+ A Daemon wait for Freescale/NXP mfgtools host's command.
diff --git a/rules/imx-uuc.make b/rules/imx-uuc.make
new file mode 100644
index 0..d275ec8af
--- /dev/null
+++ b/rules/imx-uuc.make
@@ -0,0 +1,62 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016-2020 by Denis Osterland 
+#
+# 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.
+#
+
+PACKAGES-$(PTXCONF_IMX_UUC) += imx-uuc
+
+#
+# Paths and names
+#
+IMX_UUC_VERSION:= d6afb27e55d73d7ad08cd2dd51c784d8ec9694dc
+IMX_UUC_MD5:= 1a807ab59464385309b92794b43b5caa
+IMX_UUC:= imx-uuc-$(IMX_UUC_VERSION)
+IMX_UUC_SUFFIX := tar.gz
+IMX_UUC_URL:= 
https://github.com/NXPmicro/imx-uuc.git;tag=$(IMX_UUC_VERSION)
+IMX_UUC_SOURCE := $(SRCDIR)/$(IMX_UUC).$(IMX_UUC_SUFFIX)
+IMX_UUC_DIR:= $(BUILDDIR)/$(IMX_UUC)
+IMX_UUC_LICENSE:= GPL-2.0-or-later
+IMX_UUC_LICENSE_FILES  := \
+   file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263
+
+# 
+# Prepare
+# 
+
+IMX_UUC_CONF_TOOL  := NO
+
+# 
+# Compile
+# 
+
+IMX_UUC_MAKE_ENV   := $(CROSS_ENV)
+
+# 
+# Target-Install
+# 
+
+$(STATEDIR)/imx-uuc.targetinstall:
+   @$(call targetinfo)
+
+   @$(call install_init, imx-uuc)
+   @$(call install_fixup, imx-uuc,PRIORITY,optional)
+   @$(call install_fixup, imx-uuc,SECTION,base)
+   @$(call install_fixup, imx-uuc,AUTHOR,"Denis Osterland 
")
+   @$(call install_fixup, imx-uuc,DESCRIPTION,missing)
+
+   @$(call install_copy, imx-uuc, 0, 0, 0755, -, /usr/bin/uuc)
+   @$(call install_copy, imx-uuc, 0, 0, 0755, -, /usr/bin/ufb)
+   @$(call install_copy, imx-uuc, 0, 0, 0755, -, /usr/bin/sdimage)
+   @$(call install_alternative, imx-uuc, 0, 0, 0755, /linuxrc)
+   @$(call install_alternative, imx-uuc, 0, 0, 0644, /fat)
+
+   @$(call install_finish, imx-uuc)
+
+   @$(call touch)
+
+# vim: syntax=make
-- 
2.25.2



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/

___
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] [RFC PATCH 3/3] host-mfgtools: new package

2020-03-24 Thread Denis Osterland-Heim
Tool to USB boot i.MX systems from NXP via Android fastboot.

Signed-off-by: Denis Osterland-Heim 
---
 rules/host-mfgtools.in   | 13 
 rules/host-mfgtools.make | 43 
 2 files changed, 56 insertions(+)
 create mode 100644 rules/host-mfgtools.in
 create mode 100644 rules/host-mfgtools.make

diff --git a/rules/host-mfgtools.in b/rules/host-mfgtools.in
new file mode 100644
index 0..c9046f10d
--- /dev/null
+++ b/rules/host-mfgtools.in
@@ -0,0 +1,13 @@
+## SECTION=hosttools
+
+config HOST_MFGTOOLS
+   tristate
+   default y if ALLYES
+   prompt "uuu (Universal Update Utility), mfgtools 3.0"
+   select HOST_CMAKE
+   select HOST_LIBUSB
+   select HOST_ZLIB
+   select HOST_BZIP2
+   select HOST_LIBZIP
+   help
+ Freescale/NXP I.MX Chip image deploy tools.
diff --git a/rules/host-mfgtools.make b/rules/host-mfgtools.make
new file mode 100644
index 0..fb4b2cf05
--- /dev/null
+++ b/rules/host-mfgtools.make
@@ -0,0 +1,43 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Denis Osterland-Heim 
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+HOST_PACKAGES-$(PTXCONF_HOST_MFGTOOLS) += host-mfgtools
+
+#
+# Paths and names
+#
+HOST_MFGTOOLS_VERSION  := 1.3.136-9-g47ddef5
+HOST_MFGTOOLS_MD5  := 1555253943e1f39746694365c7f89eb1
+HOST_MFGTOOLS  := mfgtools-$(HOST_MFGTOOLS_VERSION)
+HOST_MFGTOOLS_SUFFIX   := tar.gz
+HOST_MFGTOOLS_URL  := 
https://github.com/NXPmicro/mfgtools.git;tag=47ddef51d6c24b1f917f348d0f62b4af38852994
+HOST_MFGTOOLS_SOURCE   := $(SRCDIR)/$(HOST_MFGTOOLS).$(HOST_MFGTOOLS_SUFFIX)
+HOST_MFGTOOLS_DIR  := $(HOST_BUILDDIR)/$(HOST_MFGTOOLS)
+HOST_MFGTOOLS_LICENSE  := BSD-3-Clause
+HOST_MFGTOOLS_LICENSE_FILES:= \
+   file://LICENSE;md5=38ec0c18112e9a92cffc4951661e85a5
+
+# 
+# Extract
+# 
+
+$(STATEDIR)/host-mfgtools.extract:
+   @$(call targetinfo)
+   @$(call clean, $(HOST_MFGTOOLS_DIR))
+   @$(call extract, HOST_MFGTOOLS)
+   @echo "uuu_$(HOST_MFGTOOLS_VERSION)" > 
$(HOST_MFGTOOLS_DIR)/.tarball-version
+   @$(call patchin, HOST_MFGTOOLS)
+   @$(call touch)
+
+# 
+# Prepare
+# 
+
+HOST_MFGTOOLS_CONF_TOOL:= cmake
+
+# vim: syntax=make
-- 
2.25.2



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/

___
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] [RFC PATCH 2/3] host-libzip: new package

2020-03-24 Thread Denis Osterland-Heim
Signed-off-by: Denis Osterland-Heim 
---
 rules/host-libzip.in   |  8 
 rules/host-libzip.make | 11 +++
 2 files changed, 19 insertions(+)
 create mode 100644 rules/host-libzip.in
 create mode 100644 rules/host-libzip.make

diff --git a/rules/host-libzip.in b/rules/host-libzip.in
new file mode 100644
index 0..14689309f
--- /dev/null
+++ b/rules/host-libzip.in
@@ -0,0 +1,8 @@
+## SECTION=hosttools_noprompt
+
+config HOST_LIBZIP
+   tristate
+   select HOST_CMAKE
+   select HOST_ZLIB
+   select HOST_BZIP2
+   default y if ALLYES
diff --git a/rules/host-libzip.make b/rules/host-libzip.make
new file mode 100644
index 0..54b16cad0
--- /dev/null
+++ b/rules/host-libzip.make
@@ -0,0 +1,11 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Denis Osterland-Heim 
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+HOST_PACKAGES-$(PTXCONF_HOST_LIBZIP) += host-libzip
+
+# vim: syntax=make
-- 
2.25.2



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/

___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH] systemd: install systemd-timesync.list in ntp-units.d

2020-01-02 Thread Denis OSTERLAND
Hi Clemens,

Am Montag, den 23.12.2019, 15:45 +0100 schrieb Clemens Gruber:
> When systemd-timesyncd is used, there should be an entry in ntp-units.d.
> Otherwise, timedatectl set-ntp sometimes fails with "NTP not supported".
> 
> Signed-off-by: Clemens Gruber 
> ---
>  projectroot/usr/lib/systemd/ntp-units.d/80-systemd-timesync.list | 1 +
>  rules/systemd.make   | 1 +
>  2 files changed, 2 insertions(+)
>  create mode 100644 
> projectroot/usr/lib/systemd/ntp-units.d/80-systemd-timesync.list
> 
> diff --git a/projectroot/usr/lib/systemd/ntp-units.d/80-systemd-timesync.list 
> b/projectroot/usr/lib/systemd/ntp-units.d/80-systemd-timesync.list
> new file mode 100644
> index 0..d5959ade8
> --- /dev/null
> +++ b/projectroot/usr/lib/systemd/ntp-units.d/80-systemd-timesync.list
> @@ -0,0 +1 @@
> +systemd-timesyncd.service
> diff --git a/rules/systemd.make b/rules/systemd.make
> index 5564d893f..6b7ec83ab 100644
> --- a/rules/systemd.make
> +++ b/rules/systemd.make
> @@ -432,6 +432,7 @@ ifdef PTXCONF_SYSTEMD_TIMEDATE
>   /var/lib/systemd/timesync)
>   @$(call install_link, systemd, ../systemd-timesyncd.service,  \
>   
> /usr/lib/systemd/system/sysinit.target.wants/systemd-timesyncd.service)
> + @$(call install_tree, systemd, 0, 0, -, /usr/lib/systemd/ntp-units.d/)
why install_tree and not install_alternative just this file?
Is there no other valid content of this file?
Is it unlikely that other packages will install to this directory?

Regards Denis
>  endif
>  
>  ifdef PTXCONF_SYSTEMD_VCONSOLE


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/
___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH v5 1/2] u-boot: generate environment image

2019-11-26 Thread Denis OSTERLAND
Hi,

thanks for your effort and time to implement this additional use-case

Regards Denis

Am Montag, den 25.11.2019, 19:03 +0100 schrieb Bruno Thomsen:
> Add possiblity to generate a default or a custom environment
> image. Image can be used during manufacturing to avoid bootloader
> console usage and speed up first boot. Other image use-cases
> include device development edition, device demonstration
> mode, etc.
> 
> Custom environment image is generated from an user provided
> config file with one 'var=value' per line format. Input config
> file name is configurable.
> 
> Cc: Denis OSTERLAND 
> Cc: Alexander Dahl 
> Signed-off-by: Bruno Thomsen 
Tested-by: Denis Osterland 

> ---
> v5:
> - split imx dtb image cleanup into bugfix patch
> - removed remove quotes in statedir
> - remove quetes in platformconfigdir
> - common prefix defines
> - common env image name
> - remove custom env image install and clean
> v4:
> - u-boot version limitation help.
> - env image size is now Kconfig hex input
> - custom env source file is now stored in platformconfigdir
> - changes in custom env source file trigger rebuild
> - use default mkenvimage pad
> - cleanup of env images
> - fix missing cleanup of imx dtb image
> v3:
> - remove multiple env images support
> - use static image names
> - rebase patches on top of: u-boot: Build out-of-tree
> v2:
> - remove HOST_U_BOOT_TOOLS dependency
> - configurable default env image name
> - add custom env image generation option
> - move all options to sub menu
> 
>  platforms/u-boot.in | 61 +
>  rules/u-boot.make   | 25 +++
>  2 files changed, 86 insertions(+)
> 
> diff --git a/platforms/u-boot.in b/platforms/u-boot.in
> index 9bac4a758..21baf7c72 100644
> --- a/platforms/u-boot.in
> +++ b/platforms/u-boot.in
> @@ -71,6 +71,67 @@ config U_BOOT_CONFIG
>  
>  endif
>  
> +choice
> + prompt "Generate environment image"
> + default U_BOOT_ENV_IMAGE_NONE
> + help
> +   U-Boot from version 2018.03 support out-of-tree environment
> +   image generation.
> +
> +config U_BOOT_ENV_IMAGE_NONE
> + prompt "none"
> + bool
> + help
> +   Don't generate an U-Boot environment image.
> +
> +config U_BOOT_ENV_IMAGE_DEFAULT
> + prompt "default"
> + bool
> + help
> +   Use U-Boot's mkenvimage to compile a default U-Boot environment
> +   image for use in e.g. device manufacturing or development.
> +
> +config U_BOOT_ENV_IMAGE_CUSTOM
> + prompt "custom"
> + bool
> + help
> +   Use U-Boot's mkenvimage to compile a custom U-Boot environment
> +   image based on the text file in U_BOOT_ENV_IMAGE_CUSTOM_SOURCE
> +   for use in e.g. device manufacturing or development.
> +
> +endchoice
> +
> +config U_BOOT_ENV_IMAGE_CUSTOM_SOURCE
> + prompt "Custom environment source"
> + string
> + default "custom_env.config"
> + depends on U_BOOT_ENV_IMAGE_CUSTOM
> + help
> +   Text file in platform config directory describing the custom
> +   environment.
> +   The file should have lines in the form var=value, one per line.
> +   Blank lines and lines starting with a # are ignored.
> +
> +if !U_BOOT_ENV_IMAGE_NONE
> +
> +config U_BOOT_ENV_IMAGE_SIZE
> + prompt "Environment image size"
> + hex
> + default 0x2000
> + help
> +   Enter the U-Boot environment size in hexadecimal for generation
> +   of image. A wrong size will typically cause crc error when used.
> +   Must match size defined in target config and "/etc/fw_env.config".
> +
> +config U_BOOT_ENV_IMAGE_REDUNDANT
> + prompt "Environment image with redundant copy"
> + bool
> + help
> +   Use to generate a redundant environment in the image.
> +   Must match target config and "/etc/fw_env.config".
> +
> +endif
> +
>  config U_BOOT_BOOT_SCRIPT
>   prompt "Compile U-Boot boot script"
>   bool
> diff --git a/rules/u-boot.make b/rules/u-boot.make
> index e3c2c2389..9609dca97 100644
> --- a/rules/u-boot.make
> +++ b/rules/u-boot.make
> @@ -43,6 +43,12 @@ U_BOOT_BOOT_SCRIPT_BIN := $(call remove_quotes, \
>  $(STATEDIR)/u-boot.compile: $(U_BOOT_BOOT_SCRIPT_TXT)
>  endif
>  
> +ifdef PTXCONF_U_BOOT_ENV_IMAGE_CUSTOM
> +U_BOOT_ENV_IMAGE_CUSTOM_SRC := $(call ptx/in-platformconfigdir, \
> + $(call remove_quotes, $(PTXCONF_U_BOOT_ENV_IMAGE_CUSTOM_SOURCE)))
> +$(STATEDIR)/u-boot.compile: $(U_BOOT_ENV_IMAGE_CUSTOM_SRC)
> +endif
> +
>  U_BOOT_WRAPPER_BLACK

Re: [ptxdist] [PATCH v5 2/2] u-boot: bugfix: missing imx dtb image clean

2019-11-26 Thread Denis OSTERLAND
Am Montag, den 25.11.2019, 19:03 +0100 schrieb Bruno Thomsen:
> Fixes: 58c48f349901 ("u-boot: Add u-boot-dtb.imx install option")
> 
> Cc: Denis OSTERLAND 
> Cc: Alexander Dahl 
> Signed-off-by: Bruno Thomsen 
Acked-by: Denis Osterland 

> ---
> v5:
> - moved bugfix to seperate patch
> v4-v1:
> - patch did not exist
> 
>  rules/u-boot.make | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/rules/u-boot.make b/rules/u-boot.make
> index 9609dca97..04d801fc6 100644
> --- a/rules/u-boot.make
> +++ b/rules/u-boot.make
> @@ -195,7 +195,7 @@ $(STATEDIR)/u-boot.clean:
>   @$(call clean_pkg, U_BOOT)
>   @rm -vf $(IMAGEDIR)/u-boot.bin $(IMAGEDIR)/u-boot.srec 
> $(IMAGEDIR)/u-boot.elf
>   @rm -vf $(IMAGEDIR)/u-boot.img $(IMAGEDIR)/SPL $(IMAGEDIR)/MLO
> - @rm -vf $(IMAGEDIR)/u-boot.imx
> + @rm -vf $(IMAGEDIR)/u-boot.imx $(IMAGEDIR)/u-boot-dtb.imx
>   @rm -vf $(IMAGEDIR)/u-boot-env.img
>   @rm -vf $(IMAGEDIR)/u-boot-dtb.bin $(IMAGEDIR)/u-boot-with-spl-pbl.bin
>  


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/
___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH v4] u-boot: generate environment image

2019-11-25 Thread Denis OSTERLAND
Hi Alexander,

thanks for the hint. I missed that line.

Regards Denis

Am Freitag, den 22.11.2019, 18:36 +0100 schrieb Alexander Dahl:
> Hei hei,
> 
> I will test on Monday, but one short remark below.
> 
> On Fri, Nov 22, 2019 at 04:42:32PM +0100, Bruno Thomsen wrote:
> > Add possiblity to generate a default or a custom environment
> > image. Image can be used during manufacturing to avoid bootloader
> > console usage and speed up first boot. Other image use-cases
> > include device development edition, device demonstration
> > mode, etc.
> > 
> > Custom environment image is generated from an user provided
> > config file with one 'var=value' per line format. Input config
> > file name is configurable.
> > 
> > Cc: Denis OSTERLAND 
> > Cc: Alexander Dahl 
> > Signed-off-by: Bruno Thomsen 
> > ---
> > v4:
> > - u-boot version limitation help.
> > - env image size is now Kconfig hex input
> > - custom env source file is now stored in platformconfigdir
> > - changes in custom env source file trigger rebuild
> > - use default mkenvimage pad
> > - cleanup of env images
> > - fix missing cleanup of imx dtb image
> 
> Could you please move the missing cleanup to a separate patch?
> Installing that image was introduced in commit
> 58c48f349901988fb9bc63b7f2f9bbb30c6ef60d and I think this should be
> fixed apart from the env stuff.
> 
> > v3:
> > - remove multiple env images support
> > - use static image names
> > - rebase patches on top of: u-boot: Build out-of-tree
> > v2:
> > - remove HOST_U_BOOT_TOOLS dependency
> > - configurable default env image name
> > - add custom env image generation option
> > - move all options to sub menu
> > 
> >  platforms/u-boot.in | 61 +
> >  rules/u-boot.make   | 31 ++-
> >  2 files changed, 91 insertions(+), 1 deletion(-)
> > 
> > diff --git a/platforms/u-boot.in b/platforms/u-boot.in
> > index 9bac4a758..e6585b508 100644
> > --- a/platforms/u-boot.in
> > +++ b/platforms/u-boot.in
> > @@ -71,6 +71,67 @@ config U_BOOT_CONFIG
> >  
> >  endif
> >  
> > +choice
> > +   prompt "Generate environment image"
> > +   default U_BOOT_NONE_ENV_IMAGE
> > +   help
> > + U-Boot from version 2018.03 support out-of-tree environment
> > + image generation.
> > +
> > +config U_BOOT_NONE_ENV_IMAGE
> > +   prompt "none"
> > +   bool
> > +   help
> > + Don't generate an U-Boot environment image.
> > +
> > +config U_BOOT_DEFAULT_ENV_IMAGE
> > +   prompt "default"
> > +   bool
> > +   help
> > + Use U-Boot's mkenvimage to compile a default U-Boot environment
> > + image for use in e.g. device manufacturing or development.
> > +
> > +config U_BOOT_CUSTOM_ENV_IMAGE
> > +   prompt "custom"
> > +   bool
> > +   help
> > + Use U-Boot's mkenvimage to compile a custom U-Boot environment
> > + image based on the text file in U_BOOT_CUSTOM_ENV_IMAGE_SOURCE
> > + for use in e.g. device manufacturing or development.
> > +
> > +endchoice
> > +
> > +config U_BOOT_CUSTOM_ENV_IMAGE_SOURCE
> > +   prompt "Custom environment source"
> > +   string
> > +   default "custom_env.config"
> > +   depends on U_BOOT_CUSTOM_ENV_IMAGE
> > +   help
> > + Text file in platform config directory describing the custom
> > + environment.
> > + The file should have lines in the form var=value, one per line.
> > + Blank lines and lines starting with a # are ignored.
> > +
> > +if !U_BOOT_NONE_ENV_IMAGE
> > +
> > +config U_BOOT_ENV_IMAGE_SIZE
> > +   prompt "Environment image size"
> > +   hex
> > +   default 0x2000
> > +   help
> > + Enter the U-Boot environment size in hexadecimal for generation
> > + of image. A wrong size will typically cause crc error when used.
> > + Must match size defined in target config and "/etc/fw_env.config".
> > +
> > +config U_BOOT_ENV_IMAGE_REDUNDANT
> > +   prompt "Environment image with redundant copy"
> > +   bool
> > +   help
> > + Use to generate a redundant environment in the image.
> > + Must match target config and "/etc/fw_env.config".
> > +
> > +endif
> > +
> >  config U_BOOT_BOOT_SCRIPT
> > prompt "Compile U-Boot boot script"
> > bool
> > diff 

Re: [ptxdist] [PATCH v4] u-boot: generate environment image

2019-11-25 Thread Denis OSTERLAND
Hi,

Am Freitag, den 22.11.2019, 16:42 +0100 schrieb Bruno Thomsen:
> Add possiblity to generate a default or a custom environment
> image. Image can be used during manufacturing to avoid bootloader
> console usage and speed up first boot. Other image use-cases
> include device development edition, device demonstration
> mode, etc.
> 
> Custom environment image is generated from an user provided
> config file with one 'var=value' per line format. Input config
> file name is configurable.
> 
> Cc: Denis OSTERLAND 
> Cc: Alexander Dahl 
> Signed-off-by: Bruno Thomsen 
> ---
> v4:
> - u-boot version limitation help.
> - env image size is now Kconfig hex input
> - custom env source file is now stored in platformconfigdir
> - changes in custom env source file trigger rebuild
> - use default mkenvimage pad
> - cleanup of env images
> - fix missing cleanup of imx dtb image
> v3:
> - remove multiple env images support
> - use static image names
> - rebase patches on top of: u-boot: Build out-of-tree
> v2:
> - remove HOST_U_BOOT_TOOLS dependency
> - configurable default env image name
> - add custom env image generation option
> - move all options to sub menu
> 
>  platforms/u-boot.in | 61 +
>  rules/u-boot.make   | 31 ++-
>  2 files changed, 91 insertions(+), 1 deletion(-)
> 
> diff --git a/platforms/u-boot.in b/platforms/u-boot.in
> index 9bac4a758..e6585b508 100644
> --- a/platforms/u-boot.in
> +++ b/platforms/u-boot.in
> @@ -71,6 +71,67 @@ config U_BOOT_CONFIG
>  
>  endif
>  
> +choice
> + prompt "Generate environment image"
> + default U_BOOT_NONE_ENV_IMAGE
> + help
> +   U-Boot from version 2018.03 support out-of-tree environment
> +   image generation.
> +
> +config U_BOOT_NONE_ENV_IMAGE
looks a little bit odd.
I would expect a common prefix, with the choice at the end.
U_BOOT_ENV_IMAGE_NONE
U_BOOT_ENV_IMAGE_DEFAULT
U_BOOT_ENV_IMAGE_CUSTOM

But that´s not a show stopper, I think.

> + prompt "none"
> + bool
> + help
> +   Don't generate an U-Boot environment image.
> +
> +config U_BOOT_DEFAULT_ENV_IMAGE
> + prompt "default"
> + bool
> + help
> +   Use U-Boot's mkenvimage to compile a default U-Boot environment
> +   image for use in e.g. device manufacturing or development.
> +
> +config U_BOOT_CUSTOM_ENV_IMAGE
> + prompt "custom"
> + bool
> + help
> +   Use U-Boot's mkenvimage to compile a custom U-Boot environment
> +   image based on the text file in U_BOOT_CUSTOM_ENV_IMAGE_SOURCE
> +   for use in e.g. device manufacturing or development.
> +
> +endchoice
> +
> +config U_BOOT_CUSTOM_ENV_IMAGE_SOURCE
> + prompt "Custom environment source"
> + string
> + default "custom_env.config"
> + depends on U_BOOT_CUSTOM_ENV_IMAGE
> + help
> +   Text file in platform config directory describing the custom
> +   environment.
> +   The file should have lines in the form var=value, one per line.
> +   Blank lines and lines starting with a # are ignored.
> +
> +if !U_BOOT_NONE_ENV_IMAGE
> +
> +config U_BOOT_ENV_IMAGE_SIZE
> + prompt "Environment image size"
> + hex
> + default 0x2000
> + help
> +   Enter the U-Boot environment size in hexadecimal for generation
> +   of image. A wrong size will typically cause crc error when used.
> +   Must match size defined in target config and "/etc/fw_env.config".
> +
> +config U_BOOT_ENV_IMAGE_REDUNDANT
> + prompt "Environment image with redundant copy"
> + bool
> + help
> +   Use to generate a redundant environment in the image.
> +   Must match target config and "/etc/fw_env.config".
> +
> +endif
> +
>  config U_BOOT_BOOT_SCRIPT
>   prompt "Compile U-Boot boot script"
>   bool
> diff --git a/rules/u-boot.make b/rules/u-boot.make
> index e3c2c2389..3d983378e 100644
> --- a/rules/u-boot.make
> +++ b/rules/u-boot.make
> @@ -43,6 +43,12 @@ U_BOOT_BOOT_SCRIPT_BIN := $(call remove_quotes, \
>  $(STATEDIR)/u-boot.compile: $(U_BOOT_BOOT_SCRIPT_TXT)
>  endif
>  
> +ifdef PTXCONF_U_BOOT_CUSTOM_ENV_IMAGE
> +U_BOOT_CUSTOM_ENV_SRC := $(call ptx/in-platformconfigdir, \
> + $(PTXCONF_U_BOOT_CUSTOM_ENV_IMAGE_SOURCE))
> +$(STATEDIR)/u-boot.compile: $(call remove_quotes, $(U_BOOT_CUSTOM_ENV_SRC))
> +endif
> +
>  U_BOOT_WRAPPER_BLACKLIST := \
>   $(PTXDIST_LOWLEVEL_WRAPPER_BLACKLIST)
>  
> @@ -100,6 +106,20 @@ ifdef PTXCONF_U_BOOT_BOOT_SCRIPT
>   @$(U_BOOT_

Re: [ptxdist] [PATCH v2] u-boot: generate environment image

2019-11-18 Thread Denis OSTERLAND
Hi,

Am Freitag, den 15.11.2019, 14:59 +0100 schrieb Michael Olbrich:
> On Wed, Nov 13, 2019 at 06:05:59PM +0100, Bruno Thomsen wrote:
...
> >  
> > +menuconfig U_BOOT_GENERATE_ENV_IMAGE
> > +   bool
> > +   prompt "Generate environment image  "
> > +
> > +if U_BOOT_GENERATE_ENV_IMAGE
> > +
> > +config U_BOOT_DEFAULT_ENV_IMAGE
> > +   prompt "Generate default environment image"
> > +   bool
> > +   help
> > + Use U-Boot's mkenvimage to compile a default U-Boot environment
> > + image for use in e.g. device manufacturing or development.
> > +
> > +config U_BOOT_DEFAULT_ENV_IMAGE_FILE
> > +   prompt "Default environment image filename"
> > +   string
> > +   default "u-boot-env.img"
> > +   help
> > + Change default environment output image name.
> 
> Why the custom name? It's just the filename in images/ and it can be
> changed wenn it's added to an image, if that's necessary.
> If it's important, then the option should depend on
> U_BOOT_DEFAULT_ENV_IMAGE
> 
> > +
> > +config U_BOOT_CUSTOM_ENV_IMAGE
> > +   prompt "Generate custom environment image"
> > +   bool
> > +   help
> > + Use U-Boot's mkenvimage to compile a custom U-Boot environment
> > + image based on the text file in U_BOOT_CUSTOM_ENV_IMAGE_SOURCE
> > + for use in e.g. device manufacturing or development.
> > +
> > +config U_BOOT_CUSTOM_ENV_IMAGE_SOURCE
> > +   prompt "Custom environment source"
> > +   string
> > +   default "custom_env.config"
> > +   help
> > + Text file in PTXDIST_WORKSPACE describing the custom environment.
> > + The file should have lines in the form var=value, one per line.
> > + Blank lines and lines starting with a # are ignored.
> > +
> > +config U_BOOT_CUSTOM_ENV_IMAGE_FILE
> > +   prompt "Custom environment image filename"
> > +   string
> > +   default "u-boot-custom-env.img"
> > +   help
> > + Change custom environment output image name.
> 
> Denis, I think you were asking for a selectable input file, not generating
> multiple env images?
correct.
I see no reason to have both files, or to specify the output file name.
My suggestion was to give a filename or generate it via get_default_envs.sh if 
none given.
If you want to be more explicit, I would prefer a choice between default and 
custom,
where the filename depends on the custom selected.

Regards Denis

> 
> And the same issue as above, if this stays: do we need to custom output
> filename and hide the suboptions with 'depends'.
> 
> Michael
> 
> > +
> > +comment "common options   ---"
> > +
> > +config U_BOOT_ENV_IMAGE_SIZE
> > +   prompt "Environment image size"
> > +   string
> > +   default "0x2000"
> > +   help
> > + Enter the U-Boot environment size for generation of image.
> > + Size can be prefixed with 0x for hexadecimal values.
> > + Must match size defined in target config and "/etc/fw_env.config".
> > +
> > +config U_BOOT_ENV_IMAGE_REDUNDANT
> > +   prompt "Environment image with redundant copy"
> > +   bool
> > +   help
> > + Use to generate a redundant environment in the image.
> > + Must match target config and "/etc/fw_env.config".
> > +
> > +endif
> > +
> >  config U_BOOT_BOOT_SCRIPT
> > prompt "Compile U-Boot boot script"
> > bool
> > diff --git a/rules/u-boot.make b/rules/u-boot.make
> > index 8f9290ea7..c3c426d6d 100644
> > --- a/rules/u-boot.make
> > +++ b/rules/u-boot.make
> > @@ -94,6 +94,20 @@ ifdef PTXCONF_U_BOOT_BOOT_SCRIPT
> > @$(U_BOOT_DIR)/tools/mkimage -T script -C none \
> > -d $(U_BOOT_BOOT_SCRIPT_TXT) \
> > $(U_BOOT_DIR)/boot.scr.uimg
> > +endif
> > +ifdef PTXCONF_U_BOOT_DEFAULT_ENV_IMAGE
> > +   $(U_BOOT_MAKE_ENV) $(U_BOOT_DIR)/scripts/get_default_envs.sh | \
> > +   $(U_BOOT_DIR)/tools/mkenvimage -p 0x0 \
> > +   $(call ptx/ifdef,PTXCONF_U_BOOT_ENV_IMAGE_REDUNDANT,-r,) \
> > +   -s $(PTXCONF_U_BOOT_ENV_IMAGE_SIZE) \
> > +   -o $(U_BOOT_DIR)/$(PTXCONF_U_BOOT_DEFAULT_ENV_IMAGE_FILE) -
> > +endif
> > +ifdef PTXCONF_U_BOOT_CUSTOM_ENV_IMAGE
> > +   $(U_BOOT_DIR)/tools/mkenvimage -p 0x0 \
> > +   $(call ptx/ifdef,PTXCONF_U_BOOT_ENV_IMAGE_REDUNDANT,-r,) \
> > +   -s $(PTXCONF_U_BOOT_ENV_IMAGE_SIZE) \
> > +   -o $(U_BOOT_DIR)/$(PTXCONF_U_BOOT_CUSTOM_ENV_IMAGE_FILE) \
> > +   $(PTXDIST_WORKSPACE)/$(PTXCONF_U_BOOT_CUSTOM_ENV_IMAGE_SOURCE)
> >  endif
> > @$(call touch)
> >  
> > @@ -141,6 +155,14 @@ ifdef PTXCONF_U_BOOT_INSTALL_U_BOOT_WITH_SPL_PBL
> > @install -v -D -m644 $(U_BOOT_DIR)/u-boot-with-spl-pbl.bin \
> > $(IMAGEDIR)/u-boot-with-spl-pbl.bin
> >  endif
> > +ifdef PTXCONF_U_BOOT_DEFAULT_ENV_IMAGE
> > +   @install -v -D -m644 
> > $(U_BOOT_DIR)/$(PTXCONF_U_BOOT_DEFAULT_ENV_IMAGE_FILE) \
> > +   $(IMAGEDIR)/$(PTXCONF_U_BOOT_DEFAULT_ENV_IMAGE_FILE)
> > +endif
> > +ifdef PTXCONF_U_BOOT_CUSTOM_ENV_IMAGE
> > +   @install -v -D -m644 
> > $(U_BOOT_DIR)/$(PTXCONF_U_BOOT_CUSTOM_ENV_IMAGE_FILE) \
> > +   

Re: [ptxdist] build failures when building with --progress but without -j

2019-11-11 Thread Denis OSTERLAND
Hi,

I have noticed this message too.
At the build of a autotools like package.
The normal build (p compile ...) works, but silent (p -q compile ...)
emits the unrecognized option error.
In this case, I would guess that world/env should not add this option for meson.

Regards Denis

Am Montag, den 11.11.2019, 09:17 +0100 schrieb Alexander Dahl:
> Hei guys,
> 
> I tried building recent DistroKit with ptxdist 2019.10.1 on different 
> machines, Debian 9 (stretch), Debian 10 (buster), i686 and amd64, and noticed 
> the following. The build fails with this command (I chose that one, any other 
> meson/ninja build triggers the same failure):
> 
>   p -q --progress compile glib
> 
> Error message is this one:
> 
> 
> 
> target: glib.compile
> 
> 
> ptxdist: executing: PATH=/home/adahl/src/DistroKit-bbb/platform-v7a/sysroot-
> cross/bin:/home/adahl/src/DistroKit-bbb/platform-v7a/sysroot-cross/sbin:/home/
> adahl/src/DistroKit-bbb/platform-v7a/sysroot-host/lib/wrapper:/home/adahl/src/
> DistroKit-bbb/platform-v7a/sysroot-host/bin:/home/adahl/src/DistroKit-bbb/
> platform-v7a/sysroot-host/sbin:/opt/OSELAS.Toolchain-2016.06.1/arm-v7a-linux-
> gnueabihf/gcc-5.4.0-glibc-2.23-binutils-2.26-kernel-4.6-sanitized/bin:/usr/
> local/lib/ptxdist-2019.10.1/bin:/home/adahl/bin:/usr/local/bin:/usr/bin:/bin:/
> usr/local/games:/usr/games DESTDIR="/home/adahl/src/DistroKit-bbb/platform-
> v7a/packages/glib-2.60.3" PKGCONFIG_WHITELIST_HOST='' 
> PKGCONFIG_WHITELIST_TARGET='libffi libpcre libpcre16 libpcre32 libpcreposix 
> zlib' PKGCONFIG_WHITELIST_SRC='glib' SYSROOT='/home/adahl/src/DistroKit-bbb/
> platform-v7a/sysroot-target' V=0 VERBOSE= LC_ALL='C.UTF-8' 
> KBUILD_BUILD_TIMESTAMP=2019-10-01T00:00:00+00:00 KBUILD_BUILD_USER=ptxdist 
> KBUILD_BUILD_HOST=ptxdist  ninja -C /home/adahl/src/DistroKit-bbb/platform-
> v7a/build-target/glib-2.60.3-build  -j8 --output-sync=target --no-print-
> directory
> 
> ninja: unrecognized option '--output-sync=target'
> usage: ninja [options] [targets...]
> 
> 
> Somehow with this combination of options '--output-sync=target' is passed to 
> ninja, which fails. What works is this call:
> 
>   p -q -j10 --progress compile glib
> 
> The error persists with ptxdist 2019.11.0 and with different toolchain 
> versions and is independent of icecc activated or not.
> 
> Greets
> Alex
> 
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/
___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH] u-boot: generate default environment image

2019-11-06 Thread Denis OSTERLAND
Hi,

the get_default_envs.sh script generates a text file
which represents the compiled in default environment.
It would be handy to specify the text file, to have a environment
image for production, different from default.

I think about:
Kconfig:
config U_BOOT_ENV_IMAGE
bool
...
if U_BOOT_ENV_IMAGE
config U_BOOT_ENV_IMAGE_SOURCE
string ""
help
  Text file describing the environment. The file should have
  lines of the form var=value, one per line. Blank lines and
  lines starting with a # are ignored..
  Leave empty to generate image from compiled-in env.

...
I am fine with U_BOOT_DEFAULT_ENV_IMAGE_SIZE and 
U_BOOT_DEFAULT_ENV_IMAGE_REDUNDANT.

And in make file:
$(U_BOOT_MAKE_ENV) $(if $(call 
remove_quotes,$(PTXCONF_U_BOOT_ENV_IMAGE_SOURCE)), \
cat "$(shell ptxd_get_alternative config/images 
$(PTXCONF_U_BOOT_ENV_IMAGE_SOURCE) && echo "$$ptxd_reply" || ptxd_bailout 
"could not find u-boot env file")", \
$(U_BOOT_DIR)/scripts/get_default_envs.sh) | \
mkenvimage -p 0x0 \

Not sure if config/images the the right place and layout should be better.

BTW ptxdist will search SYSROOT_HOST for mkenvimage, so there is no need to be 
verbose.

Regards Denis

Am Donnerstag, den 31.10.2019, 18:28 +0100 schrieb Bruno Thomsen:
> Can be used during manufacturing to avoid bootloader
> console usage and speed up first boot.
> 
> Signed-off-by: Bruno Thomsen 
> ---
>  platforms/u-boot.in | 28 
>  rules/u-boot.make   | 11 +++
>  2 files changed, 39 insertions(+)
> 
> diff --git a/platforms/u-boot.in b/platforms/u-boot.in
> index 9bac4a758..d9195d7cd 100644
> --- a/platforms/u-boot.in
> +++ b/platforms/u-boot.in
> @@ -2,6 +2,7 @@
>  
>  menuconfig U_BOOT
>   select BOOTLOADER
> + select HOST_U_BOOT_TOOLS if U_BOOT_DEFAULT_ENV_IMAGE
>   prompt "U-Boot"
>   bool
>  
> @@ -71,6 +72,33 @@ config U_BOOT_CONFIG
>  
>  endif
>  
> +config U_BOOT_DEFAULT_ENV_IMAGE
> + prompt "Generate U-Boot default environment image"
> + bool
> + help
> +   Use U-Boot's mkenvimage to compile a U-Boot default environment
> +   image for use in device manufacturing.
> +
> +if U_BOOT_DEFAULT_ENV_IMAGE
> +
> +config U_BOOT_DEFAULT_ENV_IMAGE_SIZE
> + prompt "Default environment image size"
> + string
> + default "0x2000"
> + help
> +   Enter the U-Boot environment size for generation of manufacturing
> +   image. Size can be prefixed with 0x for hexadecimal values.
> +   Must match size defined in target config and "/etc/fw_env.config".
> +
> +config U_BOOT_DEFAULT_ENV_IMAGE_REDUNDANT
> + prompt "Default environment image with redundant copy"
> + bool
> + help
> +   Use to generate a redundant environment in the default image.
> +   Must match target config and "/etc/fw_env.config".
> +
> +endif
> +
>  config U_BOOT_BOOT_SCRIPT
>   prompt "Compile U-Boot boot script"
>   bool
> diff --git a/rules/u-boot.make b/rules/u-boot.make
> index 8f9290ea7..b6e65a95a 100644
> --- a/rules/u-boot.make
> +++ b/rules/u-boot.make
> @@ -94,6 +94,13 @@ ifdef PTXCONF_U_BOOT_BOOT_SCRIPT
>   @$(U_BOOT_DIR)/tools/mkimage -T script -C none \
>   -d $(U_BOOT_BOOT_SCRIPT_TXT) \
>   $(U_BOOT_DIR)/boot.scr.uimg
> +endif
> +ifdef PTXCONF_U_BOOT_DEFAULT_ENV_IMAGE
> + $(U_BOOT_MAKE_ENV) $(U_BOOT_DIR)/scripts/get_default_envs.sh | \
> + $(PTXDIST_SYSROOT_HOST)/bin/mkenvimage -p 0x0 \
> + $(call 
> ptx/ifdef,PTXCONF_U_BOOT_DEFAULT_ENV_IMAGE_REDUNDANT,-r,) \
> + -s $(PTXCONF_U_BOOT_DEFAULT_ENV_IMAGE_SIZE) \
> + -o $(U_BOOT_DIR)/u-boot-env.img -
>  endif
>   @$(call touch)
>  
> @@ -141,6 +148,10 @@ ifdef PTXCONF_U_BOOT_INSTALL_U_BOOT_WITH_SPL_PBL
>   @install -v -D -m644 $(U_BOOT_DIR)/u-boot-with-spl-pbl.bin \
>   $(IMAGEDIR)/u-boot-with-spl-pbl.bin
>  endif
> +ifdef PTXCONF_U_BOOT_DEFAULT_ENV_IMAGE
> + @install -v -D -m644 $(U_BOOT_DIR)/u-boot-env.img \
> + $(IMAGEDIR)/u-boot-env.img
> +endif
>  
>  ifdef PTXCONF_U_BOOT_BOOT_SCRIPT
>   @$(call install_init, u-boot)


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, 

Re: [ptxdist] [PATCH] bluez: version bump 5.50 -> 5.51

2019-10-10 Thread Denis OSTERLAND
Hi,

I used btmon, bluetoothd, bluetoothctl and btattach to perform a scan.
This works as well. Another quick test ;-)

Regards Denis

Am Mittwoch, den 09.10.2019, 02:11 +0200 schrieb Andreas Pretzsch:
> Update BlueZ 5.50 (Jun 2018) to BlueZ 5.51 (Sep 2019).
> 
> Quoting the announcement: "There are too many fixes to cover them in
> the release announcement, but feature-wise the two notable things are
> improved Bluetooth Mesh support as well as support for the GATT
> Database Hash feature."
> 
> There are no relevant new configure options.
> Explicitly set the new configure option "external-ell" to disabled.
> It is connected to mesh and/or btpclient, which are already both
> explicitly disabled. In this context, order them together.
> The now settable "runstatedir" (default LOCALSTATEDIR/run) should be fine.
> 
> There are new test programs "test-mesh" and "agent.py".
> Install them like the rest, if enabled. Both python with shebang.
> While at it, fix the double-install of the python scripts, with and
> without executable permissions. The change e6c2932 "bluez: the python
> tests have no shebang so don't make them executable" was not fully
> minded in caa56e6 "bluez: version bump 5.30 -> 5.50".
> 
> There are no bluez patches, so nothing to merge.
> 
> Signed-off-by: Andreas Pretzsch 
> ---
> Quick test with scanning and l2ping (still) works. No further tests.

Tested-by: Denis Osterland 



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/
___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH] libxcrypt: new package

2019-09-17 Thread Denis OSTERLAND
Hi,

Am Montag, den 16.09.2019, 14:57 +0200 schrieb Björn Esser:
> From: Björn Esser 
> 
> Also implement the needed logic to (optionally) replace
> the libcrypt from the selected libc with libxcrypt.
> 
> libxcrypt is a modern library for one-way hashing of passwords.
> It supports a wide variety of both modern and historical hashing
> methods: yescrypt, gost-yescrypt, scrypt, bcrypt, sha512crypt,
> sha256crypt, md5crypt, SunMD5, sha1crypt, NT, bsdicrypt, bigcrypt,
> and descrypt. It provides the traditional Unix crypt and crypt_r
> interfaces, as well as a set of extended interfaces pioneered by
> Openwall Linux, crypt_rn, crypt_ra, crypt_gensalt, crypt_gensalt_rn,
> and crypt_gensalt_ra.
> 
> libxcrypt is intended to be used by login(1), passwd(1), and other
> similar programs; that is, to hash a small number of passwords
> during an interactive authentication dialogue with a human.  It is
> not suitable for use in bulk password-cracking applications, or in
> any other situation where speed is more important than careful
> handling of sensitive data.  However, it is intended to be fast and
> lightweight enough for use in servers that must field thousands of
> login attempts per minute.
> 
> Signed-off-by: Björn Esser 
> ---
>  rules/libcrypt.in|  38 +++
>  rules/libcrypt.make  |  16 ++
>  rules/libxcrypt.in   | 114 +++
>  rules/libxcrypt.make |  95 
>  4 files changed, 263 insertions(+)
>  create mode 100644 rules/libcrypt.in
>  create mode 100644 rules/libcrypt.make
>  create mode 100644 rules/libxcrypt.in
>  create mode 100644 rules/libxcrypt.make
> 
> diff --git a/rules/libcrypt.in b/rules/libcrypt.in
> new file mode 100644
> index 0..9620f143b
> --- /dev/null
> +++ b/rules/libcrypt.in
> @@ -0,0 +1,38 @@
> +## SECTION=core
> +
> +menuconfig LIBC_CRYPT
> + bool
> + prompt "POSIX crypt implementation"
> + select LIBXCRYPTif !NATIVE_CRYPT && EXTENDED_CRYPT
> + select INTERNAL_CRYPT   if NATIVE_CRYPT && !EXTENDED_CRYPT
Could be simplified to:
select LIBXCRYPTif EXTENDED_CRYPT
select INTERNAL_CRYPT   if NATIVE_CRYPT
Because the choice statement ensures that the other one is not selected.

> +
> +if LIBC_CRYPT
> +
> +choice
> + prompt "POSIX crypt implementation"
> + default NATIVE_CRYPT
> +
> + config NATIVE_CRYPT
> + bool
> + prompt "libc internal"
> + help
> +   This menu entry selects the basic libcrypt provided
> +   by the selected libc implementation of the system.
> +
> + config EXTENDED_CRYPT
> + bool
> + prompt "libxcrypt"
> + help
> +   This menu entry selects the extended libcrypt
> +   implementation provided by the libxcrypt package.
> +
> +   Please see "System Libraries" for the configuration
> +   options of libxcrypt.
> +endchoice
> +
> +config INTERNAL_CRYPT
> + bool
> + select GLIBC_CRYPT  if LIBC_GLIBC
> + select UCLIBC_CRYPT if LIBC_UCLIBC
> +
> +endif
> diff --git a/rules/libcrypt.make b/rules/libcrypt.make
> new file mode 100644
> index 0..0cc526de4
> --- /dev/null
> +++ b/rules/libcrypt.make
> @@ -0,0 +1,16 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2019 by Bjoern Esser 
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_LIBCRYPT) += libcrypt
> +
> +LIBCRYPT_LICENSE:= ignore
> +
> +# vim: syntax=make
> diff --git a/rules/libxcrypt.in b/rules/libxcrypt.in
> new file mode 100644
> index 0..1db488941
> --- /dev/null
> +++ b/rules/libxcrypt.in
> @@ -0,0 +1,114 @@
> +## SECTION=system_libraries
> +
> +menuconfig LIBXCRYPT
> + bool
> + prompt "libxcrypt "
> + depends on !NATIVE_CRYPT
> + help
> +   Extended crypt library for descrypt, md5crypt, bcrypt, and others.
> +
> +   libxcrypt is a modern library for one-way hashing of passwords.
> +   It supports a wide variety of both modern and historical hashing
> +   methods: yescrypt, gost-yescrypt, scrypt, bcrypt, sha512crypt,
> +   sha256crypt, md5crypt, SunMD5, sha1crypt, NT, bsdicrypt, bigcrypt,
> +   and descrypt.  It provides the traditional Unix crypt and crypt_r
> +   interfaces, as well as a set of extended interfaces pioneered by
> +   Openwall Linux, crypt_rn, crypt_ra, crypt_gensalt,
> +   crypt_gensalt_rn, and crypt_gensalt_ra.
> +
> +   libxcrypt is intended to be used by login(1), passwd(1), and other
> +   similar programs; that is, to hash a small number of passwords
> +   during an interactive authentication dialogue with a human.  It is
> +   not suitable for use in bulk password-cracking applications, or in
> +   any other situation where speed is 

Re: [ptxdist] [PATCH 2/2] gpsd: Version bump to 3.17

2019-08-16 Thread Denis OSTERLAND
Hi,


Am Donnerstag, den 15.08.2019, 14:56 +0200 schrieb Sascha Hauer:
> From: Fabian Godehardt 
> 
> This updates gpsd from 2.39 to 3.17. The build system has changed from
> autotools to scons in the meantime, so there are quite some changes
> necessary.
> 
> Signed-off-by: Fabian Godehardt 
> Signed-off-by: Sascha Hauer 
> ---
>  rules/gpsd.in   |  30 
>  rules/gpsd.make | 120 
please remove old patches

>  2 files changed, 90 insertions(+), 60 deletions(-)
> 
> diff --git a/rules/gpsd.in b/rules/gpsd.in
> index ff270cff5..7a86967c4 100644
> --- a/rules/gpsd.in
> +++ b/rules/gpsd.in
> @@ -1,13 +1,14 @@
>  ## SECTION=system_libraries
>  menuconfig GPSD
>   tristate
> + select HOST_PYTHON_SCONS
>   select LIBC_M
>   select LIBC_NSL
>   select LIBC_PTHREAD
>   select GCCLIBS_CXX
>   select GCCLIBS_GCC_S
> - select NCURSES  if GPSD_CGPS
> - select NCURSES  if GPSD_GPSMON
> + select NCURSES  if GPSD_NCURSES
> + select LIBUSB   if GPSD_USB
>   select DBUS_GLIBif GPSD_DBUS
>   select PYTHON   if GPSD_PYTHON
>   prompt "gpsd  "
> @@ -21,6 +22,19 @@ menuconfig GPSD
>  
>  if GPSD
>  
> +config GPSD_NCURSES
> + bool
> + prompt "Enable tools using ncurses"
> + help
> +   Some tools use ncurses as interface. Enable this to get
> +   able to build them.
> +
> +config GPSD_USB
> + bool
> + prompt "Enable USB support"
> + help
> +   Enable this to ineract with devices using USB interface.
> +
>  config GPSD_PYTHON
>   bool
>   prompt "python bindings"
> @@ -68,6 +82,10 @@ config GPSD_MAX_DEVICES
>  
>  menu "drivers"
>  
> + config GPSD_DRIVER_BLUEZ
> + bool
> + prompt "bluez"
> +
>   config GPSD_DRIVER_NMEA
>   bool
>   prompt "nmea"
> @@ -208,14 +226,6 @@ menu "install options"
> received sentences to stdout. This makes the program
> useful as a pipe from gpsd to another program or file.
>  
> - config GPSD_GPSFLASH
> - bool
> - prompt "gpsflash"
> - help
> -   This program is a firmware loader for GPS receivers
> -   connected via serial or USB port. Presently it supports
> -   only SiRF GPSes.
> -
>   config GPSD_GPXLOGGER
>   bool
>   prompt "gpxlogger"
> diff --git a/rules/gpsd.make b/rules/gpsd.make
> index cec308af9..bd664c4dd 100644
> --- a/rules/gpsd.make
> +++ b/rules/gpsd.make
> @@ -2,6 +2,9 @@
>  #
>  # Copyright (C) 2008 by J.Kilb
>  #   2009 by Marc Kleine-Budde 
> +#   2019 by Fabian Godehardt 
> +#
> +# 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.
> @@ -15,11 +18,11 @@ PACKAGES-$(PTXCONF_GPSD) += gpsd
>  #
>  # Paths and names
>  #
> -GPSD_VERSION := 2.39
> -GPSD_MD5 := 3db437196a6840c252fca99b6c19d4d0
> +GPSD_VERSION := 3.17
> +GPSD_MD5 := e0cfadcf4a65dfbdd2afb11c58f4e4a1
>  GPSD := gpsd-$(GPSD_VERSION)
>  GPSD_SUFFIX  := tar.gz
> -GPSD_URL := $(call ptx/mirror, SF, gpsd.berlios/$(GPSD).$(GPSD_SUFFIX))
> +GPSD_URL := 
> http://download-mirror.savannah.gnu.org/releases/gpsd/$(GPSD).$(GPSD_SUFFIX)
>  GPSD_SOURCE  := $(SRCDIR)/$(GPSD).$(GPSD_SUFFIX)
>  GPSD_DIR := $(BUILDDIR)/$(GPSD)
>  
> @@ -27,58 +30,78 @@ GPSD_DIR  := $(BUILDDIR)/$(GPSD)
>  # Prepare
>  # 
> 
>  
> -GPSD_ENV = \
> - $(CROSS_ENV) \
> - PYTHON=$(CROSS_PYTHON)
> +GPSD_CONF_TOOL   := NO
>  
> -#
> -# autoconf
> -#
> -GPSD_AUTOCONF := \
> - $(CROSS_AUTOCONF_USR) \
> - --without-x \
> - --$(call ptx/endis, PTXCONF_GPSD_PYTHON)-python \
> - --$(call ptx/endis, PTXCONF_GPSD_PROFILING)-profiling \
> - --$(call ptx/endis, PTXCONF_GPSD_NTPSHM)-ntpshm \
> - --$(call ptx/endis, PTXCONF_GPSD_PPS)-pps \
> - --$(call ptx/endis, PTXCONF_GPSD_PPS_ON_CTS)-pps-on-cts \
> - --$(call ptx/endis, PTXCONF_GPSD_DBUS)-dbus \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_NMEA)-nmea \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_SIRF)-sirf \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_TSIP)-tsip \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_FV18)-fv18 \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_TRIPMATE)-tripmate \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_EARTHMATE)-earthmate \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_ITRAX)-itrax \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_ASHTECH)-ashtech \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_NAVCOM)-navcom \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_GARMIN)-garmin \
> - --$(call ptx/endis, PTXCONF_GPSD_DRIVER_GARMINTXT)-garmintxt \
> - --$(call 

Re: [ptxdist] [PATCH 1/2] host-python-scons: Fix host-python-scons package installation

2019-08-15 Thread Denis OSTERLAND
Hi,

is 
https://git.pengutronix.de/cgit/ptxdist/commit/?id=e59457c6d8ff080aca07352e7adb3ff73d976ae6
not working anymore?

Regards Denis

Am Donnerstag, den 15.08.2019, 14:56 +0200 schrieb Sascha Hauer:
> From: Andreas Schickedanz 
> 
> Without overwriting the paths the files will be installed in
> sysroot-host/local/bin,lib,man
> 
> Signed-off-by: Sascha Hauer 
> ---
>  rules/host-python-scons.make | 5 +
>  1 file changed, 5 insertions(+)
> 
> diff --git a/rules/host-python-scons.make b/rules/host-python-scons.make
> index efca45148..9c78e53fc 100644
> --- a/rules/host-python-scons.make
> +++ b/rules/host-python-scons.make
> @@ -29,5 +29,10 @@ HOST_PYTHON_SCONS_LICENSE_FILES:= 
> file://LICENSE.txt;md5=46ddf66004e5be5566367c
>  # 
> 
>  
>  HOST_PYTHON_SCONS_CONF_TOOL  := python
> +HOST_PYTHON_SCONS_INSTALL_OPT  := install \
> + --install-scripts=/bin \
> + --install-lib=/lib/scons-$(HOST_PYTHON_SCONS_VERSION) \
> + --install-platlib=/lib/scons-$(HOST_PYTHON_SCONS_VERSION) \
> + --install-purelib=/lib/scons-$(HOST_PYTHON_SCONS_VERSION)
>  
>  # vim: syntax=make


Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/
___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] Question to BUILDTIME

2019-06-28 Thread Denis OSTERLAND
Hi Michael,

seems my mind tricked my.
Thanks for the explanation.

Regards Denis

Am Freitag, den 28.06.2019, 16:23 +0200 schrieb Michael Olbrich:
> Hi,
> 
> On Fri, Jun 28, 2019 at 08:14:09AM +0000, Denis OSTERLAND wrote:
> > 
> > Am Freitag, den 28.06.2019, 09:12 +0200 schrieb Michael Olbrich:
> > > 
> > > On Thu, Jun 27, 2019 at 01:25:50PM +, Denis OSTERLAND wrote:
> > > > 
> > > >  
> > > > select  if BUILDTIME
> > > >  
> > > > works only if  has no prompt, correct?
> > > No, 'if BUILDTIME' can be used with any package. It just means, that The
> > > packages will be ordered accordingly at build-time but no dependency will
> > > be added to the resulting .ipk File.
> > This was how I understand it two.
> > The last time I used this feature is to long ago, to be sure ;-)
> > With recent release (ptxdist-2019.06.0) the package gets installed until I 
> > remove prompt line.
> > 
> > I try to pin my problem down.
> > Where is the post processing which removes the dependencies with BUILDTIME?
> > I mean, in 'scripts/lib/ptxd_lib_dgen.sh' there is 
> > 'PTXDIST_DEP_TARGET="run" ptxd_kconfig_dep_all "${config[@]}"',
> > but the automatically selected package will stick if it has a prompt.
> I think I understand way you're trying to do.  Consider this example:
> 
> config FOO
>   tristate
>   select BAR if BUILDTIME
>   prompt "foo"
> 
> If 'foo' is enabled, then so is 'bar'. This means both symbols are enabled
> in the ptxconfig. This also means that both packages will be in the default
> package ist for the rootfs. That cannot be changed.
> What 'if BUILDTIME' means is, that
> 1. The make dependencies are a bit more relaxed, which can improve the
>    build time.
> 2. There is no dependency for this in the ipkg. So you could remove the
>    package 'bar' at runtime without removing 'foo'.
> 
> Creating an image with 'foo' but without 'bar' is not easily done. I
> suppose you could create your own image with:
> 
> IMAGE_BLA_PKGS := $(filter-out bar,$(PTX_PACKAGES_INSTALL))
> 
> Regards,
> Michael
> 

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/
___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] Question to BUILDTIME

2019-06-28 Thread Denis OSTERLAND
Hi,

Am Freitag, den 28.06.2019, 09:12 +0200 schrieb Michael Olbrich:
> Hi,
> 
> On Thu, Jun 27, 2019 at 01:25:50PM +0000, Denis OSTERLAND wrote:
> > 
> > select  if BUILDTIME
> > 
> > works only if  has no prompt, correct?
> No, 'if BUILDTIME' can be used with any package. It just means, that The
> packages will be ordered accordingly at build-time but no dependency will
> be added to the resulting .ipk File.
This was how I understand it two.
The last time I used this feature is to long ago, to be sure ;-)
With recent release (ptxdist-2019.06.0) the package gets installed until I 
remove prompt line.

I try to pin my problem down.
Where is the post processing which removes the dependencies with BUILDTIME?
I mean, in 'scripts/lib/ptxd_lib_dgen.sh' there is 'PTXDIST_DEP_TARGET="run" 
ptxd_kconfig_dep_all "${config[@]}"',
but the automatically selected package will stick if it has a prompt.

Regards Denis

> 
> 
> Michael
> 

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/
___
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] Question to BUILDTIME

2019-06-27 Thread Denis OSTERLAND
Hi,

select  if BUILDTIME

works only if  has no prompt, correct?

Regards Denis

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/
___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH v4 3/3] gpsd: version bump 2.39 -> 3.18.1

2019-04-17 Thread Denis OSTERLAND
Hi Alex,

the state is that we do not use python bindings and I failed to do it in my 
spare time.
The version bump of gpsd was part of a research in a case were we had problems 
with GPS,
but it turns out that the problem was some where else and we decided to stick 
with the old version.
If you use python on the target, I guess you will see the problems Michael 
reported
and without python it should work.

Now to your problem.
HOST_PYTHON_SCONS selects HOST_SYSTEM_PYTHON to build.
It is selected by ALLYES, so it seems to build on pengus all yes build.

It seems that something changed here.
On my disk with the version from January, there is no link unter 
sysroot-host/bin, too.
Please ensure that
https://git.pengutronix.de/cgit/ptxdist/commit/?id=d7d7ca50cdc0e786bc84929231c2ff0ddde1e5fa
is applied, which allows to build python packages with system-python.

Regards Denis

Am Mittwoch, den 17.04.2019, 12:38 +0200 schrieb Alexander Dahl:
> Hello Denis,
> 
> could you please give an update on the state of this patch? We are currently 
> experimenting with gpsd and could help you testing.
> 
> One thing I noticed, when just adding 'select HOST_PYTHON_SCONS' to an 
> otherwise clean package, it seems some dependency to host python is not set:
> 
> This is from a ptxdist 2018.09.0 based BSP, where I just copied rules/host-
> python-scons.{in,make} to:
> 
> -
> target: host-python-scons.compile
> -
> 
> environment: line 2: /home/adahl/Work/bsp/***/platform-v7a/sysroot-host/bin/
> python2.7: No such file or directory
> /usr/local/lib/ptxdist-2018.09.0/rules/post/ptxd_make_world_compile.make:21: 
> recipe for target '/home/adahl/Work/bsp/***/platform-v7a/state/host-python-
> scons.compile' failed
> 
> Greets
> Alex
> 
> Am Dienstag, 5. Februar 2019, 09:46:37 CEST schrieb Denis OSTERLAND:
> > 
> > Hi Michael,
> > 
> > thanks for your input.
> > 
> > Am Dienstag, den 05.02.2019, 10:07 +0100 schrieb Michael Olbrich:
> > 
> > > 
> > > On Mon, Jan 21, 2019 at 12:01:21PM +, Denis OSTERLAND wrote:
> > > 
> > > > 
> > > > 
> > > > 
> > > > +
> > > >  GPSD_ENV = \
> > > >     $(CROSS_ENV) \
> > > >     PYTHON=$(CROSS_PYTHON)
> > > You need to add PATH=$(CROSS_PATH) to the env. Otherwise pkg-config does
> > > not work correctly.
> > okay. I was pretty sure that the defines for pkg-config were part of
> > CROSS_ENV.
>  
> > 
> > 
> > > 
> > > 
> > > Also, the python here is not picked up correctly. You need to set
> > > target_python and python_libdir below to properly install the python
> > > files.
> > I will try it.
> > 
> > 
> > > 
> > > 
> > > And targetinstall fails because /usr/bin/gpsflash is not found. I think
> > > this war removed upstream.
> > So let´s remove it, too. ;-)
> > 
> > 
> > > 
> > > 
> > > Michael
> > 
> > Regards Denis
> > 
> > 
> > Diehl Connectivity Solutions GmbH
> > Geschäftsführung: Horst Leonberger
> > Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
> > Nürnberg: HRB 32315
> > 
> > ___
>  
> > 
> > Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail
> > enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
> > Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise
> > erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede
> > unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung
> > und/oder Publikation dieser E-Mail ist strengstens untersagt. The contents
> > of the above mentioned e-mail is not legally binding. This e-mail contains
> > confidential and/or legally protected information. Please inform us if you
> > have received this e-mail by mistake and delete it in such a case. Each
> > unauthorized reproduction, disclosure, alteration, distribution and/or
> > publication of this e-mail is strictly prohibited.
> > ___
> > ptxdist mailing list
> > ptxdist@pengutronix.de

Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und

  1   2   >