summaryrefslogtreecommitdiffstats
path: root/build_layout.mk
diff options
context:
space:
mode:
Diffstat (limited to 'build_layout.mk')
-rw-r--r--build_layout.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/build_layout.mk b/build_layout.mk
index beb1cb662..6e9f97dae 100644
--- a/build_layout.mk
+++ b/build_layout.mk
@@ -15,4 +15,13 @@ define SEARCH_LAYOUTS
$$(foreach LAYOUTS_REPO,$$(LAYOUTS_REPOS),$$(eval $$(call SEARCH_LAYOUTS_REPO)))
endef
+ifneq ($(FORCE_LAYOUT),)
+ ifneq (,$(findstring $(FORCE_LAYOUT),$(LAYOUTS)))
+ $(info Forcing layout: $(FORCE_LAYOUT))
+ LAYOUTS := $(FORCE_LAYOUT)
+ else
+ $(error Forced layout does not exist)
+ endif
+endif
+
$(foreach LAYOUT,$(LAYOUTS),$(eval $(call SEARCH_LAYOUTS))) \ No newline at end of file