Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 201922 | Differences between
and this patch

Collapse All | Expand All

(-)fsam7400-0.5.1/cfgcheck.sh (+7 lines)
Line 0 Link Here
1
#!/bin/bash
2
## this script returns 0 only if CONFIG_CHECK_SIGNATURE is active in the current kernel
3
CHECK_SIG=$(gunzip < /proc/config.gz | grep 'CONFIG_CHECK_SIGNATURE=y')
4
if [[ "$CHECK_SIG" == "" ]]; then
5
	echo "Error: your kernel is not compiled with CONFIG_CHECK_SIGNATURE=y"
6
	exit -1
7
fi
(-)fsam7400-0.5.1/fsam7400.c (-1 / +2 lines)
Lines 28-34 Link Here
28
28
29
*******************************************************************************/
29
*******************************************************************************/
30
30
31
#include <linux/config.h>
31
#include <linux/autoconf.h>
32
#include <linux/io.h>
32
#ifdef CONFIG_X86
33
#ifdef CONFIG_X86
33
#include <linux/version.h>
34
#include <linux/version.h>
34
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
35
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
(-)fsam7400-0.5.1/Makefile (-2 / +2 lines)
Lines 26-35 Link Here
26
	@echo -e clean\\t- removes all binaries and temporary files
26
	@echo -e clean\\t- removes all binaries and temporary files
27
27
28
fsam7400.ko: $(SOURCE) 
28
fsam7400.ko: $(SOURCE) 
29
	$(MAKE) -C $(KERNELSRC) SUBDIRS=$(PWD) modules
29
	./cfgcheck.sh && $(MAKE) -C $(KERNELSRC) SUBDIRS=$(PWD) modules
30
30
31
fsam7400.o: $(SOURCE)
31
fsam7400.o: $(SOURCE)
32
	$(CC) $(INCLUDE) $(CFLAGS) -DDEBUG -DMODVERSIONS -DMODULE -D__KERNEL__ -o $(TARGET) $(SOURCE)
32
	./cfgcheck.sh && $(CC) $(INCLUDE) $(CFLAGS) -DDEBUG -DMODVERSIONS -DMODULE -D__KERNEL__ -o $(TARGET) $(SOURCE)
33
33
34
clean:
34
clean:
35
	@echo -n "sweeping directory... "
35
	@echo -n "sweeping directory... "

Return to bug 201922