summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/mdadm/mdadm_4.1.bb5
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/recipes-extended/mdadm/mdadm_4.1.bb b/meta/recipes-extended/mdadm/mdadm_4.1.bb
index 639382e137..64f519e750 100644
--- a/meta/recipes-extended/mdadm/mdadm_4.1.bb
+++ b/meta/recipes-extended/mdadm/mdadm_4.1.bb
@@ -43,13 +43,12 @@ CFLAGS_append_powerpc64 = ' -D__SANE_USERSPACE_TYPES__'
43CFLAGS_append_mipsarchn64 = ' -D__SANE_USERSPACE_TYPES__' 43CFLAGS_append_mipsarchn64 = ' -D__SANE_USERSPACE_TYPES__'
44CFLAGS_append_mipsarchn32 = ' -D__SANE_USERSPACE_TYPES__' 44CFLAGS_append_mipsarchn32 = ' -D__SANE_USERSPACE_TYPES__'
45 45
46EXTRA_OEMAKE = 'CHECK_RUN_DIR=0 CXFLAGS="${CFLAGS}"' 46EXTRA_OEMAKE = 'CHECK_RUN_DIR=0 CXFLAGS="${CFLAGS}" SYSTEMD_DIR=${systemd_unitdir}/system \
47 BINDIR="${base_sbindir}" UDEVDIR="${nonarch_base_libdir}/udev"'
47 48
48DEBUG_OPTIMIZATION_append = " -Wno-error" 49DEBUG_OPTIMIZATION_append = " -Wno-error"
49 50
50do_compile() { 51do_compile() {
51 # Point to right sbindir
52 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
53 oe_runmake SYSROOT="${STAGING_DIR_TARGET}" 52 oe_runmake SYSROOT="${STAGING_DIR_TARGET}"
54} 53}
55 54