mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
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 <casantos@datacom.ind.br> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
82f64203a8
commit
77a7a15e4c
@@ -12,7 +12,7 @@ BR2_CMAKE_VERSION_MIN = 3.1
|
|||||||
|
|
||||||
BR2_CMAKE ?= cmake
|
BR2_CMAKE ?= cmake
|
||||||
ifeq ($(call suitable-host-package,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_DIR)/usr/bin/cmake
|
||||||
BR2_CMAKE_HOST_DEPENDENCY = host-cmake
|
BR2_CMAKE_HOST_DEPENDENCY = host-cmake
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
candidate="${1}"
|
version_min="${1}"
|
||||||
version_min="${2}"
|
candidate="${2}"
|
||||||
|
|
||||||
major_min="${version_min%.*}"
|
major_min="${version_min%.*}"
|
||||||
minor_min="${version_min#*.}"
|
minor_min="${version_min#*.}"
|
||||||
|
|||||||
Reference in New Issue
Block a user