]> code.ossystems Code Review - meta-freescale.git/commitdiff
lio-utils: fix runtime issue
authorZhenhua Luo <b19537@freescale.com>
Fri, 28 Sep 2012 12:40:33 +0000 (12:40 +0000)
committerMatthew McClintock <msm@freescale.com>
Tue, 4 Dec 2012 19:16:52 +0000 (13:16 -0600)
1. add rumtime dependency for lio-utils
    2. use commit ID to fix offline build issue
    3. install rc.target

Signed-off-by: Zhenhua Luo <b19537@freescale.com>
meta-fsl-ppc/recipes-tools/lio-utils/files/lio-utils-install-more-modules.patch [new file with mode: 0644]
meta-fsl-ppc/recipes-tools/lio-utils/lio-utils_4.0.bb

diff --git a/meta-fsl-ppc/recipes-tools/lio-utils/files/lio-utils-install-more-modules.patch b/meta-fsl-ppc/recipes-tools/lio-utils/files/lio-utils-install-more-modules.patch
new file mode 100644 (file)
index 0000000..7f9b02d
--- /dev/null
@@ -0,0 +1,15 @@
+Upstream-Status: Pending
+
+install tcm_snap module
+
+Signed-off-by: Zhenhua Luo <b19537@freescale.com>
+--- a/tcm-py/setup.py  2012-09-27 04:21:14.984705400 -0500
++++ b/tcm-py/setup.py  2012-09-27 04:20:18.387604661 -0500
+@@ -12,6 +12,6 @@
+       author_email='nab@linux-iscsi.org',
+       url='http://linux-iscsi.org',
+       license='GPL',
+-      py_modules=['tcm_dump', 'tcm_fileio','tcm_iblock','tcm_node','tcm_pscsi','tcm_ramdisk','tcm_loop','tcm_fabric']
++      py_modules=['tcm_dump', 'tcm_fileio','tcm_iblock','tcm_node','tcm_pscsi','tcm_ramdisk','tcm_loop','tcm_fabric', 'tcm_snap']
+ )
index d4613503fced20c5ac745d98f99e5d870142720e..31aa4fa07bfe4c636477378ce741e9025e2b0b53 100644 (file)
@@ -4,8 +4,11 @@ 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"
+PR = "r1"
+
+SRC_URI = "git://risingtidesystems.com/lio-utils.git;protocal=git \
+    file://lio-utils-install-more-modules.patch "
+SRCREV = "300d9df5e5fa29d7168fb8f0c84a4d9d57436fad"
 S = "${WORKDIR}/git"
 
 inherit distutils
@@ -43,6 +46,13 @@ do_install() {
     if test -d ${S}/tools; then
         oe_runmake install
     fi
+
+    install -d ${D}/etc/init.d/
+    install -m 755 ${S}/scripts/rc.target ${D}/etc/init.d/
 }
 
-FILES_${PN} += "${sbindir}/*"
+RDEPENDS_${PN} += "python-stringold python-subprocess python-shell \ 
+    python-datetime python-textutils python-crypt python-netclient python-email"
+
+
+FILES_${PN} += "${sbindir}/* /etc/init.d/*"