Skip to content
Snippets Groups Projects
Commit 0ab45bb1 authored by jdh8d's avatar jdh8d
Browse files

Reworked to have irdb_transforms dir that can link in libstars.

parent b2b65556
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ fi
# stratafier
cd $PEASOUP_UMBRELLA_DIR/stratafier
make
make || exit
# strata
if [ ! "$STRATA_HOME" ]; then
......@@ -30,15 +30,16 @@ if [ `uname -m` = 'x86_64' ]; then
cp -R $STRATA $STRATA32
fi
cd $STRATA_HOME32
STRATA_HOME=$STRATA_HOME32 STRATA=$STRATA_HOME32 ./build -host=i386-linux
STRATA_HOME=$STRATA_HOME32 STRATA=$STRATA_HOME32 ./build -host=i386-linux || exit
# build x86-64 strata
cd $STRATA_HOME
./configure;make
./configure || exit
make || exit
else
cd $STRATA_HOME
./build
./build || exit
fi
# smp-static-analyzer
......@@ -47,9 +48,7 @@ if [ ! "$SMPSA_HOME" ]; then
exit 1;
fi
cd $SMPSA_HOME
#./configure
#make
scons
scons || exit
# security-transforms
if [ ! "$SECURITY_TRANSFORMS_HOME" ]; then
......@@ -57,21 +56,24 @@ if [ ! "$SECURITY_TRANSFORMS_HOME" ]; then
exit 1;
fi
cd $SECURITY_TRANSFORMS_HOME
scons
scons || exit
cd $PEASOUP_HOME
make
make || exit
cd $ZIPR_CALLBACKS
./configure --enable-p1 --prefix=$ZIPR_INSTALL
make
make install
make || exit
make install || exit
cd $ZIPR_HOME
scons
scons || exit
cd $ZIPR_SCFI_PLUGIN
scons
scons || exit
cd $PEASOUP_UMBRELLA_DIR/zipr_push64_reloc_plugin
scons
scons || exit
cd $IRDB_TRANSFORMS
scons || exit
......@@ -14,34 +14,26 @@ fi
cd $PEASOUP_UMBRELLA_DIR/stratafier
make clean
# strata
if [ ! "$STRATA_HOME" ]; then
echo "STRATA_HOME not set.";
exit 1;
fi
cd $STRATA_HOME
./configure
make clean
cd $PEASOUP_UMBRELLA_DIR/
rm -Rf strata32
# smp-static-analyzer
if [ ! "$SMPSA_HOME" ]; then
echo "SMPSA_HOME not set.";
exit 1;
fi
cd $SMPSA_HOME
./configure
scons -c
scons -c || exit
# security-transforms
if [ ! "$SECURITY_TRANSFORMS_HOME" ]; then
echo "SECURITY_TRANSFORMS_HOME not set.";
exit 1;
fi
cd $SECURITY_TRANSFORMS_HOME
scons -c
scons -c || exit
cd $ZIPR_HOME
scons -c
cd $IRDB_TRANSFORMS
scons -c || exit
cd $ZIPR_SCFI_PLUGIN
scons -c || exit
cd $PEASOUP_UMBRELLA_DIR/zipr_push64_reloc_plugin
scons -c || exit
cd $ZIPR_HOME
scons -c || exit
......@@ -4,8 +4,6 @@ export PEASOUP_UMBRELLA_DIR=`pwd`
export STRATAFIER_OBJCOPY=$PEASOUP_UMBRELLA_DIR/binutils-2.19/binutils/objcopy
export TOOLCHAIN=$PEASOUP_UMBRELLA_DIR/diablo_toolchain
export PEASOUP_HOME=$PEASOUP_UMBRELLA_DIR/peasoup_examples
export PIN_HOME=$PEASOUP_HOME/tools/pin
export NICECAP_HOME=$PEASOUP_UMBRELLA_DIR/nicecap_example
export SMPSA_HOME=$PEASOUP_UMBRELLA_DIR/SMPStaticAnalyzer
export STRATAFIER=$PEASOUP_UMBRELLA_DIR/stratafier
export IDAROOT=$PEASOUP_UMBRELLA_DIR/idaproCur
......@@ -19,27 +17,9 @@ export ZIPR_INSTALL=$PEASOUP_UMBRELLA_DIR/zipr_install
export ZIPR_CALLBACKS=$PEASOUP_UMBRELLA_DIR/zipr_callbacks
export ZIPR_SDK=$PEASOUP_UMBRELLA_DIR/zipr_sdk
export ZIPR_SCFI_PLUGIN=$PEASOUP_UMBRELLA_DIR/zipr_scfi_plugin
export SECURITY_TRANSFORMS_HOME=$PEASOUP_UMBRELLA_DIR/security_transforms
if [[ ! "$LD_LIBRARY_PATH" =~ (^|:)"$PEASOUP_UMBRELLA_DIR/lib:$PEASOUP_UMBRELLA_DIR/grace/concolic/bin:$STRATA/lib"(:|$) ]]
then
export LD_LIBRARY_PATH=$PEASOUP_UMBRELLA_DIR/lib:$PEASOUP_UMBRELLA_DIR/grace/concolic/bin:$STRATA/lib:$LD_LIBRARY_PATH
fi
#Get IDAPRO to work with no errors
#export TVHEADLESS=1
# just not needed, and annoying as hell when trying to debug ida.
export IRDB_TRANSFORMS=$PEASOUP_UMBRELLA_DIR/irdb_transforms
source ./irdb_vars
export GRACE_HOME=$PEASOUP_UMBRELLA_DIR/grace
export YICES_HOME=$GRACE_HOME/third-party/yices-sdk/1.0.34/linux32/bin
export PATH=$PATH:$GRACE_HOME/concolic/bin:$YICES_HOME
export SCONSFLAGS="exceptions=1 x86=1 tool=1 hprof=0 cpuprof=0 lm_required=false gen_lmi=0 offsite=1 irdb_path=$SECURITY_TRANSFORMS_HOME/libIRDB -j 2"
#moving this to setenv vars, as it's not global and breaks our peasoup installation
# adjust to your SVN username
#export SVN_USERNAME=$USER
. $PEASOUP_UMBRELLA_DIR/set_command_envs
source $PEASOUP_UMBRELLA_DIR/set_command_envs
......@@ -4,6 +4,7 @@ idaproCur_sdk http://svn.zephyr-software.com/repos/idaproCur_sdk/trunk/
strata http://svn.zephyr-software.com/repos/strata/trunk/
peasoup_examples http://svn.zephyr-software.com/repos/peasoup_examples/trunk/
security_transforms http://svn.zephyr-software.com/repos/security_transforms/trunk/
irdb_transforms http://svn.zephyr-software.com/repos/irdb_transforms/trunk/
SMPStaticAnalyzer http://svn.zephyr-software.com/repos/SMPStaticAnalyzer/trunk/
stratafier http://svn.zephyr-software.com/repos/stratafier/trunk/
zipr http://svn.zephyr-software.com/repos/zipr/trunk/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment