Commit 21ce8654 authored by Jean-Claude BAU's avatar Jean-Claude BAU

SFP/Fiber DB in Kconfig: Add default values

parent d94ff7a8
......@@ -3,6 +3,7 @@ menu "SFP and Media Timing Configuration"
config N_SFP_ENTRIES
int "Number of SFP entries in SFP configuration DB"
range 0 18
default 6
help
This parameter defines the number of SFP entries
that can be set in the configuration database
......@@ -393,6 +394,7 @@ endmenu
config N_FIBER_ENTRIES
int "Number of fiber entries in fiber configuration DB"
range 0 18
default 4
help
This parameter defines the number of fiber entries
that can be set in the configuration database
......
......@@ -39,6 +39,7 @@ function print_sfp_header() {
echo -e "\nconfig N_SFP_ENTRIES" >>$OUTPUT_FILE
echo -e "\tint \"Number of SFP entries in SFP configuration DB\"" >>$OUTPUT_FILE
echo -e "\trange 0 $maxSfp" >>$OUTPUT_FILE
echo -e "\tdefault $nbSfp" >>$OUTPUT_FILE
echo -e "\thelp" >>$OUTPUT_FILE
echo -e "\tThis parameter defines the number of SFP entries" >>$OUTPUT_FILE
echo -e "\tthat can be set in the configuration database" >>$OUTPUT_FILE
......@@ -94,6 +95,7 @@ function print_fiber_header() {
echo -e "\nconfig N_FIBER_ENTRIES" >>$OUTPUT_FILE
echo -e "\tint \"Number of fiber entries in fiber configuration DB\"" >>$OUTPUT_FILE
echo -e "\trange 0 $maxFiber" >>$OUTPUT_FILE
echo -e "\tdefault $nbFiber" >>$OUTPUT_FILE
echo -e "\thelp" >>$OUTPUT_FILE
echo -e "\tThis parameter defines the number of fiber entries" >>$OUTPUT_FILE
echo -e "\tthat can be set in the configuration database" >>$OUTPUT_FILE
......
......@@ -40,6 +40,9 @@ Kconfig: $(WRS_BASE_DIR)/../Kconfig
Kconfig_port_timing.in: $(WRS_BASE_DIR)/../Kconfig_port_timing.in
cp $^ $@
Kconfig_sfp_fiber.in: $(WRS_BASE_DIR)/../Kconfig_sfp_fiber.in
cp $^ $@
Kconfig_vlans.in: $(WRS_BASE_DIR)/../Kconfig_vlans.in
cp $^ $@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment