diff options
Diffstat (limited to 'sys-kernel/gpio/files/sandbox.patch')
-rw-r--r-- | sys-kernel/gpio/files/sandbox.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sys-kernel/gpio/files/sandbox.patch b/sys-kernel/gpio/files/sandbox.patch new file mode 100644 index 0000000..39de61e --- /dev/null +++ b/sys-kernel/gpio/files/sandbox.patch @@ -0,0 +1,24 @@ +--- 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) |