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