Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lx2160a_build
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boxiang Sun
lx2160a_build
Commits
05560ba3
Commit
05560ba3
authored
Aug 14, 2022
by
Josua Mayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runme: extend serdes variable with soc and carrier
parent
bac7610d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
runme.sh
runme.sh
+17
-5
No files found.
runme.sh
View file @
05560ba3
...
...
@@ -9,6 +9,7 @@ BUILDROOT_VERSION=2020.02.1
#SERDES=8_5_2 # 8x10g
#SERDES=13_5_2 # dual 100g
#SERDES=20_5_2 # dual 40g
###############################################################################
# Misc
###############################################################################
...
...
@@ -356,11 +357,22 @@ cd $ROOTDIR/build/rcw/lx2160acex7
mkdir
-p
RCW
OLDIFS
=
$IFS
IFS
=
"_"
arr
=(
$SERDES
)
echo
"#include <configs/lx2160a_defaults.rcwi>"
>
RCW/template.rcw
echo
"#include <configs/lx2160a_
${
SPEED
}
.rcwi>"
>>
RCW/template.rcw
echo
"#include <configs/lx2160a_SD1_
${
arr
[0]
}
.rcwi>"
>>
RCW/template.rcw
echo
"#include <configs/lx2160a_SD2_
${
arr
[1]
}
.rcwi>"
>>
RCW/template.rcw
echo
"#include <configs/lx2160a_SD3_
${
arr
[2]
}
.rcwi>"
>>
RCW/template.rcw
if
[
${#
arr
[@]
}
-eq
3
]
;
then
echo
"#include <configs/lx2160a_defaults.rcwi>"
>
RCW/template.rcw
echo
"#include <configs/lx2160a_
${
SPEED
}
.rcwi>"
>>
RCW/template.rcw
echo
"#include <configs/lx2160a_SD1_
${
arr
[0]
}
.rcwi>"
>>
RCW/template.rcw
echo
"#include <configs/lx2160a_SD2_
${
arr
[1]
}
.rcwi>"
>>
RCW/template.rcw
echo
"#include <configs/lx2160a_SD3_
${
arr
[2]
}
.rcwi>"
>>
RCW/template.rcw
fi
if
[
${#
arr
[@]
}
-eq
5
]
;
then
# extended serdes variable with soc and carrier
echo
"#include <configs/lx2160a_defaults.rcwi>"
>
RCW/template.rcw
echo
"#include <configs/lx2160a_
${
SPEED
}
.rcwi>"
>>
RCW/template.rcw
echo
"#include <configs/
${
arr
[0],,
}
_
${
arr
[1],,
}
.rcwi>"
>>
RCW/template.rcw
echo
"#include <configs/
${
arr
[0],,
}
_
${
arr
[1],,
}
_SD1_
${
arr
[2]
}
.rcwi>"
>>
RCW/template.rcw
echo
"#include <configs/
${
arr
[0],,
}
_
${
arr
[1],,
}
_SD2_
${
arr
[3]
}
.rcwi>"
>>
RCW/template.rcw
echo
"#include <configs/
${
arr
[0],,
}
_
${
arr
[1],,
}
_SD3_
${
arr
[4]
}
.rcwi>"
>>
RCW/template.rcw
fi
if
[
"x
$SECURE
"
==
"xtrue"
]
;
then
echo
"SB_EN=1"
#>> RCW/template.rcw
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment