Merge my build script and config generation script

Signed-off-by: Zhao Wei Liew <zhaoweiliew@gmail.com>