diff --git a/solenv/gbuild/BuildDirs.mk b/solenv/gbuild/BuildDirs.mk index 3e0a9c428785..da7f53581994 100644 --- a/solenv/gbuild/BuildDirs.mk +++ b/solenv/gbuild/BuildDirs.mk @@ -28,6 +28,11 @@ endif endif ifneq ($(gb_LOCALBUILDDIR),) + +ifneq ($(gb_DISABLELOCALBUILD),) +$(error This is requesting a local build. This scenario has been disable because the environment is not correctly setup for it.) +endif + .PHONY : setuplocal setuplocal : mkdir -p $(OUTDIR) $(WORKDIR)