From 6e8c1148d5fb6567974f3e5464e45637dc6ce68b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 4 May 2013 11:42:31 +1000 Subject: [PATCH] build: allow absolute paths for module sources --- makefiles/module.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefiles/module.mk b/makefiles/module.mk index 59c67f574d..0fe6f0ffec 100644 --- a/makefiles/module.mk +++ b/makefiles/module.mk @@ -183,7 +183,7 @@ module: $(MODULE_OBJ) $(MODULE_COMMAND_FILES) # Locate sources (allows relative source paths in module.mk) # define SRC_SEARCH - $(abspath $(firstword $(wildcard $(MODULE_SRC)/$1) MISSING_$1)) + $(abspath $(firstword $(wildcard $1) $(wildcard $(MODULE_SRC)/$1) MISSING_$1)) endef ABS_SRCS ?= $(foreach src,$(SRCS),$(call SRC_SEARCH,$(src)))