1fc66acff8
This patch updates usb_modeswitch to version 1.2.4. The usb_modeswitch.mk needed to be modified for usb_modeswitch to compile. Also added extra remove section for the added help scripts and files. [thomas.petazzoni@free-electrons.com: bumped further to 1.2.4 instead of 1.2.3, adjusted the patch accordingly use TARGET_CONFIGURE_OPTS instead of passing CC, LD manually add license information.] Signed-off-by: J.C. Woltz <jwoltz@gmail.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
#############################################################
|
|
#
|
|
# usb_modeswitch
|
|
#
|
|
#############################################################
|
|
|
|
USB_MODESWITCH_VERSION = 1.2.4
|
|
USB_MODESWITCH_SOURCE = usb-modeswitch-$(USB_MODESWITCH_VERSION).tar.bz2
|
|
USB_MODESWITCH_SITE = http://www.draisberghof.de/usb_modeswitch
|
|
USB_MODESWITCH_DEPENDENCIES = libusb-compat
|
|
USB_MODESWITCH_LICENSE = GPLv2+
|
|
USB_MODESWITCH_LICENSE_FILES = COPYING
|
|
|
|
define USB_MODESWITCH_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
|
|
endef
|
|
|
|
define USB_MODESWITCH_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
|
endef
|
|
|
|
|
|
define USB_MODESWITCH_CLEAN_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) clean
|
|
endef
|
|
|
|
define USB_MODESWITCH_UNINSTALL_CMDS
|
|
$(RM) -f $(TARGET_DIR)/usr/sbin/usb_modeswitch
|
|
$(RM) -f $(TARGET_DIR)/lib/udev/usb_modeswitch
|
|
$(RM) -f $(TARGET_DIR)/etc/usb_modeswitch.setup
|
|
$(RM) -f $(TARGET_DIR)/usr/share/man/man1/usb_modeswitch.1
|
|
$(RM) -rf $(TARGET_DIR)/var/lib/usb_modeswitch
|
|
$(RM) -f $(TARGET_DIR)/usr/sbin/usb_modeswitch_dispatcher
|
|
endef
|
|
|
|
$(eval $(generic-package))
|