Hello everyone!
I am having problems compiling a module for the 2.6.10 kernel (or rather I tried 2 other kernels aswell) but it keeps on giving me "file not found" errors such as:
Code:
include/asm/ptrace.h:9:27: error: sysdep/ptrace.h: No such file or directory
include/asm/ptrace-generic.h:24:25: error: skas_ptrace.h: No such file or directory
include/asm/processor-generic.h:15:25: error: choose-mode.h: No such file or directory
I have the 2.6.13-15 kernel that came with SuSE 10.0 and I'm using the 2.6.10 kernel for User Mode Linux support.
I compiled the UML version with success. It runs, opens up my root_fs without problems, even runs the already-compiled modules, but from outside if I try to compile then its a no-go.
The module is just a simple hello world one.
---- hello.c -------------
Code:
#include <linux/init.h>
#include <linux/module.h>
MODULE_LICENSE("GPL");
static int hello_init()
{
printk("Hello, world!\n");
return 0;
}
static void hello_exit()
{
printk("Bye!\n");
}
module_init(hello_init);
module_exit(hello_exit);
---- Makefile -------------
Code:
#include includes.make
KERNELDIR ?= /tmp/linux-2.6.10
PWD=$(shell pwd)
#obj-m:= hello.o
default:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
---- KBuild -------------
And yes my 2.6.10 kernel is in my tmp directory.
I just can't see what I have done wrong.
Its asif the MAKE program or something just can't see that I'm usng the UM Architecture and that it should look in those directories to find it.
Any help would REALLY be appreciated!
Thanks