Forum Discussion
Altera_Forum
Honored Contributor
21 years agoHi,
To continue on this same subject, I just dowloaded the new release 1.3 and I try to compile my driver, as a module. It doesn't compile any more : the error is "cannot find .config file". It seems to look for this file in the "plugins" kernel directory instead of my kernel directory. Is there something to change in the Makefile ?CONFIG_TEST_MOD=m
ifneq ($(KERNELRELEASE),)
# This is the section of the Makefile that builds the module inside the kernel
obj-$(CONFIG_TEST_MOD) := JGXEOE.o
else
# This section is for building the module outside of the source# $(ECLIPSE_WORKSPACE) is assumed to be defined externally by the environment
# please reference the articles on http://www.lwn.net regarding# kernel module development for more information about this Makefile
KERNEL_PLUGIN := /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5
ECLIPSE_WORKSPACE := /cygdrive/c/altera/kits/nios2/bin/eclipse/workspace
KDIR := $(KERNEL_PLUGIN)/linux-2.6.x
KERNEL_PROJECT := Kernel_MUX
BUILDDIR := $(ECLIPSE_WORKSPACE)/$(KERNEL_PROJECT)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) O=$(BUILDDIR) SUBDIRS=$(PWD) modules
endif