meta-openpower: croserver: use pythonnative
croservers config script requires python2. Use the yocto built python2
instead of the build host python2, for cases where the build host does
not have python2 installed (or env python is python3).
Change-Id: Icf2f571979b00718184c560d5d886ff532d19f03
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/recipes-bsp/ecmd/croserver_git.bb b/recipes-bsp/ecmd/croserver_git.bb
index e34dba1..3763923 100644
--- a/recipes-bsp/ecmd/croserver_git.bb
+++ b/recipes-bsp/ecmd/croserver_git.bb
@@ -5,12 +5,14 @@
SRC_URI = "git://github.com/open-power/eCMD.git"
SRCREV = "b858b2f212bda2665ad41e821302e8196c7aec07"
-DEPENDS += "python-native zlib"
+DEPENDS += "zlib"
SRC_URI += "file://croserver.service"
S = "${WORKDIR}/git"
+inherit pythonnative
+
do_configure() {
LD="${CXX}" ${S}/config.py --without-swig --output-root ${B} --target obj --extensions "cmd cip" --build-verbose
}