Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
21ce8654
Commit
21ce8654
authored
May 21, 2019
by
Jean-Claude BAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SFP/Fiber DB in Kconfig: Add default values
parent
d94ff7a8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
Kconfig_sfp_fiber.in
Kconfig_sfp_fiber.in
+2
-0
gen_kconfig_sfp_fiber.sh
gen_kconfig_sfp_fiber.sh
+2
-0
Makefile
userspace/dot-config/Makefile
+3
-0
No files found.
Kconfig_sfp_fiber.in
View file @
21ce8654
...
@@ -3,6 +3,7 @@ menu "SFP and Media Timing Configuration"
...
@@ -3,6 +3,7 @@ menu "SFP and Media Timing Configuration"
config N_SFP_ENTRIES
config N_SFP_ENTRIES
int "Number of SFP entries in SFP configuration DB"
int "Number of SFP entries in SFP configuration DB"
range 0 18
range 0 18
default 6
help
help
This parameter defines the number of SFP entries
This parameter defines the number of SFP entries
that can be set in the configuration database
that can be set in the configuration database
...
@@ -393,6 +394,7 @@ endmenu
...
@@ -393,6 +394,7 @@ endmenu
config N_FIBER_ENTRIES
config N_FIBER_ENTRIES
int "Number of fiber entries in fiber configuration DB"
int "Number of fiber entries in fiber configuration DB"
range 0 18
range 0 18
default 4
help
help
This parameter defines the number of fiber entries
This parameter defines the number of fiber entries
that can be set in the configuration database
that can be set in the configuration database
...
...
gen_kconfig_sfp_fiber.sh
View file @
21ce8654
...
@@ -39,6 +39,7 @@ function print_sfp_header() {
...
@@ -39,6 +39,7 @@ function print_sfp_header() {
echo
-e
"
\n
config N_SFP_ENTRIES"
>>
$OUTPUT_FILE
echo
-e
"
\n
config N_SFP_ENTRIES"
>>
$OUTPUT_FILE
echo
-e
"
\t
int
\"
Number of SFP entries in SFP configuration DB
\"
"
>>
$OUTPUT_FILE
echo
-e
"
\t
int
\"
Number of SFP entries in SFP configuration DB
\"
"
>>
$OUTPUT_FILE
echo
-e
"
\t
range 0
$maxSfp
"
>>
$OUTPUT_FILE
echo
-e
"
\t
range 0
$maxSfp
"
>>
$OUTPUT_FILE
echo
-e
"
\t
default
$nbSfp
"
>>
$OUTPUT_FILE
echo
-e
"
\t
help"
>>
$OUTPUT_FILE
echo
-e
"
\t
help"
>>
$OUTPUT_FILE
echo
-e
"
\t
This parameter defines the number of SFP entries"
>>
$OUTPUT_FILE
echo
-e
"
\t
This parameter defines the number of SFP entries"
>>
$OUTPUT_FILE
echo
-e
"
\t
that can be set in the configuration database"
>>
$OUTPUT_FILE
echo
-e
"
\t
that can be set in the configuration database"
>>
$OUTPUT_FILE
...
@@ -94,6 +95,7 @@ function print_fiber_header() {
...
@@ -94,6 +95,7 @@ function print_fiber_header() {
echo
-e
"
\n
config N_FIBER_ENTRIES"
>>
$OUTPUT_FILE
echo
-e
"
\n
config N_FIBER_ENTRIES"
>>
$OUTPUT_FILE
echo
-e
"
\t
int
\"
Number of fiber entries in fiber configuration DB
\"
"
>>
$OUTPUT_FILE
echo
-e
"
\t
int
\"
Number of fiber entries in fiber configuration DB
\"
"
>>
$OUTPUT_FILE
echo
-e
"
\t
range 0
$maxFiber
"
>>
$OUTPUT_FILE
echo
-e
"
\t
range 0
$maxFiber
"
>>
$OUTPUT_FILE
echo
-e
"
\t
default
$nbFiber
"
>>
$OUTPUT_FILE
echo
-e
"
\t
help"
>>
$OUTPUT_FILE
echo
-e
"
\t
help"
>>
$OUTPUT_FILE
echo
-e
"
\t
This parameter defines the number of fiber entries"
>>
$OUTPUT_FILE
echo
-e
"
\t
This parameter defines the number of fiber entries"
>>
$OUTPUT_FILE
echo
-e
"
\t
that can be set in the configuration database"
>>
$OUTPUT_FILE
echo
-e
"
\t
that can be set in the configuration database"
>>
$OUTPUT_FILE
...
...
userspace/dot-config/Makefile
View file @
21ce8654
...
@@ -40,6 +40,9 @@ Kconfig: $(WRS_BASE_DIR)/../Kconfig
...
@@ -40,6 +40,9 @@ Kconfig: $(WRS_BASE_DIR)/../Kconfig
Kconfig_port_timing.in
:
$(WRS_BASE_DIR)/../Kconfig_port_timing.in
Kconfig_port_timing.in
:
$(WRS_BASE_DIR)/../Kconfig_port_timing.in
cp
$^
$@
cp
$^
$@
Kconfig_sfp_fiber.in
:
$(WRS_BASE_DIR)/../Kconfig_sfp_fiber.in
cp
$^
$@
Kconfig_vlans.in
:
$(WRS_BASE_DIR)/../Kconfig_vlans.in
Kconfig_vlans.in
:
$(WRS_BASE_DIR)/../Kconfig_vlans.in
cp
$^
$@
cp
$^
$@
...
...
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