]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - spl/Makefile
Makefile: fix HAVE_VENDOR_COMMON_LIB
[karo-tx-uboot.git] / spl / Makefile
index ea7d4750fbebc5b91fa853d3e2043f7013c3adff..2cf7bdad630053010e1869c70750abab32ada4ed 100644 (file)
@@ -23,8 +23,7 @@ include $(TOPDIR)/config.mk
 # We want the final binaries in this directory
 obj := $(OBJTREE)/spl/
 
-HAVE_VENDOR_COMMON_LIB := $(shell [ -f $(SRCTREE)/board/$(VENDOR)/common/Makefile ] \
-                       && echo y || echo n)
+HAVE_VENDOR_COMMON_LIB = $(if $(wildcard $(SRCTREE)/board/$(VENDOR)/common/Makefile),y,n)
 
 ifdef  CONFIG_SPL_START_S_PATH
 START_PATH := $(subst ",,$(CONFIG_SPL_START_S_PATH))