mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
mdadm: use ${systemd_unitdir} rather than /lib/systemd
Fixes build with usrmerge enabled. (From OE-Core rev: cafbc4bbe128d13c40e104f773cdf85bbd92a87d) Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1e1e6c0803
commit
613224104a
@@ -45,7 +45,7 @@ DEBUG_OPTIMIZATION_append = " -Wno-error"
|
||||
|
||||
do_compile() {
|
||||
# Point to right sbindir
|
||||
sed -i -e "s;BINDIR = /sbin;BINDIR = $base_sbindir;" -e "s;UDEVDIR = /lib;UDEVDIR = $nonarch_base_libdir;" ${S}/Makefile
|
||||
sed -i -e "s;BINDIR = /sbin;BINDIR = $base_sbindir;" -e "s;UDEVDIR = /lib;UDEVDIR = $nonarch_base_libdir;" -e "s;SYSTEMD_DIR=/lib/systemd/system;SYSTEMD_DIR=${systemd_unitdir}/system;" ${S}/Makefile
|
||||
oe_runmake SYSROOT="${STAGING_DIR_TARGET}"
|
||||
}
|
||||
|
||||
@@ -93,4 +93,4 @@ RRECOMMENDS_${PN}-ptest += " \
|
||||
kernel-module-raid456 \
|
||||
"
|
||||
|
||||
FILES_${PN} += "/lib/systemd/*"
|
||||
FILES_${PN} += "${systemd_unitdir}/*"
|
||||
|
||||
Reference in New Issue
Block a user