> --- Makefile --- > # Rules for making the EDF scheduling discipline > obj-m := sch_edf.o > > include $(TOPDIR)/Rules.make > --- end (Makefile) --- > > try to build my own module against fresh installed kernel-source rpm > gives this output: > --- output --- > [root@amarie sch_edf-0.1]# make -C /usr/src/linux-2.4 SUBDIRS=`pwd` first of all, this is wrong. Using "/usr/src/<anything>" to build modules against is incorrect. You *have* to use /lib/modules/`uname -r`/build. (Yes I know in the 2.4 kernel RPMS that is a symlink into /usr/src/ but that's not the point, that is going to change) > scripts/split-include > scripts/split-include.c > scripts/split-include include/linux/autoconf.h include/config > make -r -f tmp_include_depends all > make[1]: Entering directory `/usr/src/linux-2.4.18-14' > make[1]: tmp_include_depends: No such file or directory > make[1]: *** No rule to make target `tmp_include_depends'. Stop. > make[1]: Leaving directory `/usr/src/linux-2.4.18-14' > make: *** [tmp_include_depends] Error 2 the 2.4.18-14 kernel missed that file yes; later kernels added that omitted file. (You shouldn't use 2.4.18-14 at all anyway, waaaaaay too many security issues have been fixed since).
Attachment:
pgp00511.pgp
Description: PGP signature