summaryrefslogtreecommitdiff
path: root/build/top.mk
diff options
context:
space:
mode:
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))))