diff options
Diffstat (limited to 'meta-openpower/recipes-bsp')
-rw-r--r-- | meta-openpower/recipes-bsp/ecmd/croserver_git.bb | 6 | ||||
-rw-r--r-- | meta-openpower/recipes-bsp/ecmd/libecmd_git.bb | 61 | ||||
-rw-r--r-- | meta-openpower/recipes-bsp/pdbg/pdbg_2.5-rc1.bb (renamed from meta-openpower/recipes-bsp/pdbg/pdbg_2.4.bb) | 4 |
3 files changed, 66 insertions, 5 deletions
diff --git a/meta-openpower/recipes-bsp/ecmd/croserver_git.bb b/meta-openpower/recipes-bsp/ecmd/croserver_git.bb index 376392350..6dd7fae57 100644 --- a/meta-openpower/recipes-bsp/ecmd/croserver_git.bb +++ b/meta-openpower/recipes-bsp/ecmd/croserver_git.bb @@ -11,10 +11,12 @@ SRC_URI += "file://croserver.service" S = "${WORKDIR}/git" -inherit pythonnative +inherit python3native do_configure() { - LD="${CXX}" ${S}/config.py --without-swig --output-root ${B} --target obj --extensions "cmd cip" --build-verbose + LD="${CXX}" ${PYTHON} ${S}/config.py \ + --without-swig --output-root ${B} --target obj \ + --extensions "cmd cip" --build-verbose } do_compile() { diff --git a/meta-openpower/recipes-bsp/ecmd/libecmd_git.bb b/meta-openpower/recipes-bsp/ecmd/libecmd_git.bb new file mode 100644 index 000000000..c2e43a4ce --- /dev/null +++ b/meta-openpower/recipes-bsp/ecmd/libecmd_git.bb @@ -0,0 +1,61 @@ +SUMMARY = "eCMD" +DESCRIPTION = "eCMD is a hardware access API for POWER Systems" +LICENSE= "Apache-2.0" +LIC_FILES_CHKSUM = "file://${S}/NOTICE;md5=fee220301a2af3faf8f211524b4248ea" + +SRC_URI = "git://github.com/open-power/eCMD.git;branch=ecmd15;protocol=git" +SRCREV = "15e382180d49f7ea4117ccc341ca91e361721fd4" + +inherit python3native +DEPENDS = "zlib" + +S = "${WORKDIR}/git" + +export LD="${CXX}" +export SLDFLAGS="${LDFLAGS}" + +# use native config.py to build required ecmd extensions +do_configure() { + ${S}/config.py --without-swig --without-python --without-python3 --without-perl \ + --without-pyecmd --install-path ${D}${prefix} --output-root ${B} --target ${TARGET_ARCH} \ + --extensions "cmd cip" +} + +do_compile() { + oe_runmake all +} + +do_install() { + oe_runmake install + + # we don't need the target scripts or ecmd setup + rm ${D}${bindir}/target.* ${D}${bindir}/ecmdsetup.pl + + # ecmd installs to atypical places in the filesystem. + # move all the installed files to more conventional directories. + install -d ${D}${includedir} ${D}${datadir}/${BPN}/help ${D}${bindir} ${D}${libdir} + mv ${D}${prefix}/help/** ${D}${datadir}/${BPN}/help + mv ${D}${prefix}/${TARGET_ARCH}/bin/** ${D}${bindir} + mv ${D}${prefix}/${TARGET_ARCH}/lib/** ${D}${libdir} + + rm ${D}${bindir}/ecmdVersion + + rmdir ${D}${prefix}/help \ + ${D}${prefix}/${TARGET_ARCH}/lib \ + ${D}${prefix}/${TARGET_ARCH}/bin \ + ${D}${prefix}/${TARGET_ARCH}/perl \ + ${D}${prefix}/${TARGET_ARCH} +} + +# ecmd makefile assumes that dependencies are built from left to right. +PARALLEL_MAKE = "" + +# ecmd doesn't have proper library versioning +FILES_${PN}-dev_remove = "${libdir}/lib*.so" +FILES_${PN} += "${libdir}/lib*.so" + +RDEPENDS_${PN}-bin = "libecmd" + +# This allows someone to easily use ecmd bins, even if you don’t want them. +PACKAGE_BEFORE_PN = "libecmd-bin" +FILES_${PN}-bin += "${bindir}" diff --git a/meta-openpower/recipes-bsp/pdbg/pdbg_2.4.bb b/meta-openpower/recipes-bsp/pdbg/pdbg_2.5-rc1.bb index 08f936d18..42c65e680 100644 --- a/meta-openpower/recipes-bsp/pdbg/pdbg_2.4.bb +++ b/meta-openpower/recipes-bsp/pdbg/pdbg_2.5-rc1.bb @@ -3,10 +3,8 @@ DESCRIPTION = "pdbg allows JTAG-like debugging of the host POWER processors" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=3b83ef96387f14655fc854ddc3c6bd57" -PV = "2.4+git${SRCPV}" - SRC_URI += "git://github.com/open-power/pdbg.git" -SRCREV = "8b4611b5d8e7e2279fe4aa80c892fcfe10aa398d" +SRCREV = "6ae2ba655ca5e24b403a33bf15dff7261d3e7052" DEPENDS += "dtc-native" |