2.15.1.1, source from where to
(1) As mentioned before, we use the 2.6.35.7 version of the kernel. This version of the kernel has three kinds: the first is the official version on the kernel.org, the second is Samsung transplanted, the third is the jiuding X210 of the transplant version. We lecture using a third kernel to illustrate, and the next transplant experiment uses the second kernel to migrate.
(2) The source code is in the Development Board CD-ROM. can go to Linux under the decompression and make Distclean clean up and then package the transfer to Windows to go to the decompression analysis, or you can directly go to my network to download my package.
(3) After decompression finally got a kernel source directory tree under Windows, this source directory is jiuding to Samsung transplanted kernel as raw material itself for X210 after the transplant kernel version.
2.15.1.2, analyzing individual files in the source directory
(1) Kbuild,kbuild is the meaning of kernel build, which is the meaning of kernel compilation. This file is the file that is required for the kernel compilation system that is unique to the Linux kernel.
(2) Makefile, this is the total Makefile of the Linux kernel, the whole kernel project is managed by this Makefile.
(3) MK, which was added by jiuding at the time of the transplant, is not something of the Linux kernel itself. Jiuding Adding this file is to use this file to manage the configuration and compilation of the kernel directory all day, which means that the file is a bit like the cp.sh we created when we ported Uboot.
2.15.1.3, briefly describe the Linux kernel configuration system.
(1) The Linux kernel is very large, there are many modules inside, and the configuration is very high. So the configuration of Linux source code is a very complex thing, must have a very complex mechanism to ensure that the Linux kernel can be properly configured. (A comparison of Uboot,uboot's configuration items is in xxx.h, represented by a macro definition.) Uboot's approach depends on the human level, because the Uboot configuration system is simple. )
(2) The Linux kernel itself has thousands of configuration items, it is impossible to look at the head by human eyes, so the kernel invented a system to help people to simplify the configuration. This system is what we focus on in this course.
(3) Kbuild, Kconfig and other files, are related to the configuration system of the kernel.
2.15.1.linux Kernel source directory structure 1