diff options
Diffstat (limited to 'mpm/tools/tlv_eeprom/eeprom-wrapper')
-rw-r--r-- | mpm/tools/tlv_eeprom/eeprom-wrapper | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mpm/tools/tlv_eeprom/eeprom-wrapper b/mpm/tools/tlv_eeprom/eeprom-wrapper new file mode 100644 index 000000000..4e7c7dbfa --- /dev/null +++ b/mpm/tools/tlv_eeprom/eeprom-wrapper @@ -0,0 +1,13 @@ +#!/bin/bash + +set -e + +util=$(basename $0) +if [ $# -ge 1 ]; then + symbol=$1 + if [ -n "$symbol" ] && [ "${symbol:(-7)}" != "_eeprom" ]; then + symbol="${symbol}_eeprom" + fi + path=$(eeprom-path $symbol) +fi +$util-core $path ${*:2} 2> >( sed "s!-core <\(eeprom\|output_file\)>! <symbol>!" >&2) |