mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v1 01/11] rsync: add "rsync over ssh" feature
@ 2019-05-28 11:57 Roland Hieber
  2019-05-28 11:57 ` [ptxdist] [PATCH v1 02/11] yajl: improve kconfig help text Roland Hieber
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Roland Hieber @ 2019-05-28 11:57 UTC (permalink / raw)
  To: PTXdist Mailing List; +Cc: Roland Hieber

From: Juergen Borleis <jbe@pengutronix.de>

Make run-time dependency to package 'ssh' configurable

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 rules/rsync.in | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/rules/rsync.in b/rules/rsync.in
index 2aa2ac8e2e8e..d335b0a023f4 100644
--- a/rules/rsync.in
+++ b/rules/rsync.in
@@ -3,8 +3,8 @@ menuconfig RSYNC
 	tristate
 	prompt "rsync                         "
 	select GCCLIBS_GCC_S
-	select OPENSSH	if RUNTIME
-	select OPENSSH_SSH
+	select OPENSSH		if RSYNC_SSH && RUNTIME
+	select OPENSSH_SSH	if RSYNC_SSH
 	help
 	  rsync is a program that behaves in much the same way that rcp does,
 	  but has many more options and uses the rsync remote-update protocol to
@@ -24,6 +24,9 @@ config RSYNC_CONFIG_FILE
 
 comment "runtime options   ---"
 
+config RSYNC_SSH
+	bool "install ssh to tunnel rsync over ssh"
+
 choice
 	prompt "Kind of startup"
 	default RSYNC_INETD_SERVER
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ptxdist] [PATCH v1 02/11] yajl: improve kconfig help text
  2019-05-28 11:57 [ptxdist] [PATCH v1 01/11] rsync: add "rsync over ssh" feature Roland Hieber
@ 2019-05-28 11:57 ` Roland Hieber
  2019-05-28 11:57 ` [ptxdist] [PATCH v1 03/11] minicoredumper: enable and configure minicoredumper Roland Hieber
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Roland Hieber @ 2019-05-28 11:57 UTC (permalink / raw)
  To: PTXdist Mailing List; +Cc: Marc Kleine-Budde, Roland Hieber

From: Marc Kleine-Budde <mkl@pengutronix.de>

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 rules/yajl.in | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/rules/yajl.in b/rules/yajl.in
index 39c53e1df5d1..af80c4be6ee1 100644
--- a/rules/yajl.in
+++ b/rules/yajl.in
@@ -5,4 +5,8 @@ config YAJL
 	prompt "yajl"
 	select HOST_CMAKE
 	help
-	  A fast streaming JSON parsing library in C.
+	  Yet Another JSON Library.
+
+	  A small, fast library for parsing JavaScript Object Notation (JSON).
+	  It supports incremental parsing from a stream and leaves data
+	  representation to higher level code.
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ptxdist] [PATCH v1 03/11] minicoredumper: enable and configure minicoredumper
  2019-05-28 11:57 [ptxdist] [PATCH v1 01/11] rsync: add "rsync over ssh" feature Roland Hieber
  2019-05-28 11:57 ` [ptxdist] [PATCH v1 02/11] yajl: improve kconfig help text Roland Hieber
@ 2019-05-28 11:57 ` Roland Hieber
  2019-05-28 11:57 ` [ptxdist] [PATCH v1 04/11] paho-mqtt-c: new package Roland Hieber
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Roland Hieber @ 2019-05-28 11:57 UTC (permalink / raw)
  To: PTXdist Mailing List; +Cc: Jan Luebbe, Roland Hieber

From: Jan Luebbe <jlu@pengutronix.de>

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 .../etc/minicoredumper/generic.recept.json    | 25 +++++++++++++++++++
 .../minicoredumper/minicoredumper.cfg.json    |  8 ++++++
 .../usr/lib/sysctl.d/50-minicoredumper.conf   |  1 +
 rules/minicoredumper.make                     |  3 +++
 4 files changed, 37 insertions(+)
 create mode 100644 projectroot/etc/minicoredumper/generic.recept.json
 create mode 100644 projectroot/etc/minicoredumper/minicoredumper.cfg.json
 create mode 100644 projectroot/usr/lib/sysctl.d/50-minicoredumper.conf

diff --git a/projectroot/etc/minicoredumper/generic.recept.json b/projectroot/etc/minicoredumper/generic.recept.json
new file mode 100644
index 000000000000..59dc8cd5b844
--- /dev/null
+++ b/projectroot/etc/minicoredumper/generic.recept.json
@@ -0,0 +1,25 @@
+{
+    "stacks": {
+        "dump_stacks": true,
+        "first_thread_only": false,
+        "max_stack_size": 0
+    },
+    "maps": {
+        "dump_by_name": [
+            "[vdso]"
+        ]
+    },
+    "compression": {
+        "compressor": "gzip",
+        "extension": "gz",
+        "in_tar": true
+    },
+    "dump_auxv_so_list": true,
+    "dump_pthread_list": true,
+    "dump_robust_mutex_list": true,
+    "dump_scope": 1024,
+    "live_dumper": true,
+    "write_proc_info": true,
+    "write_debug_log": true,
+    "dump_fat_core": false
+}
diff --git a/projectroot/etc/minicoredumper/minicoredumper.cfg.json b/projectroot/etc/minicoredumper/minicoredumper.cfg.json
new file mode 100644
index 000000000000..58753fcad4f9
--- /dev/null
+++ b/projectroot/etc/minicoredumper/minicoredumper.cfg.json
@@ -0,0 +1,8 @@
+{
+    "base_dir": "/var/crash/minicoredumper",
+    "watch": [
+        {
+            "recept": "generic.recept.json"
+        }
+    ]
+}
diff --git a/projectroot/usr/lib/sysctl.d/50-minicoredumper.conf b/projectroot/usr/lib/sysctl.d/50-minicoredumper.conf
new file mode 100644
index 000000000000..68c2d7ea7f7f
--- /dev/null
+++ b/projectroot/usr/lib/sysctl.d/50-minicoredumper.conf
@@ -0,0 +1 @@
+kernel.core_pattern=||/usr/sbin/minicoredumper %P %u %g %s %t %h %e
diff --git a/rules/minicoredumper.make b/rules/minicoredumper.make
index 1a4dddae1819..d9e45fe5ab0c 100644
--- a/rules/minicoredumper.make
+++ b/rules/minicoredumper.make
@@ -61,6 +61,9 @@ $(STATEDIR)/minicoredumper.targetinstall:
 
 	@$(call install_copy, minicoredumper, 0, 0, 0755, /var/crash/minicoredumper)
 
+	@$(call install_alternative, minicoredumper, 0, 0, 0644, \
+		/usr/lib/sysctl.d/50-minicoredumper.conf)
+
 	@$(call install_finish, minicoredumper)
 
 	@$(call touch)
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ptxdist] [PATCH v1 04/11] paho-mqtt-c: new package
  2019-05-28 11:57 [ptxdist] [PATCH v1 01/11] rsync: add "rsync over ssh" feature Roland Hieber
  2019-05-28 11:57 ` [ptxdist] [PATCH v1 02/11] yajl: improve kconfig help text Roland Hieber
  2019-05-28 11:57 ` [ptxdist] [PATCH v1 03/11] minicoredumper: enable and configure minicoredumper Roland Hieber
@ 2019-05-28 11:57 ` Roland Hieber
  2019-05-28 11:57 ` [ptxdist] [PATCH v1 05/11] paho-mqtt-cpp: " Roland Hieber
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Roland Hieber @ 2019-05-28 11:57 UTC (permalink / raw)
  To: PTXdist Mailing List; +Cc: Marc Kleine-Budde, Roland Hieber

From: Marc Kleine-Budde <mkl@pengutronix.de>

Co-authored-by: Roland Hieber <rhi@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 rules/paho-mqtt-c.in   | 12 ++++++++
 rules/paho-mqtt-c.make | 62 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)
 create mode 100644 rules/paho-mqtt-c.in
 create mode 100644 rules/paho-mqtt-c.make

diff --git a/rules/paho-mqtt-c.in b/rules/paho-mqtt-c.in
new file mode 100644
index 000000000000..c8ad25ff6b9a
--- /dev/null
+++ b/rules/paho-mqtt-c.in
@@ -0,0 +1,12 @@
+## SECTION=system_libraries
+
+config PAHO_MQTT_C
+	tristate "paho.mqtt.c"
+	select HOST_CMAKE
+	select OPENSSL
+	help
+	  C package implementing MQTT client library by Eclipse Paho
+
+	  The Paho MQTT package provides a library which enable
+	  applications to connect to broker to publish messages, and
+	  to subscribe to topics and receive published messages.
diff --git a/rules/paho-mqtt-c.make b/rules/paho-mqtt-c.make
new file mode 100644
index 000000000000..7ccd1775d5c3
--- /dev/null
+++ b/rules/paho-mqtt-c.make
@@ -0,0 +1,62 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Marc Kleine-Budde <mkl@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PAHO_MQTT_C) += paho-mqtt-c
+
+#
+# Paths and names
+#
+PAHO_MQTT_C_VERSION	:= 1.3.0
+PAHO_MQTT_C_MD5		:= 8fac1bff9b0d5a74fa1caf8db0501fca
+PAHO_MQTT_C		:= paho.mqtt.c-$(PAHO_MQTT_C_VERSION)
+PAHO_MQTT_C_SUFFIX	:= tar.gz
+PAHO_MQTT_C_URL		:= https://github.com/eclipse/paho.mqtt.c/archive/v$(PAHO_MQTT_C_VERSION).$(PAHO_MQTT_C_SUFFIX)
+PAHO_MQTT_C_SOURCE	:= $(SRCDIR)/$(PAHO_MQTT_C).$(PAHO_MQTT_C_SUFFIX)
+PAHO_MQTT_C_DIR		:= $(BUILDDIR)/$(PAHO_MQTT_C)
+# "Eclipse Distribution License - v 1.0" is in fact BSD-3-Clause
+PAHO_MQTT_C_LICENSE	:= EPL-1.0 AND BSD-3-Clause
+PAHO_MQTT_C_LICENSE_FILES := \
+	file://LICENSE;md5=f2001efbb1450daa099206651f80d39c \
+	file://epl-v10;md5=659c8e92a40b6df1d9e3dccf5ae45a08 \
+	file://edl-v10;md5=3adfcc70f5aeb7a44f3f9b495aa1fbf3
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PAHO_MQTT_C_CONF_TOOL	:= cmake
+PAHO_MQTT_C_CONF_OPT	:= \
+	$(CROSS_CMAKE_USR) \
+	-DPAHO_WITH_SSL=TRUE \
+	-DOPENSSL_SEARCH_PATH=$(PTXDIST_SYSROOT_TARGET)/usr
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/paho-mqtt-c.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, paho-mqtt-c)
+	@$(call install_fixup, paho-mqtt-c,PRIORITY,optional)
+	@$(call install_fixup, paho-mqtt-c,SECTION,base)
+	@$(call install_fixup, paho-mqtt-c,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
+	@$(call install_fixup, paho-mqtt-c,DESCRIPTION,missing)
+
+	@$(call install_lib, paho-mqtt-c, 0, 0, 0644, libpaho-mqtt3as)
+
+	@$(call install_finish, paho-mqtt-c)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ptxdist] [PATCH v1 05/11] paho-mqtt-cpp: new package
  2019-05-28 11:57 [ptxdist] [PATCH v1 01/11] rsync: add "rsync over ssh" feature Roland Hieber
                   ` (2 preceding siblings ...)
  2019-05-28 11:57 ` [ptxdist] [PATCH v1 04/11] paho-mqtt-c: new package Roland Hieber
@ 2019-05-28 11:57 ` Roland Hieber
  2019-05-28 11:57 ` [ptxdist] [PATCH v1 06/11] host-autotools-autoconf-archive: " Roland Hieber
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Roland Hieber @ 2019-05-28 11:57 UTC (permalink / raw)
  To: PTXdist Mailing List; +Cc: Marc Kleine-Budde, Roland Hieber

From: Marc Kleine-Budde <mkl@pengutronix.de>

Co-authored-by: Roland Hieber <rhi@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 rules/paho-mqtt-cpp.in   | 13 +++++++++
 rules/paho-mqtt-cpp.make | 58 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+)
 create mode 100644 rules/paho-mqtt-cpp.in
 create mode 100644 rules/paho-mqtt-cpp.make

diff --git a/rules/paho-mqtt-cpp.in b/rules/paho-mqtt-cpp.in
new file mode 100644
index 000000000000..4037b9f62a8b
--- /dev/null
+++ b/rules/paho-mqtt-cpp.in
@@ -0,0 +1,13 @@
+## SECTION=system_libraries
+
+config PAHO_MQTT_CPP
+	tristate "paho.mqtt.cpp"
+	select HOST_CMAKE
+	select OPENSSL
+	select PAHO_MQTT_C
+	help
+	  C++ package implementing MQTT client library by Eclipse Paho
+
+	  The Paho MQTT package provides a library which enable
+	  applications to connect to broker to publish messages, and
+	  to subscribe to topics and receive published messages.
diff --git a/rules/paho-mqtt-cpp.make b/rules/paho-mqtt-cpp.make
new file mode 100644
index 000000000000..e94737d80f95
--- /dev/null
+++ b/rules/paho-mqtt-cpp.make
@@ -0,0 +1,58 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Marc Kleine-Budde <mkl@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PAHO_MQTT_CPP) += paho-mqtt-cpp
+
+#
+# Paths and names
+#
+PAHO_MQTT_CPP_VERSION	:= 1.0.1
+PAHO_MQTT_CPP_MD5	:= 78c9c7c90d932926ab0d1181356e3ba8
+PAHO_MQTT_CPP		:= paho.mqtt.cpp-$(PAHO_MQTT_CPP_VERSION)
+PAHO_MQTT_CPP_SUFFIX	:= tar.gz
+PAHO_MQTT_CPP_URL	:= https://github.com/eclipse/paho.mqtt.cpp/archive/v$(PAHO_MQTT_CPP_VERSION).$(PAHO_MQTT_CPP_SUFFIX)
+PAHO_MQTT_CPP_SOURCE	:= $(SRCDIR)/$(PAHO_MQTT_CPP).$(PAHO_MQTT_CPP_SUFFIX)
+PAHO_MQTT_CPP_DIR	:= $(BUILDDIR)/$(PAHO_MQTT_CPP)
+# "Eclipse Distribution License - v 1.0" is in fact BSD-3-Clause
+PAHO_MQTT_CPP_LICENSE	:= EPL-1.0 AND BSD-3-Clause
+PAHO_MQTT_CPP_LICENSE_FILES := \
+	file://about.html;md5sum=dcde438d73cf42393da9d40fabc0c9bc \
+	file://epl-v10;md5=659c8e92a40b6df1d9e3dccf5ae45a08 \
+	file://edl-v10;md5=3adfcc70f5aeb7a44f3f9b495aa1fbf3
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PAHO_MQTT_CPP_CONF_TOOL	:= cmake
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/paho-mqtt-cpp.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, paho-mqtt-cpp)
+	@$(call install_fixup, paho-mqtt-cpp,PRIORITY,optional)
+	@$(call install_fixup, paho-mqtt-cpp,SECTION,base)
+	@$(call install_fixup, paho-mqtt-cpp,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
+	@$(call install_fixup, paho-mqtt-cpp,DESCRIPTION,missing)
+
+	@$(call install_lib, paho-mqtt-cpp, 0, 0, 0644, libpaho-mqttpp3)
+
+	@$(call install_finish, paho-mqtt-cpp)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ptxdist] [PATCH v1 06/11] host-autotools-autoconf-archive: new package
  2019-05-28 11:57 [ptxdist] [PATCH v1 01/11] rsync: add "rsync over ssh" feature Roland Hieber
                   ` (3 preceding siblings ...)
  2019-05-28 11:57 ` [ptxdist] [PATCH v1 05/11] paho-mqtt-cpp: " Roland Hieber
@ 2019-05-28 11:57 ` Roland Hieber
  2019-05-28 11:57 ` [ptxdist] [PATCH v1 07/11] rootfs: add tpm user and group Roland Hieber
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Roland Hieber @ 2019-05-28 11:57 UTC (permalink / raw)
  To: PTXdist Mailing List; +Cc: Marc Kleine-Budde, Roland Hieber

From: Marc Kleine-Budde <mkl@pengutronix.de>

Co-authored-by: Roland Hieber <rhi@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 rules/host-autotools-autoconf-archive.in   | 12 +++++++
 rules/host-autotools-autoconf-archive.make | 41 ++++++++++++++++++++++
 2 files changed, 53 insertions(+)
 create mode 100644 rules/host-autotools-autoconf-archive.in
 create mode 100644 rules/host-autotools-autoconf-archive.make

diff --git a/rules/host-autotools-autoconf-archive.in b/rules/host-autotools-autoconf-archive.in
new file mode 100644
index 000000000000..fe955a96a680
--- /dev/null
+++ b/rules/host-autotools-autoconf-archive.in
@@ -0,0 +1,12 @@
+## SECTION=hosttools_noprompt
+
+config HOST_AUTOTOOLS_AUTOCONF_ARCHIVE
+	tristate
+	help
+	  Autoconf Macro Archive
+
+	  Autoconf Macro Archive aims to provide a central repository
+	  of useful and tested Autoconf macros for software developers
+	  around the world. This package contains the complete content
+	  of the Autoconf Macro Archive as found at
+	  http://www.gnu.org/software/autoconf-archive/.
diff --git a/rules/host-autotools-autoconf-archive.make b/rules/host-autotools-autoconf-archive.make
new file mode 100644
index 000000000000..f47f645dfa66
--- /dev/null
+++ b/rules/host-autotools-autoconf-archive.make
@@ -0,0 +1,41 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Marc Kleine-Budde <mkl@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_AUTOTOOLS_AUTOCONF_ARCHIVE) += host-autotools-autoconf-archive
+
+#
+# Paths and names
+#
+HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_VERSION	:= 2019.01.06
+HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_MD5	:= d46413c8b00a125b1529bae385bbec55
+HOST_AUTOTOOLS_AUTOCONF_ARCHIVE		:= autoconf-archive-$(HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_VERSION)
+HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_SUFFIX	:= tar.xz
+HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_URL	:= $(call ptx/mirror, GNU, autoconf-archive/$(HOST_AUTOTOOLS_AUTOCONF_ARCHIVE).$(HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_SUFFIX))
+HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_SOURCE	:= $(SRCDIR)/$(HOST_AUTOTOOLS_AUTOCONF_ARCHIVE).$(HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_SUFFIX)
+HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_DIR	:= $(HOST_BUILDDIR)/$(HOST_AUTOTOOLS_AUTOCONF_ARCHIVE)
+HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_LICENSE	:= GPL-3.0-or-later WITH Autoconf-exception-3.0
+HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_LICENSE_FILES := \
+	file://COPYING;md5=11cc2d3ee574f9d6b7ee797bdce4d423 \
+	file://COPYING.EXCEPTION;md5=fdef168ebff3bc2f13664c365a5fb515 \
+	file://README;startline=51;endline=67;md5=28397cd25dc41e1932e0d1127aaf1836
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_CONF_TOOL	:= autoconf
+
+# vim: syntax=make
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ptxdist] [PATCH v1 07/11] rootfs: add tpm user and group
  2019-05-28 11:57 [ptxdist] [PATCH v1 01/11] rsync: add "rsync over ssh" feature Roland Hieber
                   ` (4 preceding siblings ...)
  2019-05-28 11:57 ` [ptxdist] [PATCH v1 06/11] host-autotools-autoconf-archive: " Roland Hieber
@ 2019-05-28 11:57 ` Roland Hieber
  2019-05-28 11:57 ` [ptxdist] [PATCH v1 08/11] tpm: add new menu Roland Hieber
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Roland Hieber @ 2019-05-28 11:57 UTC (permalink / raw)
  To: PTXdist Mailing List; +Cc: Roland Hieber

Allow the TPM services to run as an unprivileged user.

Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 projectroot/etc/group  | 1 +
 projectroot/etc/passwd | 1 +
 2 files changed, 2 insertions(+)

diff --git a/projectroot/etc/group b/projectroot/etc/group
index ca3fe0d89d05..96f7578d3e40 100644
--- a/projectroot/etc/group
+++ b/projectroot/etc/group
@@ -4,6 +4,7 @@ adm:x:4:
 kvm:x:36:
 shadow:x:42:
 utmp:x:43:
+tss:x:98:
 users:x:100:
 ftp:x:101:
 www:x:102:
diff --git a/projectroot/etc/passwd b/projectroot/etc/passwd
index f559f3c6a34d..9b35a54de297 100644
--- a/projectroot/etc/passwd
+++ b/projectroot/etc/passwd
@@ -2,6 +2,7 @@ root:x:0:0:root:/root:/bin/sh
 daemon:x:1:1:daemon:/usr/sbin:/bin/sh
 ftp:x:11:101:ftp user:/home:/bin/false
 www:x:12:102:www user:/home:/bin/false
+tss:x:98:98:TSS Daemon User:/dev/null:/bin/false
 sshd:x:100:65534:SSH Server:/var/run/sshd:/bin/false
 mysql:x:101:117:mySQL Server:/var/run/mysql:/bin/false
 messagebus:x:103:104:messagebus:/dev/null:/bin/false
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ptxdist] [PATCH v1 08/11] tpm: add new menu
  2019-05-28 11:57 [ptxdist] [PATCH v1 01/11] rsync: add "rsync over ssh" feature Roland Hieber
                   ` (5 preceding siblings ...)
  2019-05-28 11:57 ` [ptxdist] [PATCH v1 07/11] rootfs: add tpm user and group Roland Hieber
@ 2019-05-28 11:57 ` Roland Hieber
  2019-05-28 11:57 ` [ptxdist] [PATCH v1 09/11] tpm2-tss: new package Roland Hieber
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Roland Hieber @ 2019-05-28 11:57 UTC (permalink / raw)
  To: PTXdist Mailing List; +Cc: Marc Kleine-Budde, Roland Hieber

From: Marc Kleine-Budde <mkl@pengutronix.de>

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 rules/tpm.in | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100644 rules/tpm.in

diff --git a/rules/tpm.in b/rules/tpm.in
new file mode 100644
index 000000000000..ef93315a3131
--- /dev/null
+++ b/rules/tpm.in
@@ -0,0 +1,5 @@
+## SECTION=security
+
+menu "tpm                           "
+source "generated/tpm.in"
+endmenu
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ptxdist] [PATCH v1 09/11] tpm2-tss: new package
  2019-05-28 11:57 [ptxdist] [PATCH v1 01/11] rsync: add "rsync over ssh" feature Roland Hieber
                   ` (6 preceding siblings ...)
  2019-05-28 11:57 ` [ptxdist] [PATCH v1 08/11] tpm: add new menu Roland Hieber
@ 2019-05-28 11:57 ` Roland Hieber
  2019-05-28 11:57 ` [ptxdist] [PATCH v1 10/11] tpm2-abrmd: " Roland Hieber
  2019-05-28 11:57 ` [ptxdist] [PATCH v1 11/11] tpm2-tools: " Roland Hieber
  9 siblings, 0 replies; 11+ messages in thread
From: Roland Hieber @ 2019-05-28 11:57 UTC (permalink / raw)
  To: PTXdist Mailing List
  Cc: Roland Hieber, Michael Grzeschik, Marc Kleine-Budde, Jan Luebbe,
	Bastian Krause

From: Marc Kleine-Budde <mkl@pengutronix.de>

Co-authored-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Co-authored-by: Jan Luebbe <jlu@pengutronix.de>
Co-authored-by: Bastian Krause <bst@pengutronix.de>
Co-authored-by: Roland Hieber <rhi@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Bastian Krause <bst@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 .../usr/lib/udev/rules.d/70-tpm-udev.rules    |  4 +
 rules/tpm2-tss.in                             | 22 +++++
 rules/tpm2-tss.make                           | 89 +++++++++++++++++++
 3 files changed, 115 insertions(+)
 create mode 100644 projectroot/usr/lib/udev/rules.d/70-tpm-udev.rules
 create mode 100644 rules/tpm2-tss.in
 create mode 100644 rules/tpm2-tss.make

diff --git a/projectroot/usr/lib/udev/rules.d/70-tpm-udev.rules b/projectroot/usr/lib/udev/rules.d/70-tpm-udev.rules
new file mode 100644
index 000000000000..96d2c4612a0e
--- /dev/null
+++ b/projectroot/usr/lib/udev/rules.d/70-tpm-udev.rules
@@ -0,0 +1,4 @@
+# tpm devices can only be accessed by the tss user but the tss
+# group members can access tpmrm devices
+KERNEL=="tpm[0-9]*", MODE="0660", OWNER="tss"
+KERNEL=="tpmrm[0-9]*", MODE="0660", OWNER="tss", GROUP="tss"
diff --git a/rules/tpm2-tss.in b/rules/tpm2-tss.in
new file mode 100644
index 000000000000..dbb31007276b
--- /dev/null
+++ b/rules/tpm2-tss.in
@@ -0,0 +1,22 @@
+## SECTION=tpm
+
+config TPM2_TSS
+	tristate
+	select HOST_AUTOTOOLS_AUTOCONF_ARCHIVE
+	select OPENSSL
+	prompt "tpm2-tss"
+	help
+	  TPM2 Software stack library - TSS and TCTI libraries
+
+	  TPM2.0 TSS (Software Stack) consists of API layers provided
+	  to support TPM 2.0 chips. It is made out of three layers:
+
+	  * System API (SAPI), which implements the system layer API;
+	  * TPM Command Transmission Interface (TCTI), which is used
+	    by SAPI to allow communication with the TAB/RM layer;
+	  * Trusted Access Broker/Resource Manager (TAB/RM), which
+	    handles TPM resources and process coordination.
+
+	  This package contains the TSS and TCTI libraries that client
+	  applications will link against when they require accessing
+	  the TPM.
diff --git a/rules/tpm2-tss.make b/rules/tpm2-tss.make
new file mode 100644
index 000000000000..e20df8eca0d2
--- /dev/null
+++ b/rules/tpm2-tss.make
@@ -0,0 +1,89 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Marc Kleine-Budde <mkl@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_TPM2_TSS) += tpm2-tss
+
+#
+# Paths and names
+#
+TPM2_TSS_VERSION	:= 2.2.2
+TPM2_TSS_MD5		:= db341b66daab34cbb4d6a4e5a8745001
+TPM2_TSS		:= tpm2-tss-$(TPM2_TSS_VERSION)
+TPM2_TSS_SUFFIX		:= tar.gz
+TPM2_TSS_URL		:= https://github.com/tpm2-software/tpm2-tss/releases/download/$(TPM2_TSS_VERSION)/$(TPM2_TSS).$(TPM2_TSS_SUFFIX)
+TPM2_TSS_SOURCE		:= $(SRCDIR)/$(TPM2_TSS).$(TPM2_TSS_SUFFIX)
+TPM2_TSS_DIR		:= $(BUILDDIR)/$(TPM2_TSS)
+TPM2_TSS_LICENSE	:= BSD-2-Clause
+TPM2_TSS_LICENSE_FILES	:= file://LICENSE;md5=500b2e742befc3da00684d8a1d5fd9da
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+TPM2_TSS_CONF_TOOL	:= autoconf
+TPM2_TSS_CONF_OPT	:= \
+	$(CROSS_AUTOCONF_USR) \
+	--disable-unit \
+	--enable-esapi \
+	--disable-tcti-device-async \
+	--disable-tcti-partial-reads \
+	--enable-tcti-device \
+	--enable-tcti-mssim \
+	--disable-integration \
+	--disable-debug \
+	--disable-defaultflags \
+	--disable-doxygen-doc \
+	--disable-doxygen-dot \
+	--disable-doxygen-man \
+	--disable-doxygen-rtf \
+	--disable-doxygen-xml \
+	--disable-doxygen-chm \
+	--disable-doxygen-chi \
+	--disable-doxygen-html \
+	--disable-doxygen-ps \
+	--disable-doxygen-pdf \
+	--disable-code-coverage \
+	--with-crypto=ossl \
+	--with-udevrulesdir=/usr/lib/udev/rules.d \
+	--without-gcov
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/tpm2-tss.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, tpm2-tss)
+	@$(call install_fixup, tpm2-tss,PRIORITY,optional)
+	@$(call install_fixup, tpm2-tss,SECTION,base)
+	@$(call install_fixup, tpm2-tss,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
+	@$(call install_fixup, tpm2-tss,DESCRIPTION,missing)
+
+	@$(call install_lib, tpm2-tss, 0, 0, 0644, libtss2-esys)
+	@$(call install_lib, tpm2-tss, 0, 0, 0644, libtss2-mu)
+	@$(call install_lib, tpm2-tss, 0, 0, 0644, libtss2-sys)
+	@$(call install_lib, tpm2-tss, 0, 0, 0644, libtss2-tcti-device)
+	@$(call install_lib, tpm2-tss, 0, 0, 0644, libtss2-tcti-mssim)
+
+	@$(call install_alternative, tpm2-tss, 0, 0, 0644, \
+		/usr/lib/udev/rules.d/70-tpm-udev.rules)
+
+	@$(call install_finish, tpm2-tss)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ptxdist] [PATCH v1 10/11] tpm2-abrmd: new package
  2019-05-28 11:57 [ptxdist] [PATCH v1 01/11] rsync: add "rsync over ssh" feature Roland Hieber
                   ` (7 preceding siblings ...)
  2019-05-28 11:57 ` [ptxdist] [PATCH v1 09/11] tpm2-tss: new package Roland Hieber
@ 2019-05-28 11:57 ` Roland Hieber
  2019-05-28 11:57 ` [ptxdist] [PATCH v1 11/11] tpm2-tools: " Roland Hieber
  9 siblings, 0 replies; 11+ messages in thread
From: Roland Hieber @ 2019-05-28 11:57 UTC (permalink / raw)
  To: PTXdist Mailing List
  Cc: Michael Grzeschik, Marc Kleine-Budde, Jan Luebbe, Roland Hieber

From: Marc Kleine-Budde <mkl@pengutronix.de>

Co-authored-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Co-authored-by: Sascha Hauer <s.hauer@pengutronix.de>
Co-authored-by: Jan Luebbe <jlu@pengutronix.de>
Co-authored-by: Roland Hieber <rhi@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 .../usr/lib/systemd/system/tpm2-abrmd.service | 15 ++++
 rules/tpm2-abrmd.in                           | 18 +++++
 rules/tpm2-abrmd.make                         | 81 +++++++++++++++++++
 3 files changed, 114 insertions(+)
 create mode 100644 projectroot/usr/lib/systemd/system/tpm2-abrmd.service
 create mode 100644 rules/tpm2-abrmd.in
 create mode 100644 rules/tpm2-abrmd.make

diff --git a/projectroot/usr/lib/systemd/system/tpm2-abrmd.service b/projectroot/usr/lib/systemd/system/tpm2-abrmd.service
new file mode 100644
index 000000000000..204834738543
--- /dev/null
+++ b/projectroot/usr/lib/systemd/system/tpm2-abrmd.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=TPM2 Access Broker and Resource Management Daemon
+ConditionPathExists=/dev/tpm0
+
+[Service]
+Type=dbus
+Restart=always
+RestartSec=5
+BusName=com.intel.tss2.Tabrmd
+StandardOutput=syslog
+ExecStart=/usr/sbin/tpm2-abrmd
+User=tss
+
+[Install]
+WantedBy=multi-user.target
diff --git a/rules/tpm2-abrmd.in b/rules/tpm2-abrmd.in
new file mode 100644
index 000000000000..1ab0a6a7fe0e
--- /dev/null
+++ b/rules/tpm2-abrmd.in
@@ -0,0 +1,18 @@
+## SECTION=tpm
+
+config TPM2_ABRMD
+	tristate
+	select HOST_AUTOTOOLS_AUTOCONF_ARCHIVE
+	select DBUS
+	select GLIB
+	select TPM2_TSS
+	select HOST_DBUS_GLIB
+	prompt "tpm2-abrmd"
+	help
+	  TPM2 Access Broker & Resource Management Daemon implementing
+	  the TCG spec.
+
+	  This is a system daemon implementing the TPM2 access broker
+	  (TAB) & Resource Manager (RM) spec from the TCG. The daemon
+	  (tpm2-abrmd) is implemented using Glib and the GObject
+	  system.
diff --git a/rules/tpm2-abrmd.make b/rules/tpm2-abrmd.make
new file mode 100644
index 000000000000..9516efc11ab9
--- /dev/null
+++ b/rules/tpm2-abrmd.make
@@ -0,0 +1,81 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Marc Kleine-Budde <mkl@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_TPM2_ABRMD) += tpm2-abrmd
+
+#
+# Paths and names
+#
+TPM2_ABRMD_VERSION		:= 2.1.1
+TPM2_ABRMD_MD5			:= 47f9ee5be9cedec3a8f1a03f60ead4d5
+TPM2_ABRMD			:= tpm2-abrmd-$(TPM2_ABRMD_VERSION)
+TPM2_ABRMD_SUFFIX		:= tar.gz
+TPM2_ABRMD_URL			:= https://github.com/tpm2-software/tpm2-abrmd/releases/download/$(TPM2_ABRMD_VERSION)/$(TPM2_ABRMD).$(TPM2_ABRMD_SUFFIX)
+TPM2_ABRMD_SOURCE		:= $(SRCDIR)/$(TPM2_ABRMD).$(TPM2_ABRMD_SUFFIX)
+TPM2_ABRMD_DIR			:= $(BUILDDIR)/$(TPM2_ABRMD)
+TPM2_ABRMD_LICENSE		:= BSD-2-Clause
+TPM2_ABRMD_LICENSE_FILES	:= file://LICENSE;md5=500b2e742befc3da00684d8a1d5fd9da
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+TPM2_ABRMD_CONF_TOOL	:= autoconf
+TPM2_ABRMD_CONF_OPT	:= \
+	$(CROSS_AUTOCONF_USR) \
+	--disable-unit \
+	--disable-code-coverage \
+	--disable-valgrind \
+	--disable-valgrind-memcheck \
+	--disable-valgrind-helgrind \
+	--disable-valgrind-drd \
+	--disable-valgrind-sgcheck \
+	--disable-dlclose \
+	--disable-test-hwtpm \
+	--disable-integration \
+	--without-gcov \
+	--with-systemdsystemunitdir=/usr/lib/systemd/system \
+	--with-dbuspolicydir=/usr/share/dbus-1/system.d
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/tpm2-abrmd.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, tpm2-abrmd)
+	@$(call install_fixup, tpm2-abrmd,PRIORITY,optional)
+	@$(call install_fixup, tpm2-abrmd,SECTION,base)
+	@$(call install_fixup, tpm2-abrmd,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
+	@$(call install_fixup, tpm2-abrmd,DESCRIPTION,missing)
+
+	@$(call install_lib, tpm2-abrmd, 0, 0, 0644, libtss2-tcti-tabrmd)
+	@$(call install_copy, tpm2-abrmd, 0, 0, 0755, -, /usr/sbin/tpm2-abrmd)
+
+	@$(call install_alternative, tpm2-abrmd, 0, 0, 0644, \
+		/usr/lib/systemd/system/tpm2-abrmd.service)
+
+	@$(call install_alternative, tpm2-abrmd, 0, 0, 0644, \
+		/usr/share/dbus-1/system.d/tpm2-abrmd.conf)
+	@$(call install_alternative, tpm2-abrmd, 0, 0, 0644, \
+		/usr/share/dbus-1/system-services/com.intel.tss2.Tabrmd.service)
+
+	@$(call install_finish, tpm2-abrmd)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ptxdist] [PATCH v1 11/11] tpm2-tools: new package
  2019-05-28 11:57 [ptxdist] [PATCH v1 01/11] rsync: add "rsync over ssh" feature Roland Hieber
                   ` (8 preceding siblings ...)
  2019-05-28 11:57 ` [ptxdist] [PATCH v1 10/11] tpm2-abrmd: " Roland Hieber
@ 2019-05-28 11:57 ` Roland Hieber
  9 siblings, 0 replies; 11+ messages in thread
From: Roland Hieber @ 2019-05-28 11:57 UTC (permalink / raw)
  To: PTXdist Mailing List
  Cc: Michael Olbrich, Michael Grzeschik, Marc Kleine-Budde,
	Jan Luebbe, Roland Hieber

From: Marc Kleine-Budde <mkl@pengutronix.de>

Co-authored-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Co-authored-by: Michael Olbrich <m.olbrich@pengutronix.de>
Co-authored-by: Jan Luebbe <jlu@pengutronix.de>
Co-authored-by: Roland Hieber <rhi@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 rules/tpm2-tools.in   |  13 ++++++
 rules/tpm2-tools.make | 105 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 118 insertions(+)
 create mode 100644 rules/tpm2-tools.in
 create mode 100644 rules/tpm2-tools.make

diff --git a/rules/tpm2-tools.in b/rules/tpm2-tools.in
new file mode 100644
index 000000000000..4c9cbaa92352
--- /dev/null
+++ b/rules/tpm2-tools.in
@@ -0,0 +1,13 @@
+## SECTION=tpm
+
+config TPM2_TOOLS
+	tristate
+	select TPM2_TSS
+	select OPENSSL
+	select LIBCURL
+	prompt "tpm2-tools"
+	help
+	  This package contains a set of tools to use with TPM 2.0
+	  chips, for common tasks and features provided by the
+	  hardware; such as for doing basic key management,
+	  attestation, encryption and signing.
diff --git a/rules/tpm2-tools.make b/rules/tpm2-tools.make
new file mode 100644
index 000000000000..0654c52d87a9
--- /dev/null
+++ b/rules/tpm2-tools.make
@@ -0,0 +1,105 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Marc Kleine-Budde <mkl@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_TPM2_TOOLS) += tpm2-tools
+
+#
+# Paths and names
+#
+TPM2_TOOLS_VERSION		:= 3.1.4
+TPM2_TOOLS_MD5			:= 61b4a382d24c950148a3f5fe41ac2306
+TPM2_TOOLS			:= tpm2-tools-$(TPM2_TOOLS_VERSION)
+TPM2_TOOLS_SUFFIX		:= tar.gz
+TPM2_TOOLS_URL			:= https://github.com/tpm2-software/tpm2-tools/releases/download/$(TPM2_TOOLS_VERSION)/$(TPM2_TOOLS).$(TPM2_TOOLS_SUFFIX)
+TPM2_TOOLS_SOURCE		:= $(SRCDIR)/$(TPM2_TOOLS).$(TPM2_TOOLS_SUFFIX)
+TPM2_TOOLS_DIR			:= $(BUILDDIR)/$(TPM2_TOOLS)
+TPM2_TOOLS_LICENSE		:= BSD-3-Clause
+TPM2_TOOLS_LICENSE_FILES	:= file://LICENSE;md5=91b7c548d73ea16537799e8060cea819
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+TPM2_TOOLS_CONF_TOOL	:= autoconf
+TPM2_TOOLS_CONF_OPT	:= \
+	$(CROSS_AUTOCONF_USR) \
+	--disable-code-coverage \
+	--disable-unit \
+	--enable-hardening \
+	--without-gcov
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+TPM2_TOOLS_PROGS := \
+	tpm2_activatecredential \
+	tpm2_certify \
+	tpm2_create \
+	tpm2_createpolicy \
+	tpm2_createprimary \
+	tpm2_dictionarylockout \
+	tpm2_encryptdecrypt \
+	tpm2_evictcontrol \
+	tpm2_getcap \
+	tpm2_getmanufec \
+	tpm2_getpubak \
+	tpm2_getpubek \
+	tpm2_getrandom \
+	tpm2_hash \
+	tpm2_hmac \
+	tpm2_listpersistent \
+	tpm2_load \
+	tpm2_loadexternal \
+	tpm2_makecredential \
+	tpm2_nvdefine \
+	tpm2_nvlist \
+	tpm2_nvread \
+	tpm2_nvreadlock \
+	tpm2_nvrelease \
+	tpm2_nvwrite \
+	tpm2_pcrevent \
+	tpm2_pcrextend \
+	tpm2_pcrlist \
+	tpm2_quote \
+	tpm2_rc_decode \
+	tpm2_readpublic \
+	tpm2_rsadecrypt \
+	tpm2_rsaencrypt \
+	tpm2_send \
+	tpm2_sign \
+	tpm2_startup \
+	tpm2_takeownership \
+	tpm2_unseal \
+	tpm2_verifysignature
+
+$(STATEDIR)/tpm2-tools.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, tpm2-tools)
+	@$(call install_fixup, tpm2-tools,PRIORITY,optional)
+	@$(call install_fixup, tpm2-tools,SECTION,base)
+	@$(call install_fixup, tpm2-tools,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
+	@$(call install_fixup, tpm2-tools,DESCRIPTION,missing)
+
+	@$(foreach prog, $(TPM2_TOOLS_PROGS), \
+                $(call install_copy, tpm2-tools, 0, 0, 0755, -, /usr/bin/$(prog))$(ptx/nl))
+
+	@$(call install_finish, tpm2-tools)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-05-28 11:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-28 11:57 [ptxdist] [PATCH v1 01/11] rsync: add "rsync over ssh" feature Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 02/11] yajl: improve kconfig help text Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 03/11] minicoredumper: enable and configure minicoredumper Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 04/11] paho-mqtt-c: new package Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 05/11] paho-mqtt-cpp: " Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 06/11] host-autotools-autoconf-archive: " Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 07/11] rootfs: add tpm user and group Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 08/11] tpm: add new menu Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 09/11] tpm2-tss: new package Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 10/11] tpm2-abrmd: " Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 11/11] tpm2-tools: " Roland Hieber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox