From: Carlos Santos Date: Sun, 7 May 2017 04:32:18 +0000 (-0300) Subject: core: reverse the argument order in check-host-cmake X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=77a7a15e4c14d2b39e661dca9b7c94e773b00e93;p=buildroot.git core: reverse the argument order in check-host-cmake 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 Acked-by: "Yann E. MORIN" Signed-off-by: Thomas Petazzoni --- diff --git a/support/dependencies/check-host-cmake.mk b/support/dependencies/check-host-cmake.mk index 8002278a3b..914327fe1a 100644 --- a/support/dependencies/check-host-cmake.mk +++ b/support/dependencies/check-host-cmake.mk @@ -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 diff --git a/support/dependencies/check-host-cmake.sh b/support/dependencies/check-host-cmake.sh index 9b63b0648d..73bd4edc99 100755 --- a/support/dependencies/check-host-cmake.sh +++ b/support/dependencies/check-host-cmake.sh @@ -1,7 +1,7 @@ #!/bin/sh -candidate="${1}" -version_min="${2}" +version_min="${1}" +candidate="${2}" major_min="${version_min%.*}" minor_min="${version_min#*.}"