History

kbuild: flatten KBUILD_CFLAGS

Make it slightly easier to see which compiler options are added and removed (and not worry about column limit too!).

Alexey Dobriyan committed 3 years ago

Commit 0817d251 parent 1c679211 file · +17 −5Browse files

Unified · Split

Makefile+17−5
@@ -555,11 +555,23 @@ LINUXINCLUDE := \ · 554 unmodified lines
555 $(USERINCLUDE)555 $(USERINCLUDE)
556 556
557KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE557KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE
558KBUILD_CFLAGS := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \558
559 -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \559KBUILD_CFLAGS :=
560 -Werror=implicit-function-declaration -Werror=implicit-int \560KBUILD_CFLAGS += -std=gnu11
561 -Werror=return-type -Wno-format-security -funsigned-char \561KBUILD_CFLAGS += -fshort-wchar
562 -std=gnu11562KBUILD_CFLAGS += -funsigned-char
563KBUILD_CFLAGS += -fno-common
564KBUILD_CFLAGS += -fno-PIE
565KBUILD_CFLAGS += -fno-strict-aliasing
566KBUILD_CFLAGS += -Wall
567KBUILD_CFLAGS += -Wundef
568KBUILD_CFLAGS += -Werror=implicit-function-declaration
569KBUILD_CFLAGS += -Werror=implicit-int
570KBUILD_CFLAGS += -Werror=return-type
571KBUILD_CFLAGS += -Werror=strict-prototypes
572KBUILD_CFLAGS += -Wno-format-security
573KBUILD_CFLAGS += -Wno-trigraphs
574
563KBUILD_CPPFLAGS := -D__KERNEL__575KBUILD_CPPFLAGS := -D__KERNEL__
564KBUILD_RUSTFLAGS := $(rust_common_flags) \576KBUILD_RUSTFLAGS := $(rust_common_flags) \
565 --target=$(objtree)/scripts/target.json \577 --target=$(objtree)/scripts/target.json \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t