diff options
author | Andrew Tridgell <tridge@samba.org> | 2013-05-04 11:42:31 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2013-05-04 11:44:38 +1000 |
commit | 6e8c1148d5fb6567974f3e5464e45637dc6ce68b (patch) | |
tree | eef2e7d43986c118caaee67c4bf48dd45ca0464f | |
parent | 8d3a738b7011ab77bab7ac89c5314fdc7c663890 (diff) | |
download | px4-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.mk | 2 |
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))) |