#/*********************************************************************************
#
#INTEL CORPORATION PROPRIETARY INFORMATION
#This software is supplied under the terms of a license agreement or nondisclosure
#agreement with Intel Corporation and may not be copied or disclosed except in
#accordance with the terms of that agreement
#Copyright(c) 2015-2017 Intel Corporation. All Rights Reserved.
#
#**********************************************************************************/

RPM_LIST="intel-linux-media-16.7.3-64751.x86_64.rpm intel-linux-media-libva-16.7.3-64751.x86_64.rpm intel-opencl-16.7-64269.x86_64.rpm intel-opencl-cpu-16.7-64269.x86_64.rpm intel-opencl-devel-16.7-64269.x86_64.rpm intel-unified-3d-16.7.3-64751.x86_64.rpm intel-unified-3d-nano-16.7.3-64751.x86_64.rpm "
UFO_VERSION_BUILD=64751
VERSION_POSTFIX=-ubit

To Install the files, Execute:
rpm -Ufh <rpm file>

To Install the files on Multilib system, Execute:
rpm -Ufh --relocate /usr/lib=/usr/lib64 <rpm file>

Note on Media and libVA drivers:
- Media driver and libVA artifacts are split into two different packages.
- Both should be installed before running Media.
- libVA drivers are built against Staging libVa from iotg-lin-gfx-libva:
    Fetch Url: https://github.com/01org/iotg-lin-gfx-libva.git
    Branch: release/mr3_staging
    Commit: 9430287e9e1563777e3d51ba730636e78ed10796

Tips:
Sanity test for OpenGL UFO driver:
 > startx
 > glxinfo | grep -i OpenGL
Verify, OpenGL renderer string: Intel(R) Unified 3D Library

Sanity test for Media driver:
 > export LIBVA_DRIVERS_PATH=/usr/lib # Modify if using rpm relocate
 > export LIBVA_DRIVER_NAME=iHD
 > vainfo
Verify, iHD_drv_video.so is being opened instead of i965_drv_video.so

Verify Media & unified-3d rpm packages (opencl not supported):
(1) Verify the fingerprint and key ID, FDF0DC8A, of the GPG public key (GPG-KEY-VPG-UFO-YOCTO.public) provided with the rpm.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
$ gpg --quiet --with-fingerprint GPG-KEY-VPG-UFO-YOCTO.public
pub  2048R/FDF0DC8A 2017-03-09 "CN = Intel(R) UFO Packages for Linux Yocto", O=Intel Corporation
      Key fingerprint = 88B0 E080 63FA 9D34 CDC3  2840 95C3 951E FDF0 DC8A
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
(2) If the GPG key fingerprint is correct, add the key to the system's RPM database.
$ sudo rpm --import GPG-KEY-VPG-UFO-YOCTO.public
(3) Verify Intel provided the GPG key ID used to sign the rpm.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
$ rpm -Kv intel-linux-media-16.7-64751.x86_64.rpm | grep Signature
    Header V4 RSA/SHA1 Signature, key ID fdf0dc8a: OK
    V4 RSA/SHA1 Signature, key ID fdf0dc8a: OK
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Both "OK" from output indicate the genuineness.
 
md5sum of Generated RPM files:
ab2bb2e3698e365c4a437c05ebb8daa8 intel-linux-media-16.7.3-64751.x86_64.rpm
4e4c7949badea9448ab4445407af0e81 intel-linux-media-libva-16.7.3-64751.x86_64.rpm
2b87dc75150f7dbbc7e96aac11cbedf0 intel-opencl-16.7-64269.x86_64.rpm
9659fa1a004920655db89c11d23fa3e4 intel-opencl-cpu-16.7-64269.x86_64.rpm
237fb9b0e3fb3e32f834c2ae42f737ba intel-opencl-devel-16.7-64269.x86_64.rpm
60a68e91498587bc8417bb251e09fec7 intel-unified-3d-16.7.3-64751.x86_64.rpm
1e00edb81b6b042fa8ea73e856b0596e intel-unified-3d-nano-16.7.3-64751.x86_64.rpm
