Trying to compile lirc_imontouch module so I can get my touchscreen working, but it gives an error that doesn't make sense:
Well the module source is in my user directory, but {source}/drivers/kcompat.h and lirc.h certainly are there. They are symlinks that link to the actual files in the next directory up, and those files are there.
I've tried echoing what it thinks SUBDIRS is, but bash commands do not seem to work in a makefile.
Here's what the Makefile has:
BTW, there is no drivers/misc directory in the source, if that matters.
Code:
/home/bill/dl/lirc_imontouch-0.1b/lirc_imontouch.c:46:29: error: drivers/kcompat.h: No such file or directory /home/bill/dl/lirc_imontouch-0.1b/lirc_imontouch.c:47:26: error: drivers/lirc.h: No such file or directory
I've tried echoing what it thinks SUBDIRS is, but bash commands do not seem to work in a makefile.
Here's what the Makefile has:
Code:
MDIR = drivers/misc EXTRA_CFLAGS = -DEXPORT_SYMTAB KBUILD_CFLAGS += -DIRCTL_DEV_MAJOR=61 CURRENT = $(shell uname -r) KDIR = /lib/modules/$(CURRENT)/build PWD = $(shell pwd) DEST = /lib/modules/$(CURRENT)/kernel/$(MDIR) obj-m := lirc_dev.o lirc_imontouch.o default: make -C $(KDIR) SUBDIRS=$(PWD) modules install: su -c "cp -v lirc_imontouch.ko lirc_dev.ko $(DEST) && /sbin/depmod -a" clean: -rm -f *.o *.ko .*.cmd .*.flags *.mod.c -include $(KDIR)/Rules.make
Comment