Commit 0d91bf58 authored by Masahiro Yamada's avatar Masahiro Yamada

kbuild: remove old check for CFLAGS use

This check has been here for more than a decade since
commit 0c53c8e6 ("kbuild: check for wrong use of CFLAGS").

Enough time for migration has passed.
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 487c7c77
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment