meta-fii: meta-kudo: Add board version limits to kudo-lib.sh
Replaces the hardcoded board version limits with reference to name
in kudo-lib.sh for Kudo layer.
Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com>
Change-Id: I69a2a157d5f49f474b06bbc15d15377371fffcf2
diff --git a/meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/kudo-lib.sh b/meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/kudo-lib.sh
index fd0aa20..9cee5f4 100644
--- a/meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/kudo-lib.sh
+++ b/meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/kudo-lib.sh
@@ -54,3 +54,7 @@
I2C_S1_CLKGEN=(37 68)
I2C_S1_PCIE_CLKGEN1=(16 6a)
I2C_S1_PCIE_CLKGEN2=(17 67)
+
+# Board Version Definitions
+BOARDVER_EVT_LAST=64
+BOARDVER_DVT_LAST=127
diff --git a/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh b/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh
index 5ddd73c..6e93152 100644
--- a/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh
+++ b/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh
@@ -30,7 +30,7 @@
# On EVT machines, the secondary SCP EEPROM is used.
# Set BMC_I2C_BACKUP_SEL to secondary.
-if [[ $boardver -lt 64 ]]; then
+if [[ $boardver -lt $BOARDVER_EVT_LAST ]]; then
echo "EVT system. Choosing secondary SCP EEPROM."
set_gpio_ctrl BACKUP_SCP_SEL 0
set_mux_default
@@ -55,7 +55,7 @@
CPU1_STATUS_N=$(get_gpio_ctrl S1_STATUS_N)
if [[ $CPU1_STATUS_N == 1 ]]; then
#Execute this only on DVT systems
- if [[ $boardver -lt 64 ]]; then
+ if [[ $boardver -lt $BOARDVER_EVT_LAST ]]; then
echo EVT system "$boardver"
else
echo DVT system "$boardver"