summaryrefslogtreecommitdiff
path: root/build/top.mk
diff options
context:
space:
mode:
authorNicolas Schodet2015-06-17 11:15:06 +0200
committerNicolas Schodet2019-10-07 00:44:50 +0200
commit6f9f99c05a436de2241aaeda63aca237c071800d (patch)
tree5d16e1f6caf04f8f40d5c9a862771c83679321ad /build/top.mk
parent74c19264c348cbfb06696f9c0b3999dc00109efa (diff)
build: add out of tree targets support
Diffstat (limited to 'build/top.mk')
-rw-r--r--build/top.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/top.mk b/build/top.mk
index 72e80f4..24f17bb 100644
--- a/build/top.mk
+++ b/build/top.mk
@@ -65,7 +65,7 @@ $(OBJDIR):
include $(UCOO_BASE)/build/arch.mk
define TARGETS_template
-include $$(UCOO_BASE)/build/$1.mk
+include $$(firstword $$(wildcard $$(BASE)/build/$1.mk) $$(UCOO_BASE)/build/$1.mk)
endef
$(foreach target,$(TARGETS),$(eval $(call TARGETS_template,$(target))))