Hi!
In the User-Mode-Linux-HOWTO, the
section of compiling and installing kernel modules discriptes
those:
"If you try building an external module against a UML tree, you will find that it doesn't compile because of missing includes. There are less obvious problems with the CFLAGS that the module Makefile or script provides which would make it not run even if it did build. To get around this, you need to provide the same CFLAGS that the UML kernel build uses. A reasonably slick way of getting
the UML CFLAGS is If the module build process has something that looks like $(CC)
$(CFLAGS) file
then you can define CFLAGS in a script like this CFLAGS=`cd
uml-tree ; make script '[EMAIL PROTECTED] $(CFLAGS)' ARCH=um`
and like this in a Makefile
CFLAGS=$(shell cd uml-tree ; make script '[EMAIL PROTECTED] $(CFLAGS)'
ARCH=um)"
I know this method is works well with kernel
2.4, but how can do with kernel 2.6? Thanks!!
________________________________ Tel: (86)10-6265-9372 ext 1003 Fax: (86)10-6265-7255 Mailing: P. O. Box 2704# Beijing Postcode: 100080 National Research Centre for High Performance Computer Institute of Computing Technology,Chinese Academy of Sciences 6,South Kexueyuan Road, Haidian District, Beijing, China |
- [uml-user] Problem about compiling and installing kernel modu... yinyang