tegra-helper-scripts: save RAMCODE to boardvars.sh

Signed-off-by: Matt Madison <matt@madison.systems>
This commit is contained in:
Matt Madison
2024-10-13 05:44:03 -07:00
committed by Matt Madison
parent 875cb42d10
commit 5637b95584

View File

@@ -354,6 +354,10 @@ fi
[ -f ${cvm_bin} ] && rm -f ${cvm_bin}
if [ -z "$RAMCODE" -a "$BOARDID" = "3701" -a "$FAB" = "301" ]; then
RAMCODE=0
fi
rm -f boardvars.sh
cat >boardvars.sh <<EOF
BOARDID="$BOARDID"
@@ -363,6 +367,9 @@ BOARDREV="$BOARDREV"
CHIPREV="$CHIPREV"
CHIP_SKU="$CHIP_SKU"
EOF
if [ -n "$RAMCODE" ]; then
echo "RAMCODE=$RAMCODE" >>boardvars.sh
fi
if [ -n "$serial_number" ]; then
echo "serial_number=$serial_number" >>boardvars.sh
fi
@@ -376,10 +383,6 @@ if [ -n "$CHIP_SKU" ]; then
echo "CHIP_SKU=\"$CHIP_SKU\"" >>boardvars.sh
fi
if [ "$BOARDID" = "3701" -a "$FAB" = "301" ]; then
RAMCODE=0
fi
if echo "$CHIP_SKU" | grep -q ":" 2>/dev/null; then
chip_sku=$(echo "$CHIP_SKU" | cut -d: -f4)
else