编译后的版本为:5.6.65-g0afd3c3ee045-dirty 需要去掉“-g0afd3c3ee045-dirty ”,不然与驱动不匹配,无法加载相应驱动、
include/config/kernel.release include/generated/utsrelease.h 里面的版本号是编译后生成的,修改这里没用。
修改办法和原因:
由于git仓库管理的原因而加了一串字符
修改办法:config CONFIG_LOCALVERSION_AUTO is not set,然后在setlocalversion 文件中,将
176 # CONFIG_LOCALVERSION and LOCALVERSION (if set)
177 res="${res}${CONFIG_LOCALVERSION}${LOCALVERSION}"
178
179 # scm version string if not at a tagged commit
180 if test "$CONFIG_LOCALVERSION_AUTO" = "y"; then
181 # full scm version string
182 res="$res$(scm_version)"
183 else
184 # append a plus sign if the repository is not in a clean
185 # annotated or signed tagged state (as git describe only
186 # looks at signed or annotated tags - git tag -a/-s) and
187 # LOCALVERSION= is not specified
188 if test "${LOCALVERSION+set}" != "set"; then
189 scm=$(scm_version --short)
190 res="$res${scm:}" //去掉两个++
191 fi
192 fi