summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/mdadm/mdadm_4.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/mdadm/mdadm_4.0.bb')
-rw-r--r--meta/recipes-extended/mdadm/mdadm_4.0.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-extended/mdadm/mdadm_4.0.bb b/meta/recipes-extended/mdadm/mdadm_4.0.bb
index c2288995ba..62614f060f 100644
--- a/meta/recipes-extended/mdadm/mdadm_4.0.bb
+++ b/meta/recipes-extended/mdadm/mdadm_4.0.bb
@@ -33,6 +33,8 @@ CFLAGS_append_mipsarchn64 = ' -D__SANE_USERSPACE_TYPES__'
33CFLAGS_append_mipsarchn32 = ' -D__SANE_USERSPACE_TYPES__' 33CFLAGS_append_mipsarchn32 = ' -D__SANE_USERSPACE_TYPES__'
34 34
35do_compile() { 35do_compile() {
36 # Point to right sbindir
37 sed -i -e "s;BINDIR = /sbin;BINDIR = $base_sbindir;" ${S}/Makefile
36 oe_runmake SYSROOT="${STAGING_DIR_TARGET}" 38 oe_runmake SYSROOT="${STAGING_DIR_TARGET}"
37} 39}
38 40
@@ -51,7 +53,7 @@ do_install_ptest() {
51 cp -a ${S}/tests ${D}${PTEST_PATH}/tests 53 cp -a ${S}/tests ${D}${PTEST_PATH}/tests
52 cp ${S}/test ${D}${PTEST_PATH} 54 cp ${S}/test ${D}${PTEST_PATH}
53 sed -e 's!sleep 0.*!sleep 1!g; s!/var/tmp!/!g' -i ${D}${PTEST_PATH}/test 55 sed -e 's!sleep 0.*!sleep 1!g; s!/var/tmp!/!g' -i ${D}${PTEST_PATH}/test
54 ln -s /sbin/mdadm ${D}${PTEST_PATH}/mdadm 56 ln -s ${base_sbindir}/mdadm ${D}${PTEST_PATH}/mdadm
55 for prg in test_stripe swap_super raid6check 57 for prg in test_stripe swap_super raid6check
56 do 58 do
57 install -D -m 755 $prg ${D}${PTEST_PATH}/ 59 install -D -m 755 $prg ${D}${PTEST_PATH}/