You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
703 B
25 lines
703 B
{# jinja template to generate the serial port rc.uart_port script. #} |
|
|
|
# serial port script generated with generate_serial_config.py |
|
|
|
set SERIAL_DEV none |
|
{% for serial_device in serial_devices -%} |
|
if param compare "$PRT" {{ serial_device.index }}; then |
|
if [ "x$PRT_{{ serial_device.tag }}_" = "x" ]; then |
|
set SERIAL_DEV {{ serial_device.device }} |
|
set BAUD_PARAM SER_{{ serial_device.tag }}_BAUD |
|
set PRT_{{ serial_device.tag }}_ 1 |
|
{% if not constrained_flash -%} |
|
else |
|
echo "Conflicting config for {{ serial_device.device }}" |
|
{% endif -%} |
|
fi |
|
fi |
|
|
|
{% endfor %} |
|
|
|
{% for config in ethernet_configuration -%} |
|
if param compare "$PRT" {{ config.index }}; then |
|
set SERIAL_DEV ethernet |
|
fi |
|
{% endfor %}
|
|
|