package/nbd: add option for the trdump utility

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Yann E. MORIN 2017-03-12 10:58:17 +01:00 committed by Thomas Petazzoni
parent 4aabbeb245
commit 48d8927ac7
2 changed files with 10 additions and 2 deletions

View File

@ -16,12 +16,17 @@ config BR2_PACKAGE_NBD_CLIENT
bool "nbd client"
default y
help
the client part of NBD.
The client part of NBD.
config BR2_PACKAGE_NBD_SERVER
bool "nbd server"
help
the server part of NBD.
The server part of NBD.
config BR2_PACKAGE_NBD_TRDUMP
bool "nbd trdump"
help
Utility to dump server logs in human-readable form.
endif

View File

@ -24,6 +24,9 @@ endif
ifneq ($(BR2_PACKAGE_NBD_SERVER),y)
NBD_TOREMOVE += /usr/bin/nbd-server
endif
ifneq ($(BR2_PACKAGE_NBD_TRDUMP),y)
NBD_TOREMOVE += /usr/bin/nbd-trdump
endif
define NBD_CLEANUP_AFTER_INSTALL
rm -f $(addprefix $(TARGET_DIR), $(NBD_TOREMOVE))