How can i bake shadows for lamp texture?

I know how i can bake shadows onto the material of the ground …

But how can i properly bake a lamp texture to replicate the same shadows ?

Here below he shows the idea with a texture, but no how to bake that lamp texture based on objects in the scene

Fake RealTime Shadows - bge Tutorial

thx