Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
Modify the Makefile to include '$(PREFIX)/bin/systemctl' in the list of paths.
This makes the udev intgeration work as intended when using systemd.
Signed-off-by: Sol Bekic <s+removethis@s-ol.nu>
diff --git a/Makefile b/Makefile
index 22bd0e0..72321a4 100755
--- a/Makefile
+++ b/Makefile
@@ -62,7 +62,7 @@
install -D --mode=755 usb_modeswitch_dispatcher $(SBINDIR)/usb_modeswitch_dispatcher
install -d $(DESTDIR)/var/lib/usb_modeswitch
test -d $(UPSDIR) -a -e /sbin/initctl && install --mode=644 usb-modeswitch-upstart.conf $(UPSDIR) || test 1
- test -d $(SYSDIR) -a \( -e /usr/bin/systemctl -o -e /bin/systemctl \) && install --mode=644 usb_modeswitch@.service $(SYSDIR) || test 1
+ test -d $(SYSDIR) -a \( -e /usr/bin/systemctl -o -e /bin/systemctl -o -e $(PREFIX)/bin/systemctl \) && install --mode=644 usb_modeswitch@.service $(SYSDIR) || test 1
install: install-script

View File

@@ -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

View File

@@ -0,0 +1,5 @@
# From https://www.draisberghof.de/usb_modeswitch/usb-modeswitch-versions.xml
md5 cf3b9f052fe49b02b385848eedc7264f usb-modeswitch-2.6.2.tar.bz2
# Locally calculated
sha256 f7abd337784a9d1bd39cb8a587518aff6f2a43d916145eafd80b1b8b7146db66 usb-modeswitch-2.6.2.tar.bz2
sha256 6195429209313925c0eba6c0da4ee7a6cb4277b99e35c886913f80f91ec20b94 COPYING

View File

@@ -0,0 +1,39 @@
################################################################################
#
# usb_modeswitch
#
################################################################################
USB_MODESWITCH_VERSION = 2.6.2
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))