kbuild: Update example for ccflags-y usage
authorSedat Dilek <sedat.dilek@gmail.com>
Mon, 24 Jul 2017 15:27:05 +0000 (17:27 +0200)
committerJonathan Corbet <corbet@lwn.net>
Mon, 7 Aug 2017 20:24:28 +0000 (14:24 -0600)
Update the ccflags-y example to match current usage.

Signed-off-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/kbuild/makefiles.txt

index 7003141a6d4f2657eea22f41f26ca3e961c33856..329e740adea70db91ac2c9cd9f671f79ca58790e 100644 (file)
@@ -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