$ (Make)-C $ (kerneldir) M = $ (PWD) Modules

Source: Internet
Author: User

In the compilation makefile of the LED driver programming of the fl2440 data, the-C indicates that the makefile is executed in the $ (kerneldir) directory, while M is not the makefile option, is the variable used in makefile under the kernel root directory.

# Use make m = dir to specify directory of external module to build
# Old syntax make... subdirs = $ PWD is still supported
# Setting the environment variable kbuild_extmod take precedence
Ifdef subdirs
Kbuild_extmod? = $ (Subdirs)
Endif
Ifdef M // If M is not defined or assigned a value, M is not defined here (undefined)
Ifeq ("$ (origin m)", "command line") // if defined, this sentence is used to determine whether M is from the command line
Kbuild_extmod: = $ (m)
Endif
Endif

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.