--- Makefile-2.6.in.old 2007-06-16 23:28:40.000000000 +0200 +++ Makefile-2.6.in 2007-06-16 23:31:26.000000000 +0200 @@ -18,8 +18,8 @@ # Boston, MA 02111-1307 USA # -INCLUDE_DIR = /usr/include/linux -INIT_DIR = /etc/init.d +INCLUDE_DIR = ${D}/usr/include/linux +INIT_DIR = ${D}/etc/init.d ifneq ($(KERNELRELEASE),) obj-m := gpio.o @@ -33,7 +33,9 @@ endif install: default - cp gpio.ko /lib/modules/`uname -r`/kernel/drivers/char/ + mkdir -p ${D}/lib/modules/`uname -r`/kernel/drivers/char/ + cp gpio.ko ${D}/lib/modules/`uname -r`/kernel/drivers/char/ + mkdir -p ${INCLUDE_DIR} cp gpio.h $(INCLUDE_DIR)/ mkdir -p $(INIT_DIR) cp gpio $(INIT_DIR)