From ed6e3fd70fa590758b7bebf2008f181e32e27b25 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sun, 17 Mar 2019 15:10:22 +0000 Subject: [PATCH] git-submod.mk: Include $(MODDIR)/make/defs.mk If defs.mk isn't included, CWD is undefined, which leads to an attempt to add the wrong submodule path upon initialization Signed-off-by: Jan Lindemann --- make/git-submod.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/make/git-submod.mk b/make/git-submod.mk index f4eff9c8..7fabaf61 100644 --- a/make/git-submod.mk +++ b/make/git-submod.mk @@ -16,6 +16,8 @@ SUB_GIT = git -C $(SUBMOD_SRC_DIR) SUBMOD_PKG_NAME := $(shell $(SUB_GIT) remote -v | sed -n 's/^[a-zA-Z_]\+\s//; s/ *.*//; s%.*/%%; s%\.git%%; 1p') SUBMOD_MAIN_BRANCH := $(shell $(SUB_GIT) branch --format '%(refname:lstrip=2)') +include $(MODDIR)/make/defs.mk + all: install: clean: