Compiling a module outside kernel
Eric Sandeen
sandeen at redhat.com
Wed Apr 30 15:59:30 UTC 2008
Robert M. Albrecht wrote:
> Hi Sam,
>
> I have a problem in compiling a kernel module
> (outside the kernel) in F9 (rawhide). Perhaps someone could enlighten me.
>
> [root at localhost toshiba_acpi]# ll
> insgesamt 24
> -rw-r--r-- 1 root root 145 29. Apr 17:49 Makefile
> -rw-r--r-- 1 root root 19774 28. Apr 21:46 toshiba_acpi.c
>
> [root at localhost toshiba_acpi]# make
> make: F?r das Ziel ?default? ist nichts zu tun.
>
> [root at localhost toshiba_acpi]# cat Makefile
> obj-m := toshiba_acpi.o
>
> KDIR := /lib/modules/$(shell uname -r)/build
> PWD := $(shell pwd)
>
> default:
> $(MAKE) -C $(KDIR) M=$(PWD) modules
^^^ swap those spaces for a tab.
-eric
More information about the Fedora-kernel-list
mailing list