mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 07:57:43 +00:00
usbutils: convert old-style hook to new-style hook
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
d31100d7e8
commit
fcab98c31b
@ -14,18 +14,34 @@ else
|
|||||||
USBUTILS_CONF_OPT = --disable-zlib
|
USBUTILS_CONF_OPT = --disable-zlib
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(eval $(call AUTOTARGETS,package,usbutils))
|
define USBUTILS_TARGET_CLEANUP
|
||||||
|
|
||||||
$(USBUTILS_HOOK_POST_INSTALL):
|
|
||||||
rm -f $(TARGET_DIR)/usr/bin/usb-devices
|
rm -f $(TARGET_DIR)/usr/bin/usb-devices
|
||||||
rm -f $(TARGET_DIR)/usr/sbin/update-usbids.sh
|
rm -f $(TARGET_DIR)/usr/sbin/update-usbids.sh
|
||||||
rm -f $(TARGET_DIR)/usr/share/pkgconfig/usbutils.pc
|
rm -f $(TARGET_DIR)/usr/share/pkgconfig/usbutils.pc
|
||||||
ifeq ($(BR2_PACKAGE_USBUTILS_ZLIB),y)
|
endef
|
||||||
|
|
||||||
|
USBUTILS_POST_INSTALL_TARGET_HOOKS += USBUTILS_TARGET_CLEANUP
|
||||||
|
|
||||||
|
define USBUTILS_REMOVE_UNCOMPRESSED_IDS
|
||||||
rm -f $(TARGET_DIR)/usr/share/usb.ids
|
rm -f $(TARGET_DIR)/usr/share/usb.ids
|
||||||
else
|
endef
|
||||||
|
|
||||||
|
define USBUTILS_REMOVE_COMPRESSED_IDS
|
||||||
rm -f $(TARGET_DIR)/usr/share/usb.ids.gz
|
rm -f $(TARGET_DIR)/usr/share/usb.ids.gz
|
||||||
|
endef
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_USBUTILS_ZLIB),y)
|
||||||
|
USBUTILS_POST_INSTALL_TARGET_HOOKS += USBUTILS_REMOVE_UNCOMPRESSED_IDS
|
||||||
|
else
|
||||||
|
USBUTILS_POST_INSTALL_TARGET_HOOKS += USBUTILS_REMOVE_COMPRESSED_IDS
|
||||||
endif
|
endif
|
||||||
ifneq ($(BR2_HAVE_DEVFILES),y)
|
|
||||||
|
define USBUTILS_REMOVE_DEVFILES
|
||||||
rm -f $(TARGET_DIR)/usr/bin/libusb-config
|
rm -f $(TARGET_DIR)/usr/bin/libusb-config
|
||||||
|
endef
|
||||||
|
|
||||||
|
ifneq ($(BR2_HAVE_DEVFILES),y)
|
||||||
|
USBUTILS_POST_INSTALL_TARGET_HOOKS += USBUTILS_REMOVE_DEVFILES
|
||||||
endif
|
endif
|
||||||
touch $@
|
|
||||||
|
$(eval $(call AUTOTARGETS,package,usbutils))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user