Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Detecting kernel version in Makefile
Hi,
In the driver/Makefile in the latest DVB tree the detection of the kernel
version is not reliable. It currently uses the version.h file, which on a
brand new installation of Mandrake 9.0 does not contain the expected
information.
The attached patch uses a more portable method (uname -r). I don't know if
this works properly on other distributions.
Pete
----------------------------------------------------------------------------
-----------------------
--- /mnt/oldlinux/usr/local/src/DVB/driver/Makefile 2003-01-18
17:26:59.000000000 +0000
+++ Makefile 2003-02-06 10:03:31.000000000 +0000
@@ -22,7 +22,7 @@ export DVB_PACK = 1
export KERNEL_LOCATION = /usr/src/linux
-export KERNEL_VERSION := $(shell head -1
$(KERNEL_LOCATION)/include/linux/version.h|( read i j k; echo $$k|sed
s/\"//g))
+export KERNEL_VERSION := $(shell uname -r)
export CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
else if [ -x /bin/bash ]; then echo /bin/bash; \
----------------------------------------------------------------------------
-----------------------
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.
Home |
Main Index |
Thread Index