mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-14 14:40:26 +00:00
The link support is no longer limited to the pseudo file system and now covers both soft (symbolic) links and hard links across the VFS. Update all references to the renamed configuration option PSEUDOFS_SOFTLINKS, which has been renamed to FS_LINKS in the NuttX kernel, so that nshlib, the interpreters, adb, tlpi and the test suites keep building. This must be merged together with the corresponding NuttX change that performs the actual kernel-side rename. Signed-off-by: zhengyu16 <zhengyu16@xiaomi.com>
220 lines
4.6 KiB
Text
220 lines
4.6 KiB
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
menuconfig SYSTEM_ADBD
|
|
tristate "ADB daemon application"
|
|
default n
|
|
depends on LIBUV
|
|
select LIBC_PRINT_EXTENSION
|
|
---help---
|
|
Enable support for adb daemon.
|
|
|
|
if SYSTEM_ADBD
|
|
|
|
config ADBD_PROGNAME
|
|
string "Program name"
|
|
default "adbd"
|
|
---help---
|
|
This is the name of the program that will be used.
|
|
|
|
config ADBD_STACKSIZE
|
|
int "Stack size"
|
|
default DEFAULT_TASK_STACKSIZE
|
|
---help---
|
|
The size of stack allocated for the adb daemon task.
|
|
|
|
config ADBD_PRIORITY
|
|
int "Task priority"
|
|
default 100
|
|
---help---
|
|
The priority of the adb daemon task.
|
|
|
|
config ADBD_AUTHENTICATION
|
|
bool "Authentication support"
|
|
default n
|
|
---help---
|
|
Enable authentication for adb daemon.
|
|
|
|
if ADBD_AUTHENTICATION
|
|
|
|
config ADBD_AUTH_PUBKEY
|
|
bool "Public key authentication"
|
|
default n
|
|
---help---
|
|
Enable hook to accept new public keys.
|
|
|
|
config ADBD_TOKEN_SIZE
|
|
int "Authentication token size"
|
|
default 20
|
|
|
|
endif # ADBD_AUTHENTICATION
|
|
|
|
config ADBD_DEVICE_ID
|
|
string "Default adb device id"
|
|
depends on !BOARDCTL_UNIQUEID
|
|
default ""
|
|
|
|
config ADBD_PRODUCT_NAME
|
|
string "Default adb product name"
|
|
default "adb dev"
|
|
|
|
config ADBD_PRODUCT_MODEL
|
|
string "Default adb product model"
|
|
default "adb board"
|
|
|
|
config ADBD_PRODUCT_DEVICE
|
|
string "Default adb product device"
|
|
default "NuttX device"
|
|
|
|
config ADBD_FEATURES
|
|
string "Default adb server features list"
|
|
default "cmd"
|
|
|
|
config ADBD_PAYLOAD_SIZE
|
|
int "Normal ADB frame size"
|
|
default 1024
|
|
---help---
|
|
Normal frame size in bytes.
|
|
|
|
config ADBD_CNXN_PAYLOAD_SIZE
|
|
int "Connection frame size"
|
|
default 1024
|
|
---help---
|
|
Connection frame is bigger than others.
|
|
Can be between 128 to 256 bytes in most of the cases.
|
|
If authentication is enabled, frame size must bigger
|
|
to receive public key from host (around 1024 bytes).
|
|
|
|
config ADBD_FRAME_MAX
|
|
int "Frame pool size"
|
|
default 1
|
|
---help---
|
|
ADB frame pool size.
|
|
|
|
config ADBD_TCP_SERVER
|
|
bool "Network socket transport support"
|
|
depends on NET_TCP_NO_STACK || NET_TCPBACKLOG
|
|
default n
|
|
---help---
|
|
Run adb daemon on network socket.
|
|
|
|
config ADBD_TCP_SERVER_PORT
|
|
int "Network socket transport port"
|
|
depends on ADBD_TCP_SERVER
|
|
default 5555
|
|
---help---
|
|
Port used by adb daemon socket server
|
|
|
|
config ADBD_USB_SERVER
|
|
bool "USB transport support"
|
|
depends on USBADB
|
|
default n
|
|
---help---
|
|
Run adb daemon on USB bus
|
|
|
|
choice
|
|
prompt "Check usb hotplug"
|
|
default ADBD_USB_HOTPLUG_BYTIMER
|
|
|
|
config ADBD_USB_HOTPLUG_BYTIMER
|
|
bool "Using 1s timer to check usb hotplug"
|
|
depends on ADBD_USB_SERVER
|
|
---help---
|
|
Using 1s timer to check usb hotplug
|
|
|
|
config ADBD_USB_HOTPLUG_BYNOTIFY
|
|
bool "Using fs notify to check usb hotplug"
|
|
depends on ADBD_USB_SERVER
|
|
depends on FS_NOTIFY
|
|
---help---
|
|
Using fs notify to monitor usb hotplug
|
|
|
|
endchoice # Check usb hotplug
|
|
|
|
config ADBD_QEMU_SERVER
|
|
bool "QEMU pipe transport support"
|
|
depends on GOLDFISH_PIPE
|
|
default n
|
|
---help---
|
|
Run adb daemon on qemu pipe
|
|
|
|
config ADBD_QEMU_SERVER_PORT
|
|
int "QEMU pipe transport port"
|
|
depends on ADBD_QEMU_SERVER
|
|
default 5555
|
|
---help---
|
|
Port used by adb daemon qemu pipe server
|
|
|
|
config ADBD_LOGCAT_SERVICE
|
|
bool "ADB logcat support"
|
|
select LIBC_PRINT_EXTENSION
|
|
depends on RAMLOG_SYSLOG
|
|
default n
|
|
---help---
|
|
Enable "adb logcat" feature.
|
|
|
|
config ADBD_FILE_SERVICE
|
|
bool "ADB file sync support"
|
|
default n
|
|
---help---
|
|
Enable "adb ls/push/pull" feature.
|
|
|
|
config ADBD_FILE_SYMLINK
|
|
bool "File service symlink support"
|
|
depends on ADBD_FILE_SERVICE
|
|
depends on FS_LINKS
|
|
default FS_LINKS
|
|
---help---
|
|
Enable fs symlink support.
|
|
|
|
config ADBD_SHELL_SERVICE
|
|
bool "ADB shell support"
|
|
depends on SYSTEM_NSH
|
|
depends on LIBC_EXECFUNCS
|
|
depends on PSEUDOTERM
|
|
depends on SCHED_CHILD_STATUS
|
|
default n
|
|
---help---
|
|
Enable "adb shell" feature.
|
|
|
|
config ADBD_SHELL_SERVICE_CMD
|
|
string "ADB shell command"
|
|
depends on ADBD_SHELL_SERVICE
|
|
default "sh"
|
|
---help---
|
|
The shell command name.
|
|
|
|
config ADBD_SHELL_SERVICE_PATH
|
|
string "ADB shell path"
|
|
depends on ADBD_SHELL_SERVICE
|
|
default "/bin/sh"
|
|
---help---
|
|
The path to the shell executable.
|
|
|
|
config ADBD_SOCKET_SERVICE
|
|
bool "ADB socket service"
|
|
depends on NET
|
|
default n
|
|
---help---
|
|
Enable "adb forward|reverse" feature.
|
|
|
|
config ADBD_USB_BOARDCTL
|
|
bool "USB Board Control"
|
|
depends on BOARDCTL
|
|
depends on ADBD_USB_SERVER
|
|
select BOARDCTL_USBDEVCTRL
|
|
default y
|
|
---help---
|
|
Connect usbdev before running adb daemon.
|
|
|
|
config ADBD_NET_INIT
|
|
bool "Network initialization"
|
|
default n
|
|
depends on NET
|
|
select NETUTILS_NETINIT
|
|
---help---
|
|
This option enables/disables all network initialization in ADB server.
|
|
|
|
endif # SYSTEM_ADBD
|