Add mkimg; Put gendata into production mode.