From 0eab93f819d75ebe20877ef01c586464d64ef6b6 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sat, 29 Sep 2007 21:20:33 +0000 Subject: [PATCH] Don't install decode-xeon.pl on Linux 2.6 systems, it doesn't work there. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4908 7894878c-1315-0410-8ee3-d5d059ff63e0 --- Makefile | 2 ++ eeprom/Module.mk | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 99ca82b..e22b5a4 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,8 @@ CFLAGS += -O2 # When debugging, use the following instead #CFLAGS += -O -g +KERNELVERSION := $(shell uname -r) + .PHONY: all strip clean install uninstall all: diff --git a/eeprom/Module.mk b/eeprom/Module.mk index c786c0d..d783956 100644 --- a/eeprom/Module.mk +++ b/eeprom/Module.mk @@ -6,8 +6,12 @@ EEPROM_DIR := eeprom -EEPROM_TARGETS := decode-dimms.pl decode-vaio.pl ddcmon decode-edid.pl \ - decode-xeon.pl +EEPROM_TARGETS := decode-dimms.pl decode-vaio.pl ddcmon decode-edid.pl + +# decode-xeon.pl was not yet ported to the Linux 2.6 sysfs interface +ifeq (,$(findstring /2.6., /$(KERNELVERSION))) +EEPROM_TARGETS += decode-xeon.pl +endif # # Commands