public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* make kernelrelease ignoring LOCALVERSION_AUTO
@ 2005-11-20 18:39 James Cloos
  2005-11-20 22:31 ` Kasper Sandberg
  2005-11-21  0:30 ` James Cloos
  0 siblings, 2 replies; 7+ messages in thread
From: James Cloos @ 2005-11-20 18:39 UTC (permalink / raw)
  To: linux-kernel

I use $(make kernelrelease) in my kernel install script to get the
version string for the filenames in /boot and the grub menu items.

The partial hash string CONFIG_LOCALVERSION_AUTO=y adds is no longer
showing up in the version kernelrelease echos, although it does show
up in the version string used by $(make modules_install).

I even added an @echo $MODLIB to the kernelrelease rule and got only:

,----
| :; make kernelrelease
| 2.6.15-rc2-lug2
| /lib/modules/2.6.15-rc2-lug2
`----

whereas modules_install shows this:

,----
| :; make -n modules_install
| if [ -z "`/sbin/depmod -V 2>/dev/null | grep module-init-tools`" ]; then \
|         echo "Warning: you may need to install module-init-tools"; \
|         echo "See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt";\
|         sleep 1; \
| fi
| rm -rf /lib/modules/2.6.15-rc2-lug2-g3bedff1d/kernel
| rm -f /lib/modules/2.6.15-rc2-lug2-g3bedff1d/source
| mkdir -p /lib/modules/2.6.15-rc2-lug2-g3bedff1d/kernel
| ln -s /usr/src/linux-2.6-git /lib/modules/2.6.15-rc2-lug2-g3bedff1d/source
| if [ ! /usr/src/linux-2.6-git -ef  /lib/modules/2.6.15-rc2-lug2-g3bedff1d/build ]; then \
|         rm -f /lib/modules/2.6.15-rc2-lug2-g3bedff1d/build ; \
|         ln -s /usr/src/linux-2.6-git /lib/modules/2.6.15-rc2-lug2-g3bedff1d/build ; \
| fi
| : etc, usw, and so on
`----

So I added the lines:

	@echo kernelreleae is $(KERNELRELEASE)
	@echo modlib is $(MODLIB)

to _modinst_: and got this:

,----
| :; make -n modules_install 2>&1 |head
| echo kernelreleae is 2.6.15-rc2-lug2-g3bedff1d
| echo modlib is /lib/modules/2.6.15-rc2-lug2-g3bedff1d
| if [ -z "`/sbin/depmod -V 2>/dev/null | grep module-init-tools`" ]; then \
|         echo "Warning: you may need to install module-init-tools"; \
|         echo "See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt";\
|         sleep 1; \
| fi
| rm -rf /lib/modules/2.6.15-rc2-lug2-g3bedff1d/kernel
| rm -f /lib/modules/2.6.15-rc2-lug2-g3bedff1d/source
| mkdir -p /lib/modules/2.6.15-rc2-lug2-g3bedff1d/kernel
`----

So $KERNELRELEASE is /different/ depending on which target is being made.

My laptop is quite slow doing anything disk-intensive, such as git, so
it'll take some time before I can bisect down to a single commit --
especially if a full compile will be required to confirm whether it
works correctly -- but I do know that it is between g9f75e1ef... and
gee90f62b... if anyone with faster hardware cares to try.

-JimC
-- 
James H. Cloos, Jr. <cloos@jhcloos.com>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-11-21 22:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-20 18:39 make kernelrelease ignoring LOCALVERSION_AUTO James Cloos
2005-11-20 22:31 ` Kasper Sandberg
2005-11-21  0:10   ` James Cloos
2005-11-21  0:30 ` James Cloos
2005-11-21 10:53   ` Uwe Zeisberger
2005-11-21 13:54     ` [PATCH] " Uwe Zeisberger
2005-11-21 22:10       ` James Cloos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox