Re: MODVERSIONS problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 17 Sep 2004 12:05:59 -0500, Timur Tabi <timur.tabi@xxxxxxxxxxx> wrote:

> I have a driver that is built outside of the kernel tree.  Our code
> handles different versions of the kernel (2.4 and 2.6), and recently we
> came across a kernel that needs to have MODVERSIONS enabled.

> So, I added these lines to my makefile:

> include ${LINUX}/.config
> ifdef CONFIG_MODVERSIONS
> CFLAGS += -DMODVERSIONS -include $(LINUX)/include/linux/modversions.h
> endif

Any particular reason not to do the include in the driver source file?

> Although this fixes the problem with the new kernel, it breaks with the
> Red Hat 9.0 kernel.

> When I look at my .config file, I see "CONFIG_MODVERSIONS=y".  Why is
> that my driver compiles when I don't include modversions.h?  Shouldn't
> it have been broken all along?

I would have expected it to have not worked previously - is there
anything else you can add about how you built it last time on a RH9.0
kernel?

Jon.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux