提交 3d91a353 编写于 作者: S Sedat Dilek 提交者: Jonathan Corbet

kbuild: Update example for ccflags-y usage

Update the ccflags-y example to match current usage.
Signed-off-by: NSedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: NJonathan Corbet <corbet@lwn.net>
上级 02bdf9da
......@@ -297,9 +297,9 @@ more details, with real examples.
ccflags-y specifies options for compiling with $(CC).
Example:
# drivers/acpi/Makefile
ccflags-y := -Os
ccflags-$(CONFIG_ACPI_DEBUG) += -DACPI_DEBUG_OUTPUT
# drivers/acpi/acpica/Makefile
ccflags-y := -Os -D_LINUX -DBUILDING_ACPICA
ccflags-$(CONFIG_ACPI_DEBUG) += -DACPI_DEBUG_OUTPUT
This variable is necessary because the top Makefile owns the
variable $(KBUILD_CFLAGS) and uses it for compilation flags for the
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册