diff --git a/makefile b/makefile index 74cb1bdc79..93e2bd9f9f 100644 --- a/makefile +++ b/makefile @@ -389,7 +389,13 @@ bootimage-object = $(native-build)/bootimage-bin.o ifeq ($(bootimage),true) ifneq ($(build-arch),$(arch)) - error "can't cross-build a bootimage" +$(error "bootimage cross-builds not yet supported") + endif + + ifeq ($(arch),x86_64) + ifneq ($(build-platform),$(platform)) +$(error "bootimage cross-builds not yet supported") + endif endif vm-classpath-object = $(bootimage-object)