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