diff --git a/tools/Make.defs b/tools/Make.defs index d8899bbcd8..2b94b325f3 100644 --- a/tools/Make.defs +++ b/tools/Make.defs @@ -29,6 +29,9 @@ ifeq ($(CONFIG_APPS_DIR),) CONFIG_APPS_DIR = $(TOPDIR)/../apps endif +ifneq ($(firstword $(CONFIG_APPS_DIR)),/) +CONFIG_APPS_DIR := $(TOPDIR)/$(CONFIG_APPS_DIR) +endif APPDIR := $(realpath ${shell if [ -r $(CONFIG_APPS_DIR)/Makefile ]; then echo "$(CONFIG_APPS_DIR)"; fi}) ifeq ($(APPDIR),)