Skip to content

Commit 0d91bf5

Browse files
committed
kbuild: remove old check for CFLAGS use
This check has been here for more than a decade since commit 0c53c8e ("kbuild: check for wrong use of CFLAGS"). Enough time for migration has passed. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 487c7c7 commit 0d91bf5

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

scripts/Makefile.build

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,11 @@ subdir-ccflags-y :=
3636

3737
include scripts/Kbuild.include
3838

39-
# For backward compatibility check that these variables do not change
40-
save-cflags := $(CFLAGS)
41-
4239
# The filename Kbuild has precedence over Makefile
4340
kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src))
4441
kbuild-file := $(if $(wildcard $(kbuild-dir)/Kbuild),$(kbuild-dir)/Kbuild,$(kbuild-dir)/Makefile)
4542
include $(kbuild-file)
4643

47-
# If the save-* variables changed error out
48-
ifeq ($(KBUILD_NOPEDANTIC),)
49-
ifneq ("$(save-cflags)","$(CFLAGS)")
50-
$(error CFLAGS was changed in "$(kbuild-file)". Fix it to use ccflags-y)
51-
endif
52-
endif
53-
5444
include scripts/Makefile.lib
5545

5646
# Do not include host rules unless needed

0 commit comments

Comments
 (0)