Package: module-assistant Version: 0.9.5 Tags: patch It would be nice if fakesource could be used to create source trees also for 2.4.x kernels.
This currently fails in the make dep step because autoconf.h is not available. I suppose this is because oldconfig is implied in the 2.6 prepare target, but needs to be run explicitly for 2.4.x. The attached patch makes fakesource work for me to the point that loop-aes-{source,ciphers-source} can be built correctly for 2.4.27. Please consider applying it. cheers, Max
# m-a -l 2.4.27-2-386 fakesource Experimental kernel source recreating method... Getting source... Reading package lists... Done Building dependency tree... Done kernel-source-2.4.27 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded. Config not found, getting headers to extract the config... Reading package lists... Done Building dependency tree... Done kernel-headers-2.4.27-2-386 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded. Extracting pristine kernel source, please wait... Installing to final location and configuring, please wait... make: *** No rule to make target `prepare'. Stop. gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c make[1]: Entering directory `/usr/src/kernel-source-2.4.27-2-386/arch/i386/boot' make[1]: Nothing to be done for `dep'. make[1]: Leaving directory `/usr/src/kernel-source-2.4.27-2-386/arch/i386/boot' rm -f .depend .hdepend make _sfdep_kernel _sfdep_drivers _sfdep_mm _sfdep_fs _sfdep_net _sfdep_ipc _sfdep_lib _sfdep_crypto _sfdep_arch/i386/kernel _sfdep_arch/i386/mm _sfdep_arch/i386/lib _sfdep_arch/i386/math-emu _FASTDEP_ALL_SUB_DIRS="kernel drivers mm fs net ipc lib crypto arch/i386/kernel arch/i386/mm arch/i386/lib arch/i386/math-emu" make[1]: Entering directory `/usr/src/kernel-source-2.4.27-2-386' make -C kernel fastdep make[2]: Entering directory `/usr/src/kernel-source-2.4.27-2-386/kernel' make[2]: *** No rule to make target `/usr/src/kernel-source-2.4.27-2-386/include/linux/autoconf.h', needed by `/usr/src/kernel-source-2.4.27-2-386/include/linux/modules/signal.ver'. Stop. make[2]: Leaving directory `/usr/src/kernel-source-2.4.27-2-386/kernel' make[1]: *** [_sfdep_kernel] Error 2 make[1]: Leaving directory `/usr/src/kernel-source-2.4.27-2-386' make: *** [dep-files] Error 2 Faked kernel source for the Kernel 2.4.27-2-386. Warning: the configuration may not match the running kernel.
--- module-assistant~ 2005-07-01 01:18:03.000000000 +0200 +++ module-assistant 2005-07-19 05:46:14.000000000 +0200 @@ -1158,7 +1158,7 @@ close(mk); } - withecho "cd $usrc/$ksource-$kvers ; make prepare || make dep"; + withecho "cd $usrc/$ksource-$kvers ; make prepare || make oldconfig dep"; print "\n" . wrap('', '', sprintf(gettext("Faked kernel source for the Kernel %s.\nWarning: the configuration may not match the running kernel."), $kvers)) . "\n\n"; &initksrc; }