diff options
author | Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | 2016-09-15 23:59:15 -0700 |
---|---|---|
committer | Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | 2016-09-15 23:59:15 -0700 |
commit | 00d0e4631b80fcda7f7ebeda392d036b4923ac7e (patch) | |
tree | f154be781118419c1b3f6977b78d73b6fc208d48 /scripts | |
parent | 3f3dc59ea13332c14c348407cf40f3e1a885856c (diff) |
build: use 'vercomp' without relying on it being in PATH
Not every environment has $ZEPHYR_BASE/scripts/ in the PATH, which can
cause conflicts (eg: the test environment doesn't define it to
simplify the build instructions).
Using vercomp as $ZEPHYR_BASE/scripts/vercomp, we remove this
requirement.
Change-Id: I8c390f905907f42d1ba2b4d1378e188705164e13
Signed-off-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.toolchain.zephyr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.toolchain.zephyr b/scripts/Makefile.toolchain.zephyr index a64367279..a8a54c36b 100644 --- a/scripts/Makefile.toolchain.zephyr +++ b/scripts/Makefile.toolchain.zephyr @@ -19,7 +19,7 @@ ifndef ZEPHYR_SDK_INSTALL_DIR $(error ZEPHYR_SDK_INSTALL_DIR is not set) else SDK_VERSION = $(shell cat ${ZEPHYR_SDK_INSTALL_DIR}/sdk_version) -SDK_CHECK = $(shell vercomp $(REQUIRED_SDK_VER) $(SDK_VERSION) || echo $$?) +SDK_CHECK = $(shell ${ZEPHYR_BASE}/scripts/vercomp $(REQUIRED_SDK_VER) $(SDK_VERSION) || echo $$?) ifeq ($(SDK_CHECK),1) $(error (The SDK version you are using is old, please update your SDK. You need at least SDK version $(REQUIRED_SDK_VER))) |