core: reverse the argument order in check-host-cmake
authorCarlos Santos <casantos@datacom.ind.br>
Sun, 7 May 2017 04:32:18 +0000 (01:32 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 24 Jun 2017 19:23:53 +0000 (21:23 +0200)
Pass the minimal version before the program name. In a later change the
script will become able to test a list of candidates.

Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/dependencies/check-host-cmake.mk
support/dependencies/check-host-cmake.sh

index 8002278a3b1dc5f7b8ae51aa100edca60f9949e6..914327fe1a683f64e055b37bcda537c9adc7fe5d 100644 (file)
@@ -12,7 +12,7 @@ BR2_CMAKE_VERSION_MIN = 3.1
 
 BR2_CMAKE ?= cmake
 ifeq ($(call suitable-host-package,cmake,\
-       $(BR2_CMAKE) $(BR2_CMAKE_VERSION_MIN)),)
+       $(BR2_CMAKE_VERSION_MIN) $(BR2_CMAKE)),)
 BR2_CMAKE = $(HOST_DIR)/usr/bin/cmake
 BR2_CMAKE_HOST_DEPENDENCY = host-cmake
 endif
index 9b63b0648d97b28bb243f2b83e25e0799d775c75..73bd4edc995ac28ac986cda96cdddf4a7caa7e52 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
-candidate="${1}"
-version_min="${2}"
+version_min="${1}"
+candidate="${2}"
 
 major_min="${version_min%.*}"
 minor_min="${version_min#*.}"