mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
mdadm: Avoid using hardocded sbin path
Use appropriate bitbake variable inplace of hardcoded sbin path in Makefile (From OE-Core rev: 9e01148176341916b1fcfebe46d70b75b42777d5) Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
4ef916ba24
commit
63b62e5d80
@@ -33,6 +33,8 @@ CFLAGS_append_mipsarchn64 = ' -D__SANE_USERSPACE_TYPES__'
|
|||||||
CFLAGS_append_mipsarchn32 = ' -D__SANE_USERSPACE_TYPES__'
|
CFLAGS_append_mipsarchn32 = ' -D__SANE_USERSPACE_TYPES__'
|
||||||
|
|
||||||
do_compile() {
|
do_compile() {
|
||||||
|
# Point to right sbindir
|
||||||
|
sed -i -e "s;BINDIR = /sbin;BINDIR = $base_sbindir;" ${S}/Makefile
|
||||||
oe_runmake SYSROOT="${STAGING_DIR_TARGET}"
|
oe_runmake SYSROOT="${STAGING_DIR_TARGET}"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,7 +53,7 @@ do_install_ptest() {
|
|||||||
cp -a ${S}/tests ${D}${PTEST_PATH}/tests
|
cp -a ${S}/tests ${D}${PTEST_PATH}/tests
|
||||||
cp ${S}/test ${D}${PTEST_PATH}
|
cp ${S}/test ${D}${PTEST_PATH}
|
||||||
sed -e 's!sleep 0.*!sleep 1!g; s!/var/tmp!/!g' -i ${D}${PTEST_PATH}/test
|
sed -e 's!sleep 0.*!sleep 1!g; s!/var/tmp!/!g' -i ${D}${PTEST_PATH}/test
|
||||||
ln -s /sbin/mdadm ${D}${PTEST_PATH}/mdadm
|
ln -s ${base_sbindir}/mdadm ${D}${PTEST_PATH}/mdadm
|
||||||
for prg in test_stripe swap_super raid6check
|
for prg in test_stripe swap_super raid6check
|
||||||
do
|
do
|
||||||
install -D -m 755 $prg ${D}${PTEST_PATH}/
|
install -D -m 755 $prg ${D}${PTEST_PATH}/
|
||||||
|
|||||||
Reference in New Issue
Block a user