summaryrefslogtreecommitdiff
path: root/Documentation/kbuild
diff options
context:
space:
mode:
authorSedat Dilek <sedat.dilek@gmail.com>2017-07-24 18:27:05 +0300
committerJonathan Corbet <corbet@lwn.net>2017-08-07 23:24:28 +0300
commit3d91a353674c9cb38431d631598c9ed15d22fbc8 (patch)
treebf248dd41a844548305ac2500e9ce0e8c7cc52df /Documentation/kbuild
parent02bdf9da9e6cf150a28545ae000aaf620456b449 (diff)
downloadlinux-3d91a353674c9cb38431d631598c9ed15d22fbc8.tar.xz
kbuild: Update example for ccflags-y usage
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>
Diffstat (limited to 'Documentation/kbuild')
-rw-r--r--Documentation/kbuild/makefiles.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt
index 7003141a6d4f..329e740adea7 100644
--- a/Documentation/kbuild/makefiles.txt
+++ b/Documentation/kbuild/makefiles.txt
@@ -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