Download or clone cm compiler
Build cmc following the steps in readme @https://github.com/intel/cm-compiler
Download or clone intel graphics comiler
Build igc following the steps in readme @ https://github.com/intel/intel-graphics-compiler
Set envrionment variale (Set compiler path)
export PATH=$PATH:<cm_compiler_path>/include:<cm_compiler_path>/bin
run build.py to generate kernel binary
run command to generate source files.
“KernelBinToSource -i commonkernel.krn -o media_driver/agnostic/gen11/codec/kernel/ -v igcodeckrn_g11 -index 14 -t 17”
please refer media_driver/agnostic/common/codec/kernel/codeckrnheader.h about the index and total number.