tpm2simulator: add the native build

Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
This commit is contained in:
Lans Zhang
2017-07-21 11:43:53 +08:00
parent b8ea0f4da9
commit 5726763b02
2 changed files with 65 additions and 0 deletions

View File

@@ -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"

View File

@@ -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"
}