Skip to contentSkip to conversation

kernel module dir following move to git

Buildroot Will Wagner 2 participants 3 messages May 28, 2009

lore
Share & tools
lore
#0 lore raw

Hello All,

Following the move to git I am seeing the kernel modules being built to a different directory. The code expects modules to be built in $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION_PROBED)

LINUX26_VERSION_PROBED is set with
LINUX26_VERSION_PROBED = $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) -s kernelrelease

Since the move to git the kernel has changed what it reports with kernelrelease to $(VERSION)-g7664a62a-dirty. Presumably the kernel is spotting that buildroot came from a git repository and is appending info about the checkout?

Any suggestion on how to prevent this happening?

Will

Signature · 5 lines
------------------------------------------------------------------------
Will Wagner                                     will_wagner at carallon.com
Development Manager                      Office Tel: +44 (0)20 7371 2032
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------
#1 lore raw
Quoted 10 lines · Will Wagner

Hello All,

Following the move to git I am seeing the kernel modules being built to a different directory. The code expects modules to be built in $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION_PROBED)

LINUX26_VERSION_PROBED is set with LINUX26_VERSION_PROBED = $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) -s kernelrelease

Quoted 8 lines

Since the move to git the kernel has changed what it reports with kernelrelease to $(VERSION)-g7664a62a-dirty. Presumably the kernel is spotting that buildroot came from a git repository and is appending info about the checkout?

Any suggestion on how to prevent this happening?

Will

Think I have worked this out now. It is because I have CONFIG_LOCALVERSION_AUTO=y set in my kernel config file. Still seems odd that it is finding buildroot git rather than a kernel git but think I can fix it now.

Signature · 5 lines
------------------------------------------------------------------------
Will Wagner                                     will_wagner at carallon.com
Development Manager                      Office Tel: +44 (0)20 7371 2032
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------
#2 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Will" == Will Wagner <[email protected]> writes:

Hi,

Will> Think I have worked this out now. It is because I have Will> CONFIG_LOCALVERSION_AUTO=y set in my kernel config file. Still seems Will> odd that it is finding buildroot git rather than a kernel git but Will> think I can fix it now.

Well, it's because the kernel's scripts/setlocalversion checks if your kernel is in a git repo (which it technically is if you build in the tree and have buildroot from git).

Another workaround is to simply build out of tree (make O=<somewhere>)

Signature · 1 line
Bye, Peter Korsgaard