summaryrefslogtreecommitdiff
path: root/scripts/fixup-dts
diff options
context:
space:
mode:
authorNathaniel Graff <nathaniel.graff@sifive.com>2019-06-05 11:38:20 -0700
committerNathaniel Graff <nathaniel.graff@sifive.com>2019-06-05 11:46:24 -0700
commit5d695e27729179457a5f3b97f2c2613d35f69cca (patch)
tree800de4f0f10b006522f154de67d616869c1d0ee0 /scripts/fixup-dts
parentf2c7f75ceef24aec9891d75c2b4fb5db5b847868 (diff)
fixup-dts takes first matching port
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
Diffstat (limited to 'scripts/fixup-dts')
-rwxr-xr-xscripts/fixup-dts2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/fixup-dts b/scripts/fixup-dts
index 278b835..835eeaf 100755
--- a/scripts/fixup-dts
+++ b/scripts/fixup-dts
@@ -129,7 +129,7 @@ if [ `grep -c 'sifive,testram0' ${dts}` -eq 0 ]; then
if [ `grep -c "${protocol}-${port_type}-port" ${dts}` -ne 0 ]; then
# Build the node name
- port_node_name=`egrep -o "${protocol}-${port_type}-port@[a-fA-F0-9]+" ${dts}`
+ port_node_name=`egrep -o "${protocol}-${port_type}-port@[a-fA-F0-9]+" ${dts} | head -n 1`
echo -e "$0: \tUsing node \t${port_node_name}"
# Get the address and size cells