diff options
Diffstat (limited to 'meta/recipes-extended/mdadm/mdadm_3.3.2.bb')
-rw-r--r-- | meta/recipes-extended/mdadm/mdadm_3.3.2.bb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-extended/mdadm/mdadm_3.3.2.bb b/meta/recipes-extended/mdadm/mdadm_3.3.2.bb index c6a5635207..0742d73ffd 100644 --- a/meta/recipes-extended/mdadm/mdadm_3.3.2.bb +++ b/meta/recipes-extended/mdadm/mdadm_3.3.2.bb | |||
@@ -12,6 +12,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/raid/mdadm/${BPN}-${PV}.tar.xz \ | |||
12 | file://mdadm-3.2.2_fix_for_x32.patch \ | 12 | file://mdadm-3.2.2_fix_for_x32.patch \ |
13 | file://gcc-4.9.patch \ | 13 | file://gcc-4.9.patch \ |
14 | file://mdadm-3.3.2_x32_abi_time_t.patch \ | 14 | file://mdadm-3.3.2_x32_abi_time_t.patch \ |
15 | file://run-ptest \ | ||
15 | " | 16 | " |
16 | 17 | ||
17 | SRC_URI[md5sum] = "44698d351501cac6a89072dc877eb220" | 18 | SRC_URI[md5sum] = "44698d351501cac6a89072dc877eb220" |
@@ -45,3 +46,31 @@ do_install() { | |||
45 | } | 46 | } |
46 | 47 | ||
47 | FILES_${PN} += "${base_libdir}/udev/rules.d/*.rules" | 48 | FILES_${PN} += "${base_libdir}/udev/rules.d/*.rules" |
49 | |||
50 | inherit ptest | ||
51 | |||
52 | do_compile_ptest() { | ||
53 | oe_runmake test | ||
54 | } | ||
55 | |||
56 | do_install_ptest() { | ||
57 | cp -a ${S}/tests ${D}${PTEST_PATH}/tests | ||
58 | cp ${S}/test ${D}${PTEST_PATH} | ||
59 | sed -e 's!sleep 0.*!sleep 1!g; s!/var/tmp!/!g' -i ${D}${PTEST_PATH}/test | ||
60 | ln -s /sbin/mdadm ${D}${PTEST_PATH}/mdadm | ||
61 | for prg in test_stripe swap_super raid6check | ||
62 | do | ||
63 | install -D -m 755 $prg ${D}${PTEST_PATH}/ | ||
64 | done | ||
65 | } | ||
66 | RDEPENDS_${PN}-ptest += "bash" | ||
67 | RRECOMMENDS_${PN}-ptest += " \ | ||
68 | coreutils \ | ||
69 | util-linux \ | ||
70 | kernel-module-loop \ | ||
71 | kernel-module-linear \ | ||
72 | kernel-module-raid0 \ | ||
73 | kernel-module-raid1 \ | ||
74 | kernel-module-raid10 \ | ||
75 | kernel-module-raid456 \ | ||
76 | " | ||