Hi, i have in the same folder the following archives:
hello.c
Code:
#include <linux/init.h>#include <linux/module.h>
MODULE_LICENSE("Dual BSD/GPL");
static int hello_init(void)
{
printk(KERN_ALERT "Hello, world\n");
return 0;
}
static void hello_exit(void)
{
printk(KERN_ALERT "Goodbye, cruel world\n");
}
module_init(hello_init);
module_exit(hello_exit);
Makefile
Code:
obj-m += hello.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
When i run the command in the folder where there is this archives, i get:
Code:
make -C /lib/modules/3.5.0-34-generic/build M=/home/johann/Desktop/8º Período/Infra-Estrutura de Software/driver-linux modulesmake[1]: Entering directory `/usr/src/linux-headers-3.5.0-34-generic'
make[1]: *** No rule to make target `Período/Infra-Estrutura'. Stop.
make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-34-generic'
make: *** [all] Error 2
What am i missing? Thanks in advance
Bookmarks