diff options
| author | Zhenhua Luo <b19537@freescale.com> | 2012-08-30 09:07:09 +0000 |
|---|---|---|
| committer | Matthew McClintock <msm@freescale.com> | 2012-09-19 11:15:29 -0500 |
| commit | 8308c30b22e629425600fffdd9df185046bb67c5 (patch) | |
| tree | f0095683b55954275fcaa070068e67251347564f /recipes-tools | |
| parent | ed785145ba6817ad1d1fdb79bbdfae4bfdbf75e1 (diff) | |
| download | meta-fsl-ppc-8308c30b22e629425600fffdd9df185046bb67c5.tar.gz | |
lio-utils: add lio-utils-4.0
Signed-off-by: Zhenhua Luo <b19537@freescale.com>
Diffstat (limited to 'recipes-tools')
| -rw-r--r-- | recipes-tools/lio-utils/lio-utils_4.0.bb | 48 |
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 @@ | |||
| 1 | SUMMARY = "lio-utils" | ||
| 2 | DESCRIPTION = "a simple low-level configuration tool set for the Target+iSCSI (LIO)" | ||
| 3 | HOMEPAGE = "http://linux-iscsi.org/index.php/Lio-utils" | ||
| 4 | LICENSE = "GPLv2" | ||
| 5 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=c3ea231a32635cbb5debedf3e88aa3df" | ||
| 6 | |||
| 7 | SRC_URI = "git://risingtidesystems.com/lio-utils.git;protocal=git" | ||
| 8 | SRCREV = "lio-4.0" | ||
| 9 | S = "${WORKDIR}/git" | ||
| 10 | |||
| 11 | inherit distutils | ||
| 12 | |||
| 13 | EXTRA_OEMAKE += "-C ${S}/tools PREFIX=${prefix} DESTDIR=${D}" | ||
| 14 | |||
| 15 | # pass LDFLAGS to linker to avoid missing GNU_HASH QA errors | ||
| 16 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
| 17 | do_compile() { | ||
| 18 | cd ${S}/tcm-py | ||
| 19 | distutils_do_compile | ||
| 20 | |||
| 21 | cd ${S}/lio-py | ||
| 22 | distutils_do_compile | ||
| 23 | |||
| 24 | if test -d ${S}/tools; then | ||
| 25 | oe_runmake | ||
| 26 | fi | ||
| 27 | } | ||
| 28 | |||
| 29 | do_install() { | ||
| 30 | cd ${S}/tcm-py | ||
| 31 | distutils_do_install | ||
| 32 | |||
| 33 | cd ${S}/lio-py | ||
| 34 | distutils_do_install | ||
| 35 | |||
| 36 | SITE_PACKAGES=${D}/${PYTHON_SITEPACKAGES_DIR} | ||
| 37 | [ ! -d ${D}/${sbindir} ] && install -d ${D}/${sbindir} | ||
| 38 | for var in tcm_node tcm_dump tcm_loop tcm_fabric lio_dump lio_node; do | ||
| 39 | chmod a+x ${SITE_PACKAGES}/${var}.py | ||
| 40 | [ ! -f ${D}/${sbindir}/${var} ] && ln -s ${PYTHON_SITEPACKAGES_DIR}/${var}.py ${D}/${sbindir}/${var} | ||
| 41 | done | ||
| 42 | |||
| 43 | if test -d ${S}/tools; then | ||
| 44 | oe_runmake install | ||
| 45 | fi | ||
| 46 | } | ||
| 47 | |||
| 48 | FILES_${PN} += "${sbindir}/*" | ||
