Make menuconfig, kconfig, makefile,. config, and find out the relationships between the four.

Source: Internet
Author: User

Make menuconfig

ARCH/ARM/mach-s3c2440/kconfig

ARCH/ARM/mach-s3c2440/makefile

. Config

Kconfig is the content source in menuconfig. If a certain item is selected in menuconfig, it will be reflected in. config. In makefile, a specific item is determined based on the option.

If I want to compile ARCH/ARM/mach-s3c2440/mach-mini2440.c into the kernel now, first add its option in kconfig

Config mach_mini2440

Bool "mini2440 Development Board"

.

.

More information is not listed. Then make menuconfig in

System type --->

S3C2440 machines --->

[*] Mini2440 Development Board

If this option is selected, it will appear in the. config file at the top level.

Config_mach_mini2440 = y

In makefile, add

OBJ-$ (config_mach_mini2440) + = mach-2440.o

In this way, when makefile reads. config again, it is found that config_mach_mini2440 is Y and the mach-2440.c will be compiled in.

This process is relatively clear, if you have written a c file for your own Development Board in arch/ARM/mach-s3c2440/, yourboard. C, you can put the makefile in the directory

OBJ-$ (config_mach_mini2440) + = mach-2440.o changed

OBJ-$ (config_mach_mini2440) + = yourboard. o

Here it is to copy the mach-smdk2440.c into a gml-2440.c while the obj-$ (config_mach_mini2440) + = gml-2440.o

Modify the clock frequency and comment out smdk_machine_init ().

From: http://hi.baidu.com/rqm3000/blog/item/59f0d397f80da27e54fb96a1.html

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.