Add environment generation infrastructure

Signed-off-by: Khem Raj <raj.khem@gmail.com>