Linux kernel module multi-file compilation

Source: Internet
Author: User

/*************************************************************************** * Linux kernel module multi-file compilation * Statement: * This article is mainly recorded in the debug-driven phase, we may prefer to use the mode of module insertion * For driver debugging, which can greatly shorten the commissioning time. Before debugging gt9xx Touch also * is used this way, here is still recorded, convenient to find in the future. * 2016-2-2 Shenzhen Nanshan Ping Shan village Zengjianfeng ******************************************************* *******************/First, Cat Makefile ifneq ($ (kernelrelease),) # gt9xxm.o minus the suffix is the generated. KO's name # Multi-file compilation note GT9XXM.O, Gt9xxm-Objs naming method obj-M: =GT9XXM.O GT9XXM-OBJS: =GT9XX.O GT9XX_UPDATE.O GOODIX_TOOL.OElseKdir:=/home/zengjf/Kernel # Specifies the directory where the kernel resides All:make-C $ (kdir) m=$ (PWD) modules Clean:rm-F *.ko *.o *.mod.o *.mod.c *.symvers *. Order endif Two, output: [email protected]:~/kernel/drivers/input/touchscreen/gt9xx$ LS-Al Total2348DRWXRWXR-X3ZENGJF ZENGJF4096Jan -  -: - . DRWXRWXR-X3ZENGJF ZENGJF4096Jan -  -: + .. -rwxrw-rw-1ZENGJF ZENGJF37261Jan -  One: -goodix_tool.c-rw-rw-r--1ZENGJF ZENGJF124592Jan -  One: -GOODIX_TOOL.O-rw-rw-r--1ZENGJF ZENGJF29395Jan -  One: -. Goodix_tool.o.cmd-rwxrw-rw-1ZENGJF ZENGJF89249Jan -  -: -gt9xx.c-rwxrw-rw-1ZENGJF ZENGJF309322Nov -   thegt9xx_firmware.h-rwxrw-rw-1ZENGJF ZENGJF12086Jan -  One: -gt9xx.h-rw-rw-r--1ZENGJF ZENGJF559323Jan -  One: -Gt9xxm.ko-rw-rw-r--1ZENGJF ZENGJF427Jan -  One: -. Gt9xxm.ko.cmd-rw-rw-r--1ZENGJF ZENGJF2477Jan -  One: -GT9XXM.MOD.C-rw-rw-r--1ZENGJF ZENGJF23044Jan -  One: -GT9XXM.MOD.O-rw-rw-r--1ZENGJF ZENGJF18307Jan -  One: -. Gt9xxm.mod.o.cmd-rw-rw-r--1ZENGJF ZENGJF537572Jan -  One: -GT9XXM.O-rw-rw-r--1ZENGJF ZENGJF434Jan -  One: -. Gt9xxm.o.cmd-rw-rw-r--1ZENGJF ZENGJF178752Jan -  One: -GT9XX.O-rw-rw-r--1ZENGJF ZENGJF29794Jan -  One: -. Gt9xx.o.cmd-rwxrw-rw-1ZENGJF ZENGJF120272Nov -   thegt9xx_update.c-rw-rw-r--1ZENGJF ZENGJF240220Jan -  One: -GT9XX_UPDATE.O-rw-rw-r--1ZENGJF ZENGJF29626Jan -  One: -. Gt9xx_update.o.cmd-rw-rw-r--1ZENGJF ZENGJF239Jan -  -: -Makefile-rw-rw-r--1ZENGJF ZENGJF theJan -  One: -Modules.order-rw-rw-r--1ZENGJF ZENGJF0Jan -  -: onmodule.symvers drwxrwxr-X2ZENGJF ZENGJF4096Jan -  One: -. tmp_versions [email protected]:~/kernel/drivers/input/touchscreen/gt9xx$

Linux kernel module multi-file compilation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.