Files
BPI-CM9-Linux/aml-comp/uboot/fip/s6/attach_sbh.sh
T
2026-08-24 10:03:24 +08:00

25 lines
369 B
Bash
Executable File

#!/bin/bash
EXEC_BASEDIR=$(dirname $(readlink -f $0))
Usage() {
echo "Usage: $0 img_file img_file_with_header"
}
main() {
if [ "$#" != "2" ]; then
Usage
return
fi
if [ ! -f $1 ]; then
echo "Error: Image file does not exist!!!"
return
fi
${EXEC_BASEDIR}/bb1_extract_meta.sh $1 | ${EXEC_BASEDIR}/sbh_gen.sh > $2
cat $1 >> $2
}
main $@