Add gencode and genconfig

Change-Id: Iba1c07d35e84d441335806f384eda760d2690477