diff -N -u fsam7400-0.5.1/cfgcheck.sh fsam7400-0.5.1-patched/cfgcheck.sh --- fsam7400-0.5.1/cfgcheck.sh 1970-01-01 01:00:00.000000000 +0100 +++ fsam7400-0.5.1-patched/cfgcheck.sh 2007-12-11 17:43:06.000000000 +0100 @@ -0,0 +1,7 @@ +#!/bin/bash +## this script returns 0 only if CONFIG_CHECK_SIGNATURE is active in the current kernel +CHECK_SIG=$(gunzip < /proc/config.gz | grep 'CONFIG_CHECK_SIGNATURE=y') +if [[ "$CHECK_SIG" == "" ]]; then + echo "Error: your kernel is not compiled with CONFIG_CHECK_SIGNATURE=y" + exit -1 +fi diff -N -u fsam7400-0.5.1/fsam7400.c fsam7400-0.5.1-patched/fsam7400.c --- fsam7400-0.5.1/fsam7400.c 2006-09-24 15:11:08.000000000 +0200 +++ fsam7400-0.5.1-patched/fsam7400.c 2007-12-11 10:06:30.000000000 +0100 @@ -28,7 +28,8 @@ *******************************************************************************/ -#include +#include +#include #ifdef CONFIG_X86 #include #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) diff -N -u fsam7400-0.5.1/Makefile fsam7400-0.5.1-patched/Makefile --- fsam7400-0.5.1/Makefile 2006-09-22 14:39:30.000000000 +0200 +++ fsam7400-0.5.1-patched/Makefile 2007-12-11 17:43:47.000000000 +0100 @@ -26,10 +26,10 @@ @echo -e clean\\t- removes all binaries and temporary files fsam7400.ko: $(SOURCE) - $(MAKE) -C $(KERNELSRC) SUBDIRS=$(PWD) modules + ./cfgcheck.sh && $(MAKE) -C $(KERNELSRC) SUBDIRS=$(PWD) modules fsam7400.o: $(SOURCE) - $(CC) $(INCLUDE) $(CFLAGS) -DDEBUG -DMODVERSIONS -DMODULE -D__KERNEL__ -o $(TARGET) $(SOURCE) + ./cfgcheck.sh && $(CC) $(INCLUDE) $(CFLAGS) -DDEBUG -DMODVERSIONS -DMODULE -D__KERNEL__ -o $(TARGET) $(SOURCE) clean: @echo -n "sweeping directory... "