blob: e199c786693bd1db1f96d1b1afa4b0e2dcc59891 [file] [log] [blame]
Quoc Khanh Le2acaceb2024-06-20 15:07:43 +01001#
2# Copyright (c) 2021-2024, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
David Vincze0011a792024-10-21 16:25:25 +00007/^terminal_s0:/ { ports[0] = $NF }
8/^terminal_s1:/ { ports[1] = $NF }
Quoc Khanh Le2acaceb2024-06-20 15:07:43 +01009/^terminal_uart_ap:/ { ports[2] = $NF }
10/^terminal_uart1_ap:/ { ports[3] = $NF }
11END {
12 for (i = 0; i < num_uarts; i++) {
13 if (ports[i] != "")
14 print "ports[" i "]=" ports[i]
15 }
16}