X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=build_layout.mk;h=6e9f97dae2117337ea869f8271be7d6d9f6868ce;hb=3538955778c253e68779605cc67c27e15d195729;hp=beb1cb66278a386cd9fc43c18b4a6a016bdbd70c;hpb=a729d852fe502d62e09bab1a31f49b738f8892e4;p=qmk_firmware.git 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