make-kpkg question
Hello! (and Happy New Year!)
I run sid here and I usually buildd my kernels in mmy home directory;
to build lm-sensors and i2c without becoming root, I decided to unpack
the sources in ~/Linux/kernel/modules, and use that directory for
MODULE_LOC.
The kernel and modules build fine (and I don't have to su or sudo),
but although make-kpkg finds the right directories to clean,
modules_clean fails (because it calls "kdist_clean").
To do that, I have to go to each module tree and run "debian/rules clean"
Is this a problem with kernel-package? (already checked the BTS, and
it's not there)
Or did I unpack the modules in the wrong way? I should use
"apt-get source i2c lm-sensors" (or "apt-get source i2c-source
lm-sensors-source" in the modules directory right?)
Thanks,
J.
$ fakeroot make-kpkg modules_clean
test -f stamp-debian || /usr/bin/make -f /usr/share/kernel-package/rules debian
test -f .config || /usr/bin/make -f /usr/share/kernel-package/rules .config
test ! -f stamp-configure \
&& /usr/bin/make CROSS_COMPILE= \
ARCH=i386 oldconfig \
&& /usr/bin/make CROSS_COMPILE= \
ARCH=i386 dep \
&& /usr/bin/make CROSS_COMPILE= \
ARCH=i386 clean && \
touch stamp-configure
make: [stamp-configure] Error 1 (ignored)
for module in /home/jeronimo/Linux/kernel/modules/* ; do \
if test -d $module; then \
(cd $module; \
if ./debian/rules KVERS="2.4.0-prerelease-ac3" KSRC="/home/jeronimo/Linux/kernel/linux-2.4.0-pre-ac3-reiser" \
KMAINT="Jeronimo Pellegrini" KEMAIL="pellegrini@iname.com" \
KDREV="Custom.1.00" kdist_clean; then \
echo "Module $module cleaned"; \
else \
echo "Module $module failed to clean up"; \
echo "Hit return to Continue?"; \
read ans; \
fi; \
); \
fi; \
done
make[1]: Entering directory `/home/jeronimo/Linux/kernel/modules/i2c-2.5.4'
make[1]: *** No rule to make target `kdist_clean'. Stop.
make[1]: Leaving directory `/home/jeronimo/Linux/kernel/modules/i2c-2.5.4'
Module /home/jeronimo/Linux/kernel/modules/i2c-2.5.4 failed to clean up
Hit return to Continue?
make: *** [modules_clean] Interrupt
--
Jeronimo Pellegrini
Institute of Computing - Unicamp - Brazil
http://www.ic.unicamp.br/~jeronimo
mailto:jeronimo@ic.unicamp.br mailto:pellegrini@iname.com
Reply to: