detect and prohibit unsupported bootimage cross-builds in makefile

This commit is contained in:
Joel Dice 2009-12-03 10:47:50 -07:00
parent 8cf67a76ad
commit 028fd42f5e

View File

@ -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)