Adding Linux module: Can't do "make menuconfig" -
i'm trying install linux external kernel module. i've unpacked total source tarball: there source codes (.c), kconfig, , makefile.
while adding options .config make menuconfig
, got
make: *** no rule create target `menuconfig'. stop.
(i tried make menuconfig
under /usr/src/linux-header-3.xxxx
, did work; menu pops out!)
i'm little confused make menuconfig
mechanism. did have link kconfig linux top-level makefile (kconfig?) or add together kbuild file?
several files listed below:
kconfig:
config pmfs tristate "persistent , protected pm file scheme support" depends on has_iomem select crc16 help if scheme has block of fast (comparable in access speed scheme memory) , non-volatile byte-addressable memory , wish mount light-weight, full-featured, , space-efficient filesystem on it, y here, , read <file:documentation/filesystems/pmfs.txt>. compile module, take m here: module called pmfs. config pmfs_xip bool "execute-in-place in pmfs" depends on pmfs && block help y here enable xip feature of pmfs. config pmfs_write_protect bool "pmfs write protection" depends on pmfs && mmu && have_set_memory_ro default y help y here enable write protect feature of pmfs. config pmfs_test boolean depends on pmfs config pmfs_test_module tristate "pmfs test" depends on pmfs && pmfs_write_protect && m select pmfs_test help y here build simple module test protection of pmfs. module called pmfs_test.
makefile:
obj-$(config_pmfs) += pmfs.o obj-$(config_pmfs_test_module) += pmfs_test.o pmfs-y := bbuild.o balloc.o dir.o file.o inode.o namei.o super.o symlink.o ioctl.o journal.o pmfs-$(config_pmfs_write_protect) += wprotect.o pmfs-$(config_pmfs_xip) += xip.o
linux kernel-module kbuild
No comments:
Post a Comment