Skip to contentSkip to conversation

Makefile: save MAKE_VERSION

PATCH New Gustavo Zacarias 2 participants 2 messages Jul 14, 2015 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Makefile: save MAKE_VERSION

Save MAKE_VERSION as RUNNING_MAKE_VERSION since this is later clobbered by the make package.

It will be used by the webkitgtk24 package to check for older make versions which have a bug building it with parallel jobs (it hangs).

---
 Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
Makefile +5 -2
index 9a18853..531ac5d 100644
@@ -43,10 +43,13 @@ all:
 # Set and export the version string
 export BR2_VERSION := 2015.08-git
 
+# Save running make version since it's clobbered by the make package
+RUNNING_MAKE_VERSION := $(MAKE_VERSION)
+
 # Check for minimal make version (note: this check will break at make 10.x)
 MIN_MAKE_VERSION = 3.81
-ifneq ($(firstword $(sort $(MAKE_VERSION) $(MIN_MAKE_VERSION))),$(MIN_MAKE_VERSION))
-$(error You have make '$(MAKE_VERSION)' installed. GNU make >= $(MIN_MAKE_VERSION) is required)
+ifneq ($(firstword $(sort $(RUNNING_MAKE_VERSION) $(MIN_MAKE_VERSION))),$(MIN_MAKE_VERSION))
+$(error You have make '$(RUNNING_MAKE_VERSION)' installed. GNU make >= $(MIN_MAKE_VERSION) is required)
 endif
 
 export HOSTARCH := $(shell uname -m | \
Signature · 1 line
2.3.6
#1 lore raw

PATCH v2 1/1 Makefile: save MAKE_VERSION

Dear Gustavo Zacarias,

Quoted 10 lines · Gustavo Zacarias

Save MAKE_VERSION as RUNNING_MAKE_VERSION since this is later clobbered by the make package.

It will be used by the webkitgtk24 package to check for older make versions which have a bug building it with parallel jobs (it hangs).

---
 Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com