aboutsummaryrefslogtreecommitdiffstats
path: root/build_layout.mk
diff options
context:
space:
mode:
authorzvecr <git@zvecr.com>2019-02-15 04:14:26 +0000
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-02-14 20:14:26 -0800
commit40e67a3074293bc8e96574e7d603a943d3ca8d38 (patch)
tree1e152c2282a4a0737e1a5952ec4ac6d96a333b63 /build_layout.mk
parent85022f8bb5129f7118b55556c1ce85bc7d721356 (diff)
downloadfirmware-40e67a3074293bc8e96574e7d603a943d3ca8d38.tar.gz
firmware-40e67a3074293bc8e96574e7d603a943d3ca8d38.tar.bz2
firmware-40e67a3074293bc8e96574e7d603a943d3ca8d38.zip
Add a mechanism for force building a particular community layout (#5027)
* Add a mechanism for force building a particular community layout * Add docs for FORCE_LAYOUT argument * Update output name when FORCE_LAYOUT is enabled
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