- UID
- 160398
- 性别
- 女
|
我在nios2下嵌入linux,并试着加载设备驱动,现在正是这拿helloworld这个简单模块来熟悉添加设备模块的整个过程,可是怎么也build不过去,显示一下错误: make -k all no emulation specific options. make -C ../test_kernel/build/ M='pwd' KBUILD_OUTPUT='pwd' ARCH=nios2 CROSS_COMPILE=nios2-elf- modules make[1]: Entering directory `/cygdrive/d/OC1225/Development/Sample/Hardware/EP2C20/test_kernel/build' make -C /cygdrive/c/altera/kits/nios2_60/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x O=/cygdrive/d/OC1225/Development/Sample/Hardware/EP2C20/test_kernel/build modules cd: can't cd to pwd make: *** pwd: No such file or directory. Stop. make[2]: *** [modules] Error 2 make[1]: *** [modules] Error 2 make[1]: Leaving directory `/cygdrive/d/OC1225/Development/Sample/Hardware/EP2C20/test_kernel/build' make: *** [all] Error 2 希望那位高手指点一下。万分感谢 其中MAKEFILE如下: # # configurable options # - set DEBUG = 1 to turn on debugging support # DEBUG = 0 PROJ_NAME = helloworld INSTALL_DIR = PROGS := $(PROJ_NAME).o CFLAGS +=
# # You should not need to modify anything beyond this point # TOPDIR = . include $(TOPDIR)/Rules.mak
# linux path ----- ????? LINUXPATH = ../test_kernel/build/ CURDIR='pwd' KBUILD_OUTPUT=$(CURDIR) ARCH=nios2
obj-m := $(PROGS)
all: $(MAKE) -C $(LINUXPATH) M=$(CURDIR) KBUILD_OUTPUT=$(KBUILD_OUTPUT) ARCH=$(ARCH) CROSS_COMPILE=nios2-elf- modules clean: rm -f *.o *.mod.o *.mod.c *.ko *.cmd
|
|