mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 14:46:31 +00:00
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>
This commit is contained in:
parent
62c02b7820
commit
0500d1a67a
@ -14,14 +14,14 @@ define MDADM_BUILD_CMDS
|
|||||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
CFLAGS="$(TARGET_CFLAGS) -DNO_COROSYNC -DNO_DLM" \
|
CFLAGS="$(TARGET_CFLAGS) -DNO_COROSYNC -DNO_DLM" \
|
||||||
CPPFLAGS="$(TARGET_CPPFLAGS) -DBINDIR=\\\"/usr/sbin\\\"" \
|
CPPFLAGS="$(TARGET_CPPFLAGS) -DBINDIR=\\\"/sbin\\\"" \
|
||||||
CHECK_RUN_DIR=0 \
|
CHECK_RUN_DIR=0 \
|
||||||
mdadm
|
mdadm
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define MDADM_INSTALL_TARGET_CMDS
|
define MDADM_INSTALL_TARGET_CMDS
|
||||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
||||||
DESTDIR=$(TARGET_DIR)/usr \
|
DESTDIR=$(TARGET_DIR) \
|
||||||
install-mdadm
|
install-mdadm
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user