mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
package/nbd: fix utilities locations
Currently, the code expects both the client and server to be in
/usr/bin, while the client is in /usr/sbin
Fix that.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
(cherry picked from commit 4aabbeb245)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
a3d83660c5
commit
b3442f2fe3
@@ -19,14 +19,14 @@ NBD_CONF_ENV = ac_cv_header_linux_falloc_h=no
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(BR2_NBD_CLIENT),y)
|
ifneq ($(BR2_NBD_CLIENT),y)
|
||||||
NBD_TOREMOVE += nbd-client
|
NBD_TOREMOVE += /usr/sbin/nbd-client
|
||||||
endif
|
endif
|
||||||
ifneq ($(BR2_NBD_SERVER),y)
|
ifneq ($(BR2_NBD_SERVER),y)
|
||||||
NBD_TOREMOVE += nbd-server
|
NBD_TOREMOVE += /usr/bin/nbd-server
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define NBD_CLEANUP_AFTER_INSTALL
|
define NBD_CLEANUP_AFTER_INSTALL
|
||||||
rm -f $(addprefix $(TARGET_DIR)/usr/sbin/, $(NBD_TOREMOVE))
|
rm -f $(addprefix $(TARGET_DIR), $(NBD_TOREMOVE))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
NBD_POST_INSTALL_TARGET_HOOKS += NBD_CLEANUP_AFTER_INSTALL
|
NBD_POST_INSTALL_TARGET_HOOKS += NBD_CLEANUP_AFTER_INSTALL
|
||||||
|
|||||||
Reference in New Issue
Block a user