OVERVIEW:
=========
SSPO uses xsupplicant-1.2.8 to support 802.1x connection.
Since release V1.00.06, xsupp_build.sh is provided for building/cleaning the xsupplicant-1.2.8 
and other relatives. 

Openssl 0.9.7a (or greater) must be installed before configuring and building.
Your linux host must have bison and flex that will be used when building xsupplicant-1.2.8 . 

There are two packages are also required by xsupplicant-1.2.8: wireless_tools.29 and flex-2.5.35.
These two packages have been downloaded and kept in version control.

xsupp_build.sh controls all building procedure of wireless_tools.29, flex-2.5.35 and xsupplicant-1.2.8 .
The firmware owner must specify the directory of Openssl to xsupp_build.sh.


USAGE:
=====
xsupp_build.sh OP_MODE=<Mode> [CROSS=<Your Cross>] [OPENSSL_DIR=<Directory Of Openssl>] [MOREDEFS=<Your Macro>]
OP_MODE		Operation mode
		There are two modes provided in current release: build and clean.
		"build" is used for building xsupplicant.
		"clean" is used for removing xsupplicant.

CROSS		Cross name
		The firmware owner must specify which cross tool you are using.
		eg, 
		If you are using "arm-linux-gcc" to compile your firmware, 
		the cross name is "arm-linux-".
			CROSS=arm-linux-

OPENSSL_DIR	The directory of Openssl
		The firmware owner must specify the directory of Openssl.
		It takes absolute or relative directory.
		eg, 
		If the directory of Openssl is in /svn/SSPO/TPL/applications/openssl-0.9.7a,
		the openssl directory is 
			OPENSSL_DIR=/svn/SSPO/TPL/applications/openssl-0.9.7a 

MOREDEFS	Macro Symbol  
		Some platforms have their own implementation or toolchain restrictions. So that they have to 
		assign a Macro to skip some troubles.
		If your platform have its own implemetation and use a Macro 'MACRO_TEST' to enable/disable it.
		You should run the build-tool like below:
		$./xsupp_build OP_MODE=build CROSS=arm-linux- \
			OPENSSL_DIR=/svn/SSPO/TPL/applications/openssl-0.9.7a \
			MOREDEFS=-DMACRO_TEST
		

BUILDING:
=========
Suppose that you are using a cross tool "arm-none-linux-gnueabi-" and 
your openssl is in a relative directory "../openssl-0.9.7a".
You can build xsupplicant-1.2.8 like below:
$./xsupp_build.sh OP_MODE=build CROSS=arm-none-linux-gnueabi- OPENSSL=../openssl-0.9.7a MOREDEFS=


CLEANING:
=========
For cleaning xsupplicant-1.2.8, 
you can simply use "OP_MODE=clean" like below:
$./xsupp_build.sh OP_MODE=clean
