2020-05-22

今天做了mini6410的LED实验,在make modules时出现以下错误:
root@ubuntu:/linux-2.6.38# make moudles
make: *** No rule to make target moudles'. Stop.root@ubuntu:/linux-2.6.38# make modules CHK include/linux/version.h CHK include/generated/utsrelease.hmake[1]:include/generated/mach-types.h’ is up to date. CALL scripts/checksyscalls.shmake[2]: *** No rule to make target drivers/char/MY_LEDS.c', needed bydrivers/char/MY_LEDS.o’. Stop.make[1]: *** [drivers/char] Error 2make: *** [drivers] Error 2
搞了半天一直没解决,到最后原因是因为之前makemenucofig里面已经有了一个LED模块设置为【M】了。所以遇到这个问题先把上一个模块关了,在把当前模块设置为【M】在make modules.就好了。

你可能感兴趣的:(笔记)