I tried to compile embedded distro with different kernels, so I placed output files for different configs into separate folders. I discovered that some software for it's configure script needs kernel htaders, it looks for include/linux/version.h (so it requires to specify of output folder as folder with kernel sources), and it takes versioninfo from Makefile lines. But into generated makefile there are only version and patchlevel, and sublevel/extraversion are missed, and configure script becomes confused. Now I added hack for my scripts - I appended into end of Makefile sublevel/extraversion lines, but it'll be good if in future this will be fixed.
Created attachment 35732 [details] patch for kernel to resolve this I created patch for kernel for providing all version attributes to generated makefiles. It'll be good if this patch will be included into future kernel releases.