X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=config.mk;h=1fd109f1bdfe1d8f7b2d9e34030b9e09fae259d8;hb=79a34d3ccc7bb08848412877b6935e596fef1d29;hp=4e6a19bd8a60bc94137e49d17b2718de7a76d5bd;hpb=0ce033d2582129243aca10d3072a221386bbba44;p=u-boot diff --git a/config.mk b/config.mk index 4e6a19bd8a..1fd109f1bd 100644 --- a/config.mk +++ b/config.mk @@ -23,6 +23,13 @@ ######################################################################### +# Set shell to bash if possible, otherwise fall back to sh +SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ + else if [ -x /bin/bash ]; then echo /bin/bash; \ + else echo sh; fi; fi) + +export SHELL + ifeq ($(CURDIR),$(SRCTREE)) dir := else