New approach to define static modules

Signed-off-by: Eduardo Silva <edsiper@gmail.com>