* [PATCH 0/2] enable swtpm-native
@ 2017-01-23 14:17 Patrick Ohly
2017-01-23 14:17 ` [PATCH 1/2] expect: support native compilation Patrick Ohly
2017-01-23 14:17 ` [PATCH 2/2] socat: " Patrick Ohly
0 siblings, 2 replies; 3+ messages in thread
From: Patrick Ohly @ 2017-01-23 14:17 UTC (permalink / raw)
To: openembedded-core
swtpm (from meta-security) can be compiled for the host and then be
used to provide a virtual TPM device in qemu. However, it depends on
the native flavor of some recipes in OE-core.
Patrick Ohly (2):
expect: support native compilation
socat: support native compilation
meta/recipes-connectivity/socat/socat_1.7.3.1.bb | 5 ++++-
meta/recipes-devtools/expect/expect_5.45.bb | 9 ++++++++-
2 files changed, 12 insertions(+), 2 deletions(-)
base-commit: 5ecdab6c2589a83bbbc522074052ff4438782102
--
git-series 0.9.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] expect: support native compilation
2017-01-23 14:17 [PATCH 0/2] enable swtpm-native Patrick Ohly
@ 2017-01-23 14:17 ` Patrick Ohly
2017-01-23 14:17 ` [PATCH 2/2] socat: " Patrick Ohly
1 sibling, 0 replies; 3+ messages in thread
From: Patrick Ohly @ 2017-01-23 14:17 UTC (permalink / raw)
To: openembedded-core
This is needed for building the swtpm TPM simulator (recipe
in meta-security).
"nativesdk" is added just in case that someone also wants this
in an SDK.
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
---
meta/recipes-devtools/expect/expect_5.45.bb | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/expect/expect_5.45.bb b/meta/recipes-devtools/expect/expect_5.45.bb
index b4dfe15..ab22a61 100644
--- a/meta/recipes-devtools/expect/expect_5.45.bb
+++ b/meta/recipes-devtools/expect/expect_5.45.bb
@@ -43,11 +43,16 @@ do_install_append() {
sed -e 's|$dir|${libdir}|' -i ${D}${libdir}/expect${PV}/pkgIndex.tcl
}
+# Apparently the public Tcl headers are only in /usr/include/tcl8.6
+# when building for the target.
+TCL_INCLUDE_PATH = ""
+TCL_INCLUDE_PATH_class-target = "--with-tclinclude=${STAGING_INCDIR}/tcl8.6"
+
EXTRA_OECONF += "--with-tcl=${STAGING_LIBDIR} \
- --with-tclinclude=${STAGING_INCDIR}/tcl8.6 \
--enable-shared \
--enable-threads \
--disable-rpath \
+ ${TCL_INCLUDE_PATH} \
"
EXTRA_OEMAKE_install = " 'SCRIPTS=' "
@@ -62,3 +67,5 @@ FILES_${PN}-dev = "${libdir_native}/expect${PV}/libexpect*.so \
FILES_${PN} += "${libdir}/libexpect${PV}.so \
${libdir}/expect${PV}/* \
"
+
+BBCLASSEXTEND = "native nativesdk"
--
git-series 0.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] socat: support native compilation
2017-01-23 14:17 [PATCH 0/2] enable swtpm-native Patrick Ohly
2017-01-23 14:17 ` [PATCH 1/2] expect: support native compilation Patrick Ohly
@ 2017-01-23 14:17 ` Patrick Ohly
1 sibling, 0 replies; 3+ messages in thread
From: Patrick Ohly @ 2017-01-23 14:17 UTC (permalink / raw)
To: openembedded-core
This is needed for building the swtpm TPM simulator (recipe
in meta-security).
Native compilation disables tcp-wrappers by default to simplify
the build.
"nativesdk" is added just in case that someone also wants this
in an SDK.
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
---
meta/recipes-connectivity/socat/socat_1.7.3.1.bb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-connectivity/socat/socat_1.7.3.1.bb b/meta/recipes-connectivity/socat/socat_1.7.3.1.bb
index 4da6d39..a579f1e 100644
--- a/meta/recipes-connectivity/socat/socat_1.7.3.1.bb
+++ b/meta/recipes-connectivity/socat/socat_1.7.3.1.bb
@@ -29,10 +29,13 @@ EXTRA_OECONF += "ac_cv_have_z_modifier=yes \
ac_cv_header_bsd_libutil_h=no \
"
-PACKAGECONFIG ??= "tcp-wrappers"
+PACKAGECONFIG_class-target ??= "tcp-wrappers"
+PACKAGECONFIG ??= ""
PACKAGECONFIG[tcp-wrappers] = "--enable-libwrap,--disable-libwrap,tcp-wrappers"
do_install_prepend () {
mkdir -p ${D}${bindir}
install -d ${D}${bindir} ${D}${mandir}/man1
}
+
+BBCLASSEXTEND = "native nativesdk"
--
git-series 0.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-01-23 14:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-23 14:17 [PATCH 0/2] enable swtpm-native Patrick Ohly
2017-01-23 14:17 ` [PATCH 1/2] expect: support native compilation Patrick Ohly
2017-01-23 14:17 ` [PATCH 2/2] socat: " Patrick Ohly
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.