Modification of or tampering with the product, including but not limited to any Open Source Software, is solely at Your own risk. Western Digital is not responsible for any such modification or tampering. Western Digital will not support any product in which You have or have attempted to modify the software or hardware supplied by Western Digital.

-----------------------------------------------------------------------------

Prepare build environment
--------------------------
- download and install toolchain:
	The toolchain used from Embedded Linux Development Kit (ELDK) version 4.2 for ppc_4xxFP, available at http://www.denx.de/wiki/DULG/ELDK.
	The specific toolchain can be found in the iso available at http://ftp.denx.de/pub/eldk/4.2/ppc-linux-x86/iso/ppc-2008-04-01_amcc.iso.
- download and install make


Build
----------------------------
	# export TOOLCHAIN_DIR=<path to toolchain root>
	# export PATH=${TOOLCHAIN_DIR}/bin/:$PATH
	# export BUILD_HOST=ppc-linux
	# export ARCH=powerpc
	# export CROSS_COMPILE=ppc_4xxFP-

	# cd ffmpeg-0.6.2/
	# mkdir -p BUILD_OUT/ffmpeg_libs

	# ./configure --enable-cross-compile --arch=${ARCH} --cross-prefix=${CROSS_COMPILE} --target-os=linux --extra-cflags="-DNFLC_DISABLE_HAVE_SYMVER" --disable-altivec --enable-shared --disable-static --disable-avdevice --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-debug --enable-pthreads --disable-default_mem
	# make -i

	# cp -f -P libavformat/libavformat.so* ./BUILD_OUT/ffmpeg_libs;
	# cp -f -P libavcodec/libavcodec.so* ./BUILD_OUT/ffmpeg_libs;
	# cp -f -P libavutil/libavutil.so* ./BUILD_OUT/ffmpeg_libs;
	# cp -f -P libswscale/libswscale.so* ./BUILD_OUT/ffmpeg_libs;
	# cp -f -P libavmem/libavmem.so* ./BUILD_OUT/ffmpeg_libs;


Install
---------------------------------
- After successful completion, compiled binaries are available under BUILD_OUT/ffmpeg_libs folder

- the location on the device:
	/usr/lib/
	/usr/local/lib



