From 6f9f99c05a436de2241aaeda63aca237c071800d Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Wed, 17 Jun 2015 11:15:06 +0200 Subject: build: add out of tree targets support --- build/top.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build/top.mk') 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)))) -- cgit v1.2.3