Commit baa15207 authored by Priit Laes's avatar Priit Laes Committed by NiteHawk
Browse files

Hide error messages about nonexisting directories when scanning $PATH



$PATH can contains directories that do not exist, so hide error messages
about those entries.
Signed-off-by: default avatarPriit Laes <plaes@plaes.org>
parent 7252ae1b
...@@ -56,7 +56,7 @@ MKSUNXIBOOT ?= mksunxiboot ...@@ -56,7 +56,7 @@ MKSUNXIBOOT ?= mksunxiboot
PATH_DIRS := $(shell echo $$PATH | sed -e 's/:/ /g') PATH_DIRS := $(shell echo $$PATH | sed -e 's/:/ /g')
# Try to guess a suitable default ARM cross toolchain # Try to guess a suitable default ARM cross toolchain
CROSS_DEFAULT := arm-none-eabi- CROSS_DEFAULT := arm-none-eabi-
CROSS_COMPILE ?= $(or $(shell find $(PATH_DIRS) -executable -name 'arm*-gcc' -printf '%f\t' | cut -f 1 | sed -e 's/-gcc/-/'),$(CROSS_DEFAULT)) CROSS_COMPILE ?= $(or $(shell find $(PATH_DIRS) -executable -name 'arm*-gcc' -printf '%f\t' 2>/dev/null | cut -f 1 | sed -e 's/-gcc/-/'),$(CROSS_DEFAULT))
CROSS_CC ?= $(CROSS_COMPILE)gcc CROSS_CC ?= $(CROSS_COMPILE)gcc
DESTDIR ?= DESTDIR ?=
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment