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 2008-10-07 13:36:17.000000000 +0200 @@ -5,7 +5,7 @@ CONFIG_FSAM7400?=m obj-$(CONFIG_FSAM7400) += fsam7400.o -CFLAGS+=-c -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe +EXTRA_CFLAGS+=-c -Wall -Wstrict-prototypes -Wno-trigraphs -fomit-frame-pointer -fno-strict-aliasing -fno-common INCLUDE=-I$(KERNELSRC)/include ifeq ($(KERNELMAJOR), 2.6) @@ -29,7 +29,7 @@ $(MAKE) -C $(KERNELSRC) SUBDIRS=$(PWD) modules fsam7400.o: $(SOURCE) - $(CC) $(INCLUDE) $(CFLAGS) -DDEBUG -DMODVERSIONS -DMODULE -D__KERNEL__ -o $(TARGET) $(SOURCE) + $(CC) $(INCLUDE) $(EXTRA_CFLAGS) -DDEBUG -DMODVERSIONS -DMODULE -D__KERNEL__ -o $(TARGET) $(SOURCE) clean: @echo -n "sweeping directory... "