build: allow absolute paths for module sources

This commit is contained in:
Andrew Tridgell
2013-05-04 11:42:31 +10:00
parent 8d3a738b70
commit 6e8c1148d5
+1 -1
View File
@@ -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)))