Skip to content

Commit

Permalink
kbuild: remove old check for CFLAGS use
Browse files Browse the repository at this point in the history
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 <yamada.masahiro@socionext.com>
  • Loading branch information
Masahiro Yamada committed Sep 12, 2018
1 parent 487c7c7 commit 0d91bf5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions scripts/Makefile.build
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,11 @@ subdir-ccflags-y :=

include scripts/Kbuild.include

# For backward compatibility check that these variables do not change
save-cflags := $(CFLAGS)

# The filename Kbuild has precedence over Makefile
kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src))
kbuild-file := $(if $(wildcard $(kbuild-dir)/Kbuild),$(kbuild-dir)/Kbuild,$(kbuild-dir)/Makefile)
include $(kbuild-file)

# If the save-* variables changed error out
ifeq ($(KBUILD_NOPEDANTIC),)
ifneq ("$(save-cflags)","$(CFLAGS)")
$(error CFLAGS was changed in "$(kbuild-file)". Fix it to use ccflags-y)
endif
endif

include scripts/Makefile.lib

# Do not include host rules unless needed
Expand Down

0 comments on commit 0d91bf5

Please sign in to comment.