RedHat 9 (2.4.20-8) kernel rebuild without loadable module support
I've been trying to rebuild the 2.4.20-8 kernel under RedHat 9 without loadable module support (for security reasons). In the 'make menuconfig' process, in the "Loadable module support" section, I un-select "Enable Loadable Module Support".
Here are my exact steps:
RedHat 9
kernel-source-2.4.20-20.9
cd /usr/src/linux-2.4
make mrproper
cp configs/kernel-2.4.20-i686-smp.config ./.config
make oldconfig
make menuconfig
(the only config change made is to disable loadable module support)
make dep
make bzImage
During the make, I get the following error:
make[4]: Entering directory `/usr/src/linux-2.4.20-20.9/drivers/addon/aep'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-20.9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=paep -c -o paep.o paep.c
In file included from paep.c:85:
paep.h:75:2: #error "MODULE not defined, I guess you don't want to recompile the entire kernel !"
make[4]: *** [paep.o] Error 1
make[4]: Leaving directory `/usr/src/linux-2.4.20-20.9/drivers/addon/aep'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory `/usr/src/linux-2.4.20-20.9/drivers/addon/aep'
make[2]: *** [_subdir_aep] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-20.9/drivers/addon'
make[1]: *** [_subdir_addon] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-20.9/drivers'
make: *** [_dir_drivers] Error 2
--
Is this the proper way to disable Loadable module support? If not, what should I be doing? Thanks...
|