Bug 21592 - When kernel is built to separate directory (make O=...) makefile misses SUBLEVEL and EXTRAVERSION
Summary: When kernel is built to separate directory (make O=...) makefile misses SUBLE...
Status: RESOLVED OBSOLETE
Alias: None
Product: Other
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: other_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-31 22:41 UTC by NiTr0
Modified: 2013-12-10 22:28 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.35.7
Subsystem:
Regression: No
Bisected commit-id:


Attachments
patch for kernel to resolve this (1.11 KB, patch)
2010-11-01 12:00 UTC, NiTr0
Details | Diff

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.

Note You need to log in before you can comment on or make changes to this bug.