Based on the kernel Documentation: Documentation/kbuild/modules. TXT: Building External modules section 5 describes position description
can be determined as follows:
--- 5.1 INSTALL_MOD_PATH
Above are the default directories but as always some level of
customization is possible. A prefix can be added to the
installation path using the variable INSTALL_MOD_PATH:
$ make INSTALL_MOD_PATH=/frodo modules_install
=> Install dir: /frodo/lib/modules/$(KERNELRELEASE)/kernel/
INSTALL_MOD_PATH may be set as an ordinary shell variable or,
as shown above, can be specified on the command line when
calling "make." This has effect when installing both in-tree
and out-of-tree modules.
--- 5.2 INSTALL_MOD_DIR
External modules are by default installed to a directory under
/lib/modules/$(KERNELRELEASE)/extra/, but you may wish to
locate modules for a specific functionality in a separate
directory. For this purpose, use INSTALL_MOD_DIR to specify an
alternative name to "extra."
$ make INSTALL_MOD_DIR=gandalf -C $KDIR \
M=$PWD modules_install
=> Install dir: /lib/modules/$(KERNELRELEASE)/gandalf/
Read More:
- OpenGL configuration file, as well as unable to parse the file solution
- XML file should have root tag (extra content at the end of the document in file error)
- Oops error location method in ARM kernel
- insmod: init_module ‘hello.ko’ failed (Exec format error)
- Module build failed: Error: ENOENT: no such file or directory, scandir,‘node_modules\node-sass\vend’
- Module in linux driver_ platform_ Learning driver macro
- Linux dynamically loads kernel modules
- Mac OS error in make pycaffe times failure error:’python.h’file not found resolved
- but “catkin_make“ must be invoked in the root of workspace
- Modify the default file location of the Jupiter notebook
- Clion compiles and runs a single C / cpp file
- Raspberry Pi runs ubuntu-mate and reports Failed to start Load Kernel Modules error countermeasures
- Clion develops STM32, adds files and compiles with an error “no such file or directory”“
- Error in header file when calling OpenGL to open obj file in vs2013: unable to open include file: “GL / glut. H”: no such file or directories
- When Linux installs redis, it executes make install and reports an error: Make: * * [server. O] error 1 (solved)
- C / C + + cannot open the source file directory, the header file is not imported, the solution is as follows
- Solve the problem of multiple root tags in as
- Compiling the pi_kernel source code appears: fatal error: openssl/opensslv.h: No such file or directory
- [Solved] This dependency was not found: * core-js/modules/es.error.cause.js in ./node_modules/@babel
- [Solved] VUE-pdf Plugin use error: To install them, you can run: npm install –save core-js/modules/es