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