aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-10-14 22:00:55 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-10-15 07:20:42 +0200
commit0500d1a67a6870fbc259bfcb593240c8267b25e6 (patch)
tree056383935ee5dde2129fa2b5a627d73f42ef38ff
parent62c02b78206d520d1fb3e8ccd6cc198354f3f5b9 (diff)
downloadbuildroot-0500d1a67a6870fbc259bfcb593240c8267b25e6.tar.gz
buildroot-0500d1a67a6870fbc259bfcb593240c8267b25e6.tar.bz2
mdadm: move from /usr/sbin to /sbin
The upstream Makefile by default installs to /sbin but we override that to install it in /usr/sbin. Since mdadm is a pretty core utility for the boot process, it makes sense to comply with upstream's default behavior, so we change mdadm.mk to install mdadm in /sbin. This also removes the somewhat non-standard DESTDIR value. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/mdadm/mdadm.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/mdadm/mdadm.mk b/package/mdadm/mdadm.mk
index 6efade981d..bdf77fcd56 100644
--- a/package/mdadm/mdadm.mk
+++ b/package/mdadm/mdadm.mk
@@ -14,14 +14,14 @@ define MDADM_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) -DNO_COROSYNC -DNO_DLM" \
- CPPFLAGS="$(TARGET_CPPFLAGS) -DBINDIR=\\\"/usr/sbin\\\"" \
+ CPPFLAGS="$(TARGET_CPPFLAGS) -DBINDIR=\\\"/sbin\\\"" \
CHECK_RUN_DIR=0 \
mdadm
endef
define MDADM_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
- DESTDIR=$(TARGET_DIR)/usr \
+ DESTDIR=$(TARGET_DIR) \
install-mdadm
endef