mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 03:36:07 +08:00
build: allow absolute paths for module sources
This commit is contained in:
+1
-1
@@ -183,7 +183,7 @@ module: $(MODULE_OBJ) $(MODULE_COMMAND_FILES)
|
|||||||
# Locate sources (allows relative source paths in module.mk)
|
# Locate sources (allows relative source paths in module.mk)
|
||||||
#
|
#
|
||||||
define SRC_SEARCH
|
define SRC_SEARCH
|
||||||
$(abspath $(firstword $(wildcard $(MODULE_SRC)/$1) MISSING_$1))
|
$(abspath $(firstword $(wildcard $1) $(wildcard $(MODULE_SRC)/$1) MISSING_$1))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
ABS_SRCS ?= $(foreach src,$(SRCS),$(call SRC_SEARCH,$(src)))
|
ABS_SRCS ?= $(foreach src,$(SRCS),$(call SRC_SEARCH,$(src)))
|
||||||
|
|||||||
Reference in New Issue
Block a user