mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
Merge remote-tracking branch 'github-tlaurion/enable-optional_usb_keyboard_for_all'
PR #1838
This commit is contained in:
commit
5aa12437b4
@ -27,7 +27,6 @@ CONFIG_HOTPKEY=y
|
|||||||
|
|
||||||
CONFIG_LINUX_USB=y
|
CONFIG_LINUX_USB=y
|
||||||
CONFIG_MOBILE_TETHERING=y
|
CONFIG_MOBILE_TETHERING=y
|
||||||
export CONFIG_SUPPORT_USB_KEYBOARD=y
|
|
||||||
|
|
||||||
export CONFIG_TPM=y
|
export CONFIG_TPM=y
|
||||||
export CONFIG_BOOTSCRIPT=/bin/gui-init
|
export CONFIG_BOOTSCRIPT=/bin/gui-init
|
||||||
|
@ -27,7 +27,6 @@ CONFIG_HOTPKEY=y
|
|||||||
|
|
||||||
CONFIG_LINUX_USB=y
|
CONFIG_LINUX_USB=y
|
||||||
CONFIG_MOBILE_TETHERING=y
|
CONFIG_MOBILE_TETHERING=y
|
||||||
export CONFIG_SUPPORT_USB_KEYBOARD=y
|
|
||||||
|
|
||||||
export CONFIG_TPM=y
|
export CONFIG_TPM=y
|
||||||
export CONFIG_BOOTSCRIPT=/bin/gui-init
|
export CONFIG_BOOTSCRIPT=/bin/gui-init
|
||||||
|
@ -27,7 +27,6 @@ CONFIG_LINUX_USB=y
|
|||||||
CONFIG_MOBILE_TETHERING=y
|
CONFIG_MOBILE_TETHERING=y
|
||||||
|
|
||||||
export CONFIG_TPM=y
|
export CONFIG_TPM=y
|
||||||
export CONFIG_SUPPORT_USB_KEYBOARD=y
|
|
||||||
|
|
||||||
export CONFIG_BOOTSCRIPT=/bin/gui-init
|
export CONFIG_BOOTSCRIPT=/bin/gui-init
|
||||||
export CONFIG_BOOT_REQ_HASH=n
|
export CONFIG_BOOT_REQ_HASH=n
|
||||||
|
@ -27,7 +27,6 @@ CONFIG_HOTPKEY=y
|
|||||||
|
|
||||||
CONFIG_LINUX_USB=y
|
CONFIG_LINUX_USB=y
|
||||||
CONFIG_MOBILE_TETHERING=y
|
CONFIG_MOBILE_TETHERING=y
|
||||||
export CONFIG_SUPPORT_USB_KEYBOARD=y
|
|
||||||
|
|
||||||
export CONFIG_TPM=y
|
export CONFIG_TPM=y
|
||||||
export CONFIG_BOOTSCRIPT=/bin/gui-init
|
export CONFIG_BOOTSCRIPT=/bin/gui-init
|
||||||
|
@ -28,7 +28,6 @@ CONFIG_HOTPKEY=y
|
|||||||
|
|
||||||
CONFIG_LINUX_USB=y
|
CONFIG_LINUX_USB=y
|
||||||
CONFIG_MOBILE_TETHERING=y
|
CONFIG_MOBILE_TETHERING=y
|
||||||
export CONFIG_SUPPORT_USB_KEYBOARD=y
|
|
||||||
|
|
||||||
export CONFIG_TPM=y
|
export CONFIG_TPM=y
|
||||||
export CONFIG_BOOTSCRIPT=/bin/gui-init
|
export CONFIG_BOOTSCRIPT=/bin/gui-init
|
||||||
|
@ -71,12 +71,10 @@ while true; do
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Boards with built-in keyboards can support optional USB keyboards as well.
|
# Boards with built-in keyboards can support optional USB keyboards as well.
|
||||||
# Export CONFIG_SUPPORT_USB_KEYBOARD=y to enable optional support.
|
# Boards that do not have a built-in keyboard/internal keyboard is USB connected export
|
||||||
# Boards that do not have a built-in keyboard export
|
|
||||||
# CONFIG_USB_KEYBOARD_REQUIRED=y; this hides the config option and ensures
|
# CONFIG_USB_KEYBOARD_REQUIRED=y; this hides the config option and ensures
|
||||||
# USB keyboard support always loads.
|
# USB keyboard support always loads.
|
||||||
[ "$CONFIG_SUPPORT_USB_KEYBOARD" = y ] && [ "$CONFIG_USB_KEYBOARD_REQUIRED" != y ] \
|
[ "$CONFIG_USB_KEYBOARD_REQUIRED" != y ] && dynamic_config_options+=(
|
||||||
&& dynamic_config_options+=(
|
|
||||||
'K' " $(get_config_display_action "$CONFIG_USER_USB_KEYBOARD") USB keyboard"
|
'K' " $(get_config_display_action "$CONFIG_USER_USB_KEYBOARD") USB keyboard"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -79,6 +79,8 @@ $(INSTALL)/include/linux/limits.h: $(build)/$(linux_base_dir)/.canary
|
|||||||
KCONFIG_CONFIG="$(pwd)/$(linux_kconfig)" \
|
KCONFIG_CONFIG="$(pwd)/$(linux_kconfig)" \
|
||||||
headers_install
|
headers_install
|
||||||
|
|
||||||
|
# Inconditional: add USB keyboard support to all boards (linux_modules-y)
|
||||||
|
linux_modules-y += drivers/hid/usbhid/usbhid.ko
|
||||||
|
|
||||||
# qemu
|
# qemu
|
||||||
linux_modules-$(CONFIG_LINUX_E1000) += drivers/net/ethernet/intel/e1000/e1000.ko
|
linux_modules-$(CONFIG_LINUX_E1000) += drivers/net/ethernet/intel/e1000/e1000.ko
|
||||||
@ -122,9 +124,6 @@ linux_modules-$(CONFIG_LINUX_USB) += drivers/usb/host/xhci-hcd.ko
|
|||||||
linux_modules-$(CONFIG_LINUX_USB) += drivers/usb/host/xhci-pci.ko
|
linux_modules-$(CONFIG_LINUX_USB) += drivers/usb/host/xhci-pci.ko
|
||||||
linux_modules-$(CONFIG_LINUX_USB) += drivers/usb/storage/usb-storage.ko
|
linux_modules-$(CONFIG_LINUX_USB) += drivers/usb/storage/usb-storage.ko
|
||||||
|
|
||||||
#USB modules when a USB keyboard is defined in board config
|
|
||||||
linux_modules-$(CONFIG_SUPPORT_USB_KEYBOARD) += drivers/hid/usbhid/usbhid.ko
|
|
||||||
|
|
||||||
#USB modules for Mobile USB Tethering (Most Android phones, Librem phone, etc)
|
#USB modules for Mobile USB Tethering (Most Android phones, Librem phone, etc)
|
||||||
linux_modules-$(CONFIG_MOBILE_TETHERING) += drivers/net/mii.ko
|
linux_modules-$(CONFIG_MOBILE_TETHERING) += drivers/net/mii.ko
|
||||||
linux_modules-$(CONFIG_MOBILE_TETHERING) += drivers/net/usb/usbnet.ko
|
linux_modules-$(CONFIG_MOBILE_TETHERING) += drivers/net/usb/usbnet.ko
|
||||||
|
Loading…
Reference in New Issue
Block a user