10.09.2016 Views

Hacking_and_Penetration_Testing_with_Low_Power_Devices

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Adding tools the hard way<br />

81<br />

FIGURE 4.13<br />

Configuring Eclipse to use SSH processes.<br />

cross_make_env¼"$cross_compile_env"<br />

cross_gcc¼'arm-linux-gnueabihf-gcc'<br />

board¼$(cat /proc/cpuinfo j grep "^model name" j awk '{print $4}')<br />

declare -i localBuild<br />

localBuild¼1<br />

(echo $board j grep 'ARM') jj localBuild¼0<br />

if [ $localBuild -eq 1 ] ; then<br />

echo "Performing local build"<br />

else<br />

echo "Cross-compiling"<br />

fi<br />

#build the package in the current directory<br />

build_from_current_directory() {

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!