m7-common: split extract script into extracter, makefile writer

Change-Id: I094f41c07017f53768d9d87eac4a6e01f421036b
m7-common: no need to extract egl.cfg

Change-Id: I1f8bda4d50e1d1ef1260e81529c10caedf84851a
Merge "m7-common: split extract script into extracter, makefile writer" into cm-10.1
Merge "m7-common: no need to extract egl.cfg" into cm-10.1