aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2013-05-04 11:42:31 +1000
committerAndrew Tridgell <tridge@samba.org>2013-05-04 11:44:38 +1000
commit6e8c1148d5fb6567974f3e5464e45637dc6ce68b (patch)
treeeef2e7d43986c118caaee67c4bf48dd45ca0464f
parent8d3a738b7011ab77bab7ac89c5314fdc7c663890 (diff)
downloadpx4-firmware-6e8c1148d5fb6567974f3e5464e45637dc6ce68b.tar.gz
px4-firmware-6e8c1148d5fb6567974f3e5464e45637dc6ce68b.tar.bz2
px4-firmware-6e8c1148d5fb6567974f3e5464e45637dc6ce68b.zip
build: allow absolute paths for module sources
-rw-r--r--makefiles/module.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/makefiles/module.mk b/makefiles/module.mk
index 59c67f574..0fe6f0ffe 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)))