Skip to Content.
Sympa Menu

sm-sorcery - [SM-Sorcery] Kernel version dependency

sm-sorcery AT lists.ibiblio.org

Subject: Discussion of Sorcery related topics

List archive

Chronological Thread  
  • From: "Jose Bernardo Silva" <jbs AT bandos.homelinux.com>
  • To: sm-sorcery <sm-sorcery AT lists.ibiblio.org>
  • Subject: [SM-Sorcery] Kernel version dependency
  • Date: Sat, 10 Jan 2004 11:03:03 +0000

Hi!

I am rewriting right now a spell that checks for kernel version in the
Makefile, with the following lines:

KVER := $(shell uname -r)
KDIR := /lib/modules/$(KVER)/build
KMISC := /lib/modules/$(KVER)/kernel/drivers/net/wireless/prism54/
KEXT := $(shell echo $(KVER) | sed -ne 's/^2\.[567]\..*/k/p')o

I can override it with a "make KDIR=...", or probably, a "make KVER=...". What
should I use instead of uname -r, so that I can pass it the release of the
kernel that has just been compiled, not the one currently running?
I've checked a couple of spells, and they seem to use "uname -r", but that (to
me) doesn't seem to solve the problem.

Thanks!

---
Jose Bernardo B R Silva | Source Mage GNU/Linux Section Guru
jbernardo AT sourcemage.org | http://www.sourcemage.org
http://counter.li.org #245602
http://cosmos.oninetspeed.pt/jose.bernardo
jbs AT bandos.homelinux.com





Archive powered by MHonArc 2.6.24.

Top of Page