Buildroot - how to change the kernel version string

I work on a SAM9G25 EK board with buildroot and linux Linux (Linux4sam). My script creates the Linux version 2.6.39+, and this "+" is confusing (/ lib / modules folder, etc.). I want to delete it. I found only two .uImage.cmd and kernel.release files that contain this line, but both are generated.

Where is this line created?

+4
source share
2 answers

Do you have a .config ? Look there for the value assigned by CONFIG_LOCALVERSION .

To avoid the local version specified in the kernel release, delete CONFIG_LOCALVERSION or comment out it by running the line containing it with # .

The default value is:

 #CONFIG_LOCALVERSION is not set 
+5
source

In this case, the main reason was: scripting line / setlocalversion> 170:

 # append a plus sign if the repository is not in a clean # annotated or signed tagged state (as git describe only # looks at signed or annotated tags - git tag -a/-s) and # LOCALVERSION= is not specified if test "${LOCALVERSION+set}" != "set"; then scm=$(scm_version --short) res="$res${scm:++}" fi 

I commented on this part.

+2
source

Source: https://habr.com/ru/post/1212053/


All Articles