summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLans Zhang <jia.zhang@windriver.com>2017-07-21 11:43:53 +0800
committerLans Zhang <jia.zhang@windriver.com>2017-07-21 11:43:53 +0800
commit5726763b02a16bf5f3a2b11c7864742df6194c9e (patch)
tree3b943f648a3d5e39711cb51e5f64582b423efd22
parentb8ea0f4da9fd9fe5aaf11cd570af364050696609 (diff)
downloadmeta-secure-core-5726763b02a16bf5f3a2b11c7864742df6194c9e.tar.gz
tpm2simulator: add the native build
Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
-rw-r--r--meta-tpm2/recipes-devtools/python/python-beautifulsoup4_4.4.1.bb29
-rw-r--r--meta-tpm2/recipes-devtools/tpm2simulator/tpm2simulator-native_git.bb36
2 files changed, 65 insertions, 0 deletions
diff --git a/meta-tpm2/recipes-devtools/python/python-beautifulsoup4_4.4.1.bb b/meta-tpm2/recipes-devtools/python/python-beautifulsoup4_4.4.1.bb
new file mode 100644
index 0000000..999635e
--- /dev/null
+++ b/meta-tpm2/recipes-devtools/python/python-beautifulsoup4_4.4.1.bb
@@ -0,0 +1,29 @@
1DESCRIPTION = "Screen-scraping library"
2HOMEPAGE = "https://pypi.python.org/pypi/beautifulsoup4/"
3SECTION = "devel/python"
4
5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://COPYING.txt;md5=39dacabe5494f61c8680f6fa7323b596"
7
8SRCNAME = "beautifulsoup4"
9
10SRC_URI = "\
11 https://pypi.python.org/packages/source/b/${SRCNAME}/${SRCNAME}-${PV}.tar.gz \
12"
13
14SRC_URI[md5sum] = "8fbd9a7cac0704645fa20d1419036815"
15SRC_URI[sha256sum] = "87d4013d0625d4789a4f56b8d79a04d5ce6db1152bb65f1d39744f7709a366b4"
16
17S = "${WORKDIR}/${SRCNAME}-${PV}"
18
19inherit setuptools
20
21# avoid "error: option --single-version-externally-managed not recognized"
22DISTUTILS_INSTALL_ARGS = "\
23 --root=${D} \
24 --prefix=${prefix} \
25 --install-lib=${PYTHON_SITEPACKAGES_DIR} \
26 --install-data=${datadir} \
27"
28
29BBCLASSEXTEND = "native"
diff --git a/meta-tpm2/recipes-devtools/tpm2simulator/tpm2simulator-native_git.bb b/meta-tpm2/recipes-devtools/tpm2simulator/tpm2simulator-native_git.bb
new file mode 100644
index 0000000..f66d885
--- /dev/null
+++ b/meta-tpm2/recipes-devtools/tpm2simulator/tpm2simulator-native_git.bb
@@ -0,0 +1,36 @@
1SUMMARY = "TPM 2.0 Simulator Extraction Script"
2DESCRIPTION = "The result of the extraction scripts is a complete set \
3of the source files for a Trusted Platform Module (TPM) 2.0 Simulator, \
4which runs under Windows, Linux, as well as Genode (by applying the \
5appropriate patches). \
6"
7
8LICENSE = "BSD-2-Clause"
9LIC_FILES_CHKSUM = "file://LICENSE;md5=1415f7be284540b81d9d28c67c1a6b8b"
10
11DEPENDS += "\
12 python-native \
13 python-beautifulsoup4-native \
14"
15
16PV = "1.38+git${SRCPV}"
17
18SRC_URI = "\
19 git://github.com/stwagnr/tpm2simulator.git \
20"
21SRCREV = "b9646b90ce26ad34f7fc5c7099f28053eab94333"
22
23S = "${WORKDIR}/git"
24
25inherit native pythonnative lib_package cmake
26
27EXTRA_OECMAKE = "\
28 -DCMAKE_BUILD_TYPE=Debug \
29 -DSPEC_VERSION=116 \
30"
31
32OECMAKE_SOURCEPATH = "${S}/cmake"
33
34do_configure_prepend() {
35 sed -i 's/^SET = False/SET = True/' "${S}/scripts/settings.py"
36}