|
@ -9,7 +9,7 @@ set -e |
|
|
|
|
|
|
|
|
cd "$(dirname "$0")" |
|
|
cd "$(dirname "$0")" |
|
|
|
|
|
|
|
|
IFDTOOL_PATH=./util/ifdtool/ifdtool |
|
|
|
|
|
|
|
|
IFDTOOL=./util/ifdtool/ifdtool |
|
|
ME_CLEANER_PATH=./util/me_cleaner/me_cleaner.py |
|
|
ME_CLEANER_PATH=./util/me_cleaner/me_cleaner.py |
|
|
have_chipname=0 |
|
|
have_chipname=0 |
|
|
have_backupname=0 |
|
|
have_backupname=0 |
|
@ -188,8 +188,8 @@ if [ ! "$have_chipname" -gt 0 ] ; then |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
make -C util/ifdtool |
|
|
make -C util/ifdtool |
|
|
if [ ! -e ${IFDTOOL_PATH} ] ; then |
|
|
|
|
|
echo "ifdtool not found at ${IFDTOOL_PATH}" |
|
|
|
|
|
|
|
|
if [ ! -e ${IFDTOOL} ] ; then |
|
|
|
|
|
echo "ifdtool not found at ${IFDTOOL}" |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -241,9 +241,9 @@ else |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ ! "$lock" -gt 0 ] ; then |
|
|
if [ ! "$lock" -gt 0 ] ; then |
|
|
${IFDTOOL_PATH} -u "${TEMP_DIR}"/work.rom |
|
|
|
|
|
|
|
|
${IFDTOOL} -u "${TEMP_DIR}"/work.rom |
|
|
else |
|
|
else |
|
|
${IFDTOOL_PATH} -l "${TEMP_DIR}"/work.rom |
|
|
|
|
|
|
|
|
${IFDTOOL} -l "${TEMP_DIR}"/work.rom |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ ! -e "${TEMP_DIR}"/work.rom.new ] ; then |
|
|
if [ ! -e "${TEMP_DIR}"/work.rom.new ] ; then |
|
|