Subject: Bug#3893: Building a kernel without loadable module support

From: Michael Shields <[email-masked]>
Date: Tue, 23 Jul 1996 17:07:59 +0000

Package: kernel-package
Version: 2.01

(BTW, 2.00 is still the only one to be found outside of Incoming, and it
has bugs.)

`make-kpkg build' will fail if the kernel is configured without
CONFIG_MODULES, because `make modules' ends with an `exit 1'.  I think the
best thing to do here would be to change it to `exit 0', but that requires
a change by Linus.  An alternative is to run make-modules with errors
ignored (leading `-' in the superior makefile).

There are also these entries from `make-kpkg kernel_image':

        cp modules/* image-tmp/lib/modules/$(version)/misc
        chmod 644 image-tmp/lib/modules/$(version)/misc/*

If `modules/*' expands to nothing, then cp will fail because the file `*'
isn't found.  These lines should be flagged with a `-' as well, unless we
do something more sophisticated.  The sophisticated thing would be to
include .config and ifdef, but I'm not sure how difficult this would be.

The /lib/modules/... directories also ought not to be created if there are
no modules to put in them.  This could be accomplished by moving the
mkdir's under the `if test -f BLOCK_MODULES' targets.

--
Shields, CrossLink.

---

From: Michael Alan Dorman <[email-masked]>
Date: Wed, 24 Jul 1996 08:35:25 -0400

In message <v03007633ae1ab40ff45b@[205.198.168.35]>, Michael Shields writes:
>CONFIG_MODULES,

2.02 fixes this, and I submitted a patch which will actually allow the
make-kpkg script to differentiate between builds with modules
configured and those without.

Mike.
--
"Don't let me make you unhappy by failing to be contrary enough...."