summaryrefslogtreecommitdiff
path: root/meta-ibs/meta-cp2-5422/recipes-phosphor/fru/default-fru/decodeBoardID.sh
blob: 98b4c98441661b97b4aa0dc98a5eacc7340de94d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

# this script uses the BOARD_ID set from checkFru.sh and provides the NAME,
# PRODID, and EEPROM_FRU values for this platform
decode_board_id() {
    if grep -q 'CPU part\s*: 0xb76' /proc/cpuinfo; then
        # AST2500
        if [ -f $fruFile -a -f $prodIDFile -a $BOARD_ID -ne 0 ]; then
            exit 0
        fi
        NAME="CP2-5422"
        PRODID="0x7b"
    fi
}