Bug 21592

Summary: When kernel is built to separate directory (make O=...) makefile misses SUBLEVEL and EXTRAVERSION
Product: Other Reporter: NiTr0 (nitr0)
Component: OtherAssignee: other_other
Status: RESOLVED OBSOLETE    
Severity: normal CC: alan, mmarek
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.35.7 Subsystem:
Regression: No Bisected commit-id:
Attachments: patch for kernel to resolve this

Description NiTr0 2010-10-31 22:41:46 UTC
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.
Comment 1 NiTr0 2010-11-01 12:00:23 UTC
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.