final version of compile time SMAP patchset

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>