update build script and add kernel configuration