Kbuild 文档一句不理解,帮忙解释下。
Kbuild recognises objects used for composite objects by the suffix
-objs, and the suffix -y. This allows the Makefiles to use
the value of a CONFIG_ symbol to determine if an object is part
of a composite object.
Example:
#fs/ext2/Makefile
obj-$(CONFIG_EXT2_FS) += ext2.o
ext2-y := balloc.o bitmap.o
ext2-$(CONFIG_EXT2_FS_XATTR) += xattr.o
In this example, xattr.o is only part of the composite object
ext2.o if $(CONFIG_EXT2_FS_XATTR) evaluates to 'y'.
这段话没看懂,求详解?
-objs, and the suffix -y. This allows the Makefiles to use
the value of a CONFIG_ symbol to determine if an object is part
of a composite object.
Example:
#fs/ext2/Makefile
obj-$(CONFIG_EXT2_FS) += ext2.o
ext2-y := balloc.o bitmap.o
ext2-$(CONFIG_EXT2_FS_XATTR) += xattr.o
In this example, xattr.o is only part of the composite object
ext2.o if $(CONFIG_EXT2_FS_XATTR) evaluates to 'y'.
这段话没看懂,求详解?
...全文
相关推荐
Linux Kbuild文档
1.Linux内核配置方式 2.Kconfig 3.Kbuild Makefile 4.一个使用linux Kbuild实现可配置编译的例子
介绍kbuild 的入门文档
介绍kbuild 的入门文档,很不错,分享一下
kbuild完整详细分析
非常不错的 Kbuild 分析教程,涉及方面也很多,许多知识点都覆盖到了,作者下了功夫写的,呵呵
Kbuild分析
Kbuild系统实现分析,Kconfig和Makefile语法
linux内核kbuild Makefile详解
linux下各平台的下的makefile文件与gnu makefile有一些不一样,这里作了详细分解,有好几个文件,把这个看会了,看linux下makefile不是问题



