relax the build dependency on Gen GPU
authorGuo Yejun <yejun.guo@intel.com>
Mon, 26 May 2014 22:13:12 +0000 (06:13 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Thu, 12 Jun 2014 09:33:45 +0000 (17:33 +0800)
commite574237d9c734dcab56349e651de9f3fe6ec2500
tree1ad1331e12b381193e290ff03609008e33904765
parent47874592adac08862cfefd5c7915b926cc37a900
relax the build dependency on Gen GPU

currently, the Gen GPU pciid of the underlying system is queried
and then passed to gbe_bin_generater as the target option.

This does not work when building the driver on another system with
non-intel GPUs, this patch relaxes the dependency by exporting the
pciid setting at CMake level, therefore, the pciid could be given
as a CMake option besides the current real time query method.

this patch also remove the redundancy code in utest/CMake by setting
PARENT_SCOPE in src/CMake.

Signed-off-by: Guo Yejun <yejun.guo@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
src/CMakeLists.txt
utests/CMakeLists.txt