Altera_Forum
Honored Contributor
19 years agoProblem creating external module
Hi!
I'm trying to build an external module, to use with insmod, and I'm getting some errors. I'm quite sure it is some type of Makefile error, but I haven't been able to find an example to follow it. My Makefile isTOPDIR = ..
include $(TOPDIR)/Rules.mak
PROJ_NAME = XXX_driver
INSTALL_DIR =
SRCDIR = $(TOPDIR)/drv
INCDIR = $(TOPDIR)/inc
OBJ = $(SRCDIR)/$(PROJ_NAME).o
CFLAGS += -I$(INCDIR) -D__KERNEL__ -DCONFIG_MODVERSIONS
all: $(OBJ)
clean:
-rm -f $(OBJ) *. and I'm getting include errors such: c:/altera/kits/nios2q50/bin/eclipse/plugins/com.microtronix.nios2linux.uClibc_1.4.0/include/linux/config.h:4:28: linux/autoconf.h: No such file or directory I've seen that the linux/autoconf.h is in the build directory, but I haven't been able to include it in any correct way. Does anybody have a working Makefile to generate external modules? Thank you Alex