#!/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
*******************************************************************************/
#include <linux/config.h>
#include <linux/autoconf.h>
#include <linux/io.h>
#ifdef CONFIG_X86
#include <linux/version.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
@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... "