LDFLAGS="$LDFLAGS"
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DTZ_SYS_UPGRADE=%TZ_SYS_UPGRADE \
- -DTZ_SYS_UPGRADE_SCRIPTS=%TZ_SYS_UPGRADE_SCRIPTS \
- -DTZ_SYS_UPGRADE_DATA=%TZ_SYS_UPGRADE_DATA
+ -DTZ_SYS_UPGRADE_SCRIPTS=%TZ_SYS_UPGRADE_SCRIPTS
%__make %{?_smp_mflags}
%install
echo "Exist 99-sdb-switch.rules, Skip!"
else
mkdir -p %{_libdir}/udev/rules.d
- ln -s %TZ_SYS_UPGRADE_DATA/99-sdb-switch.rules %{_libdir}/udev/rules.d
+ ln -s /opt/data/update/99-sdb-switch.rules %{_libdir}/udev/rules.d
fi
if [ ! -e %{_bindir}/rstsmack ]; then
ln -s %{_bindir}/rstsmack-for-update %{_bindir}/rstsmack
PATH="/usr/bin:/bin:/usr/sbin:/sbin"
SDB_RULE="99-sdb-switch.rules"
-DEST=@TZ_SYS_UPGRADE_DATA@
+DEST=/opt/data/update
if [ ! -e ${DEST}/${SDB_RULE} ]; then
/bin/mkdir -p ${DEST}
TMP_DIR=/tmp/upgrade
UPDATE_DIR=@TZ_SYS_UPGRADE@
PATCH_DIR=@TZ_SYS_UPGRADE_SCRIPTS@
-UPDATE_DATA_DIR=@TZ_SYS_UPGRADE_DATA@
+UPDATE_DATA_DIR=/opt/data/update
LOG_FILE=${UPDATE_DATA_DIR}/rw_update.log
RESULT_FILE=${UPDATE_DATA_DIR}/result
SDB_RULE=${UPDATE_DATA_DIR}/99-sdb-switch.rules