History

kbuild: raise the minimum GNU Make requirement to 4.0

RHEL/CentOS 7, popular distributions that install GNU Make 3.82, reached EOM/EOL on June 30, 2024. While you may get extended support, it is a good time to raise the minimum GNU Make version. The new requirement, GNU Make 4.0, was released in October, 2013. I did not touch the Makefiles under tools/ because I do not know the requirements for building tools. I do not find any GNU Make version checks under tools/.

Masahiro Yamada committed 2 years ago

Commit 5f996651 parent 712aba53 files · +6 −22Browse files

Showing the changes to scripts (1 of 3 files). Show all

Unified · Split

scripts/Kbuild.include+1−1
@@ -68,7 +68,7 @@ kbuild-file = $(or $(wildcard $(src)/Kbuild),$(src)/Makefile) · 67 unmodified lines
68# Read a file, replacing newlines with spaces68# Read a file, replacing newlines with spaces
69#69#
70# Make 4.2 or later can read a file by using its builtin function.70# Make 4.2 or later can read a file by using its builtin function.
71ifneq ($(filter-out 3.% 4.0 4.1, $(MAKE_VERSION)),)71ifneq ($(filter-out 4.0 4.1, $(MAKE_VERSION)),)
72read-file = $(subst $(newline),$(space),$(file < $1))72read-file = $(subst $(newline),$(space),$(file < $1))
73else73else
74read-file = $(shell cat $1 2>/dev/null)74read-file = $(shell cat $1 2>/dev/null)