aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhenhua Luo <b19537@freescale.com>2012-08-30 09:07:09 +0000
committerMatthew McClintock <msm@freescale.com>2012-09-19 11:15:29 -0500
commit8308c30b22e629425600fffdd9df185046bb67c5 (patch)
treef0095683b55954275fcaa070068e67251347564f
parented785145ba6817ad1d1fdb79bbdfae4bfdbf75e1 (diff)
downloadmeta-fsl-ppc-8308c30b22e629425600fffdd9df185046bb67c5.tar.gz
meta-fsl-ppc-8308c30b22e629425600fffdd9df185046bb67c5.tar.bz2
meta-fsl-ppc-8308c30b22e629425600fffdd9df185046bb67c5.zip
lio-utils: add lio-utils-4.0
Signed-off-by: Zhenhua Luo <b19537@freescale.com>
-rw-r--r--recipes-tools/lio-utils/lio-utils_4.0.bb48
1 files changed, 48 insertions, 0 deletions
diff --git a/recipes-tools/lio-utils/lio-utils_4.0.bb b/recipes-tools/lio-utils/lio-utils_4.0.bb
new file mode 100644
index 0000000..d461350
--- /dev/null
+++ b/recipes-tools/lio-utils/lio-utils_4.0.bb
@@ -0,0 +1,48 @@
+SUMMARY = "lio-utils"
+DESCRIPTION = "a simple low-level configuration tool set for the Target+iSCSI (LIO)"
+HOMEPAGE = "http://linux-iscsi.org/index.php/Lio-utils"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://debian/copyright;md5=c3ea231a32635cbb5debedf3e88aa3df"
+
+SRC_URI = "git://risingtidesystems.com/lio-utils.git;protocal=git"
+SRCREV = "lio-4.0"
+S = "${WORKDIR}/git"
+
+inherit distutils
+
+EXTRA_OEMAKE += "-C ${S}/tools PREFIX=${prefix} DESTDIR=${D}"
+
+# pass LDFLAGS to linker to avoid missing GNU_HASH QA errors
+TARGET_CC_ARCH += "${LDFLAGS}"
+do_compile() {
+ cd ${S}/tcm-py
+ distutils_do_compile
+
+ cd ${S}/lio-py
+ distutils_do_compile
+
+ if test -d ${S}/tools; then
+ oe_runmake
+ fi
+}
+
+do_install() {
+ cd ${S}/tcm-py
+ distutils_do_install
+
+ cd ${S}/lio-py
+ distutils_do_install
+
+ SITE_PACKAGES=${D}/${PYTHON_SITEPACKAGES_DIR}
+ [ ! -d ${D}/${sbindir} ] && install -d ${D}/${sbindir}
+ for var in tcm_node tcm_dump tcm_loop tcm_fabric lio_dump lio_node; do
+ chmod a+x ${SITE_PACKAGES}/${var}.py
+ [ ! -f ${D}/${sbindir}/${var} ] && ln -s ${PYTHON_SITEPACKAGES_DIR}/${var}.py ${D}/${sbindir}/${var}
+ done
+
+ if test -d ${S}/tools; then
+ oe_runmake install
+ fi
+}
+
+FILES_${PN} += "${sbindir}/*"