initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
config BR2_PACKAGE_USB_MODESWITCH
|
||||
bool "usb_modeswitch"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
|
||||
select BR2_PACKAGE_JIMTCL if !BR2_PACKAGE_TCL || BR2_PACKAGE_TCL_SHLIB_ONLY
|
||||
select BR2_PACKAGE_LIBUSB
|
||||
help
|
||||
Some USB devices such as 3G/4G broadband modems power-up
|
||||
in mass storage mode to provide access to drivers
|
||||
for the device's application mode. usb_modeswitch
|
||||
changes the mode of such devices from the initial power-up
|
||||
mode to the application mode.
|
||||
Specific configuration data for each device model is required.
|
||||
|
||||
usb_modeswitch can be used with the usb_modeswitch_data
|
||||
package and eudev/systemd for automatic mode switching
|
||||
when devices are connected.
|
||||
|
||||
For more information search the Internet for "Virtual CD-ROM
|
||||
switching utility".
|
||||
|
||||
http://www.draisberghof.de/usb_modeswitch/
|
||||
|
||||
comment "usb_modeswitch needs a toolchain w/ threads, gcc >= 4.9"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
@@ -0,0 +1,5 @@
|
||||
# From https://www.draisberghof.de/usb_modeswitch/usb-modeswitch-versions.xml
|
||||
md5 69d00d6ed7097b97d972a159d14cfba1 usb-modeswitch-2.6.1.tar.bz2
|
||||
# Locally calculated
|
||||
sha256 5195d9e136e52f658f19e9f93e4f982b1b67bffac197d0a455cd8c2cd245fa34 usb-modeswitch-2.6.1.tar.bz2
|
||||
sha256 6195429209313925c0eba6c0da4ee7a6cb4277b99e35c886913f80f91ec20b94 COPYING
|
||||
@@ -0,0 +1,39 @@
|
||||
################################################################################
|
||||
#
|
||||
# usb_modeswitch
|
||||
#
|
||||
################################################################################
|
||||
|
||||
USB_MODESWITCH_VERSION = 2.6.1
|
||||
USB_MODESWITCH_SOURCE = usb-modeswitch-$(USB_MODESWITCH_VERSION).tar.bz2
|
||||
USB_MODESWITCH_SITE = http://www.draisberghof.de/usb_modeswitch
|
||||
USB_MODESWITCH_DEPENDENCIES = libusb
|
||||
USB_MODESWITCH_LICENSE = GPL-2.0+, BSD-2-Clause
|
||||
USB_MODESWITCH_LICENSE_FILES = COPYING
|
||||
|
||||
ifeq ($(BR2_PACKAGE_TCL)$(BR2_PACKAGE_TCL_SHLIB_ONLY),y)
|
||||
USB_MODESWITCH_DEPENDENCIES += tcl
|
||||
USB_MODESWITCH_BUILD_TARGETS = all
|
||||
USB_MODESWITCH_INSTALL_TARGETS = install-script
|
||||
else
|
||||
USB_MODESWITCH_DEPENDENCIES += jimtcl
|
||||
USB_MODESWITCH_INSTALL_TARGETS = install-common
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
USB_MODESWITCH_BUILD_TARGETS = all-with-statlink-dispatcher
|
||||
else
|
||||
USB_MODESWITCH_BUILD_TARGETS = all-with-dynlink-dispatcher
|
||||
endif
|
||||
endif
|
||||
|
||||
define USB_MODESWITCH_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
||||
-C $(@D) $(USB_MODESWITCH_BUILD_TARGETS)
|
||||
endef
|
||||
|
||||
define USB_MODESWITCH_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
||||
DESTDIR=$(TARGET_DIR) \
|
||||
-C $(@D) $(USB_MODESWITCH_INSTALL_TARGETS)
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user