From 5726763b02a16bf5f3a2b11c7864742df6194c9e Mon Sep 17 00:00:00 2001 From: Lans Zhang Date: Fri, 21 Jul 2017 11:43:53 +0800 Subject: tpm2simulator: add the native build Signed-off-by: Lans Zhang --- .../python/python-beautifulsoup4_4.4.1.bb | 29 +++++++++++++++++ .../tpm2simulator/tpm2simulator-native_git.bb | 36 ++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 meta-tpm2/recipes-devtools/python/python-beautifulsoup4_4.4.1.bb create mode 100644 meta-tpm2/recipes-devtools/tpm2simulator/tpm2simulator-native_git.bb 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 @@ +DESCRIPTION = "Screen-scraping library" +HOMEPAGE = "https://pypi.python.org/pypi/beautifulsoup4/" +SECTION = "devel/python" + +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://COPYING.txt;md5=39dacabe5494f61c8680f6fa7323b596" + +SRCNAME = "beautifulsoup4" + +SRC_URI = "\ + https://pypi.python.org/packages/source/b/${SRCNAME}/${SRCNAME}-${PV}.tar.gz \ +" + +SRC_URI[md5sum] = "8fbd9a7cac0704645fa20d1419036815" +SRC_URI[sha256sum] = "87d4013d0625d4789a4f56b8d79a04d5ce6db1152bb65f1d39744f7709a366b4" + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit setuptools + +# avoid "error: option --single-version-externally-managed not recognized" +DISTUTILS_INSTALL_ARGS = "\ + --root=${D} \ + --prefix=${prefix} \ + --install-lib=${PYTHON_SITEPACKAGES_DIR} \ + --install-data=${datadir} \ +" + +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 @@ +SUMMARY = "TPM 2.0 Simulator Extraction Script" +DESCRIPTION = "The result of the extraction scripts is a complete set \ +of the source files for a Trusted Platform Module (TPM) 2.0 Simulator, \ +which runs under Windows, Linux, as well as Genode (by applying the \ +appropriate patches). \ +" + +LICENSE = "BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=1415f7be284540b81d9d28c67c1a6b8b" + +DEPENDS += "\ + python-native \ + python-beautifulsoup4-native \ +" + +PV = "1.38+git${SRCPV}" + +SRC_URI = "\ + git://github.com/stwagnr/tpm2simulator.git \ +" +SRCREV = "b9646b90ce26ad34f7fc5c7099f28053eab94333" + +S = "${WORKDIR}/git" + +inherit native pythonnative lib_package cmake + +EXTRA_OECMAKE = "\ + -DCMAKE_BUILD_TYPE=Debug \ + -DSPEC_VERSION=116 \ +" + +OECMAKE_SOURCEPATH = "${S}/cmake" + +do_configure_prepend() { + sed -i 's/^SET = False/SET = True/' "${S}/scripts/settings.py" +} -- cgit v1.2.3-54-g00ecf