change CFLAGS to EXTRA_CFLAGS in the makefile to fix this. adam
On 5 February 2010 18:54, Martti Kuparinen <[email protected]> wrote: > Roman Chertov wrote: > >> You cannot patch the e1000 driver that is bundled with 2.6.24.7. You >> have to get a e1000-7.3.20 driver from sourceforge and then patch it. > > And what else? > > ROOT router:~> uname -srm > Linux 2.6.24.7 x86_64 > > ROOT router:~> rm -rf e1000-7.3.20 > ROOT router:~> tar xzf e1000-7.3.20.tar.gz > ROOT router:~> cd e1000-7.3.20/src > ROOT router:~/e1000-7.3.20/src> patch -p2 < > ~/click/drivers/e1000-7.3.20-polling.patch > patching file Makefile > patching file e1000.h > patching file e1000_main.c > patching file e1000_param.c > ROOT router:~/e1000-7.3.20/src> make > make -C /lib/modules/2.6.24.7/build SUBDIRS=/root/e1000-7.3.20/src modules > make[1]: Entering directory `/root/linux-2.6.24.7' > scripts/Makefile.build:46: *** CFLAGS was changed in > "/root/e1000-7.3.20/src/Makefile". Fix it to use EXTRA_CFLAGS. Stop. > make[1]: *** [_module_/root/e1000-7.3.20/src] Error 2 > make[1]: Leaving directory `/root/linux-2.6.24.7' > make: *** [default] Error 2 > ROOT router:~/e1000-7.3.20/src> > _______________________________________________ > click mailing list > [email protected] > https://amsterdam.lcs.mit.edu/mailman/listinfo/click > _______________________________________________ click mailing list [email protected] https://amsterdam.lcs.mit.edu/mailman/listinfo/click
