2.6.6-rc3-mm2: vermagic compile error if CONFIG_MODULES=n

Adrian Bunk
2004-05-05T23:30:08Z

On Wed, May 05, 2004 at 01:31:35AM -0700, Andrew Morton wrote:
>...
> Changes since 2.6.6-rc3-mm2:
>...
> +proc-sys-kernel-vermagic.patch
>
> Add /proc/sys/kernel/vermagic so that package installers can work out how
> the kernel was built (soliciting feedback on this one).
>...

linux/vermagic.h now references a variable in kernel/module.c.

Since this file is only included for CONFIG_MODULES=y, CONFIG_MODULES=n
results in the following compile error:

<-- snip -->

...
LD .tmp_vmlinux1
kernel/built-in.o(.data+0xc54): undefined reference to `vermagic'
make: *** [.tmp_vmlinux1] Error 1

<-- snip -->

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed