📄 redboot.cdl
字号:
Faster CPUs can afford higher granularity (lower values)
which should give higher network performance since the stack
is purely polled."
}
compile main.c
compile misc_funs.c io.c parse.c ticks.c syscall.c alias.c
compile -library=libextras.a load.c
make -priority 320 {
<PREFIX>/bin/redboot.elf : $(PREFIX)/lib/target.ld $(PREFIX)/lib/vectors.o $(PREFIX)/lib/libtarget.a $(PREFIX)/lib/libextras.a
@sh -c "mkdir -p $(dir $@)"
$(CC) -c $(INCLUDE_PATH) $(ACTUAL_CFLAGS) -o $(PREFIX)/lib/version.o $(REPOSITORY)/$(PACKAGE)/src/version.c
$(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ $(PREFIX)/lib/version.o
}
cdl_component CYGPKG_REDBOOT_NETWORKING {
display "Redboot Networking"
flavor bool
active_if CYGPKG_IO_ETH_DRIVERS
default_value 1
implements CYGINT_REDBOOT_LOAD_METHOD
compile net/bootp.c net/udp.c net/ip.c net/pktbuf.c net/cksum.c
compile net/enet.c net/icmp.c net/tcp.c net/timers.c net/arp.c
compile net/inet_addr.c
compile -library=libextras.a net/ping.c net/net_io.c
description "This option includes networking support in RedBoot."
define_proc {
puts $::cdl_system_header "#define CYGNUM_HAL_VIRTUAL_VECTOR_AUX_CHANNELS 1"
}
cdl_option CYGDBG_REDBOOT_NET_DEBUG {
display "Print net debug information"
flavor bool
default_value 0
description "
This option is overriden by the configuration stored
in flash."
}
cdl_option CYGSEM_REDBOOT_NET_TFTP_DOWNLOAD {
display "Support TFTP for download"
flavor bool
default_value 1
compile -library=libextras.a net/tftp_client.c
description "
This option enables the use of the TFTP protocol for
download"
}
cdl_option CYGSEM_REDBOOT_NET_HTTP_DOWNLOAD {
display "Support HTTP for download"
flavor bool
default_value 1
compile -library=libextras.a net/http_client.c
description "
This option enables the use of the HTTP protocol for
download"
}
cdl_component CYGDAT_REDBOOT_DEFAULT_IP_ADDR {
display "Default IP address"
flavor booldata
default_value CYGSEM_REDBOOT_FLASH_CONFIG ? 0 : \
{ "0, 0, 0, 0" }
description "
This IP address is the default used by RedBoot if
a BOOTP/DHCP server does not respond. The numbers
should be separated by *commas*, and not dots. If
an IP address is configured into the Flash
configuration, that will be used in preference."
cdl_option CYGSEM_REDBOOT_DEFAULT_NO_BOOTP {
display "Do not try to use BOOTP"
flavor bool
default_value 0
description "
By default Redboot tries to use BOOTP to get an IP
address. If there's no BOOTP server on your network
use this option to avoid to wait until the
timeout. This option is overriden by the
configuration stored in flash."
}
cdl_option CYGDAT_REDBOOT_DEFAULT_BOOTP_SERVER_IP_ADDR {
display "Default bootp server"
flavor booldata
default_value CYGSEM_REDBOOT_FLASH_CONFIG ? 0 : \
{ "0, 0, 0, 0" }
description "
This IP address is the default server
address used by RedBoot if a BOOTP/DHCP
server does not respond. The numbers should
be separated by *commas*, and not dots. If
an IP address is configured into the Flash
configuration, that will be used in
preference."
}
}
cdl_component CYGSEM_REDBOOT_NETWORKING_DHCP {
display "Use DHCP to get IP information"
flavor bool
default_value 1
description "
Use DHCP protocol to obtain pertinent IP addresses, such
as the client, server, gateway, etc."
}
cdl_component CYGSEM_REDBOOT_NETWORKING_USE_GATEWAY {
display "Use a gateway for non-local IP traffic"
flavor bool
default_value 1
requires CYGSEM_REDBOOT_NETWORKING_DHCP
description "
Enabling this option will allow the RedBoot networking
stack to use a \[single\] gateway to reach a non-local
IP address. If disabled, RedBoot will only be able to
reach nodes on the same subnet."
cdl_component CYGDAT_REDBOOT_DEFAULT_GATEWAY_IP_ADDR {
display "Default gateway IP address"
flavor booldata
default_value CYGSEM_REDBOOT_FLASH_CONFIG ? 0 : \
{ "0, 0, 0, 0" }
description "
This IP address is the default used by RedBoot
if a BOOTP/DHCP server does not respond. The
numbers should be separated by *commas*, and
not dots. If an IP address is configured into
the Flash configuration, that will be used in
preference."
}
cdl_component CYGDAT_REDBOOT_DEFAULT_IP_ADDR_MASK {
display "Default IP address mask"
flavor booldata
default_value CYGSEM_REDBOOT_FLASH_CONFIG ? 0 : \
{ "255, 255, 255, 0" }
description "
This IP address mask is the default used by
RedBoot if a BOOTP/DHCP server does not
respond. The numbers should be separated by
*commas*, and not dots. If an IP address is
configured into the Flash configuration, that
will be used in preference."
}
}
cdl_option CYGNUM_REDBOOT_NETWORKING_TCP_PORT {
display "TCP port to listen for incoming connections"
flavor data
default_value 9000
description "
RedBoot will 'listen' on this port for incoming TCP
connections. This allows outside connections to be made
to the platform, either for GDB or RedBoot commands."
}
cdl_option CYGNUM_REDBOOT_NETWORKING_MAX_PKTBUF {
display "Number of \[network\] packet buffers"
flavor data
default_value 4
legal_values 3 to 8
description "
RedBoot may need to buffer network data to support
various connections. This option allows control
over the number of such buffered packets, and in
turn, controls the amount of memory used by RedBoot
(which is not available to user applications).
Each packet buffer takes up about 1514 bytes.
Note: there is little need to make this larger than
the default."
}
cdl_component CYGPKG_REDBOOT_NETWORKING_DNS {
display "DNS support"
default_value 1
active_if CYGPKG_NS_DNS
requires !CYGPKG_NS_DNS_BUILD
compile net/dns.c
description "
When this option is enabled, RedBoot will be built with
support for DNS, allowing use of hostnames on the command
line."
cdl_option CYGPKG_REDBOOT_NETWORKING_DNS_IP {
display "Default DNS IP"
flavor data
active_if !CYGSEM_REDBOOT_FLASH_CONFIG
default_value { "0.0.0.0" }
description "
This option sets the IP of the default DNS. The IP can be
changed at runtime as well."
}
cdl_option CYGNUM_REDBOOT_NETWORKING_DNS_TIMEOUT {
display "Timeout in DNS lookup"
flavor data
default_value 10
description "
This option sets the timeout used when looking up an
address via the DNS. Default is 10 seconds."
}
cdl_component CYGPKG_REDBOOT_NETWORKING_DNS_WITH_DOMAIN {
display "Support the use of a domain name"
flavor bool
default_value 0
description "
This option controls if Redboot supports domain
names when performing DNS lookups"
cdl_option CYGPKG_REDBOOT_NETWORKING_DNS_DEFAULT_DOMAIN {
display "Default DNS domain"
flavor booldata
default_value 0
description "
This option sets the default DNS domain name.
This value will be overwritten by the value in
flash or a domain returned by DHCP"
}
cdl_option CYGPKG_REDBOOT_NETWORKING_DNS_FCONFIG_DOMAIN {
display "Get DNS domain from Flash"
flavor bool
active_if CYGSEM_REDBOOT_FLASH_CONFIG
default_value 0
description "
This option enables getting the domain name
from the flash configuration. This can later be
overwritten by a value learnt from DHCP"
}
cdl_option CYGPKG_REDBOOT_NETWORKING_DNS_DHCP_DOMAIN {
display "Use DNS domain from DHCP"
flavor bool
default_value 0
description "
This option enables the use of the domain name
returned by DHCP."
}
cdl_option CYGNUM_REDBOOT_NETWORK_DNS_DOMAIN_BUFSIZE {
display "BOOTP/DHCP DNS domain buffer size"
flavor data
default_value 32
description "
This options sets the size of the static
buffer used by BOOTP/DHCP to store the DNS
domain name. The domain name will not be
set if the buffer is too small to hold it."
}
}
}
cdl_option CYGDAT_REDBOOT_DEFAULT_NETWORK_DEVICE {
display "Default network device driver"
flavor data
active_if { CYGHWR_NET_DRIVERS > 1 }
default_value { "\"\"" }
description "
This is the name of the default network device to use."
}
cdl_option CYGSEM_REDBOOT_NETWORK_INIT_ONE_DEVICE {
display "Initialize only one net device"
flavor bool
active_if { CYGHWR_NET_DRIVERS > 1 }
default_value 0
description "
This option tells RedBoot to stop initializing network
devices when it finds the first device which is
successfully initialized. The default behavior causes
all network devices to be initialized."
}
}
cdl_option CYGPKG_REDBOOT_ANY_CONSOLE {
display "Let RedBoot use any I/O channel for its console."
flavor bool
default_value 1
description "
If this option is enabled then RedBoot will attempt to use all
defined serial I/O channels for its console device. Once input
arrives at one of these channels then the console will use only
that port."
}
cdl_option CYGSEM_REDBOOT_VARIABLE_BAUD_RATE {
display "Let RedBoot adjust the baud off the serial console."
flavor bool
default_value 1
active_if CYGINT_HAL_VIRTUAL_VECTOR_COMM_BAUD_SUPPORT
description "
If this option is enabled then RedBoot will support commands
to set and query the baud rate on the selected console."
}
cdl_option CYGSEM_REDBOOT_PLF_STARTUP {
display "Run a platform specific startup function."
flavor bool
default_value 0
description "
If this option is enabled then RedBoot will execute a platform
specific startup function before entering into its command line
processing. This allows the platform to perform any special
setups before RedBoot actually starts running. Note: the entire
RedBoot environment will already be initialized at this point."
}
cdl_option CYGSEM_REDBOOT_PLF_ESA_VALIDATE {
display "Run a platform specific ESA validation function."
flavor bool
default_value 0
description "
If this option is enabled then RedBoot will execute a platform
specific function to validate an ethernet ESA. This would be
useful if the address must conform to standards set by the
hardware manufacturer, etc."
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -