mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-06-16 02:15:47 +00:00
kvmtool: Makefile: Don't defer error output on unsupported architectures
Having ARCH defined to something unknown or trying to compile kvmtool on an unsupported architecture barfs quite late, actually after checking for libraries. This gives a lot of messages, but the only useful one (architecture not supported) is easily overseen. Abort early if ARCH contains an unknown architecture name. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
This commit is contained in:
committed by
Will Deacon
parent
8618570ee3
commit
0fc7018d0b
@@ -192,9 +192,7 @@ endif
|
||||
###
|
||||
|
||||
ifeq (,$(ARCH_INCLUDE))
|
||||
UNSUPP_ERR = @echo "This architecture is not supported in kvmtool." && exit 1
|
||||
else
|
||||
UNSUPP_ERR =
|
||||
$(error This architecture ($(ARCH)) is not supported in kvmtool)
|
||||
endif
|
||||
|
||||
###
|
||||
@@ -341,10 +339,7 @@ ifneq ($(WERROR),0)
|
||||
CFLAGS += -Werror
|
||||
endif
|
||||
|
||||
all: arch_support_check $(PROGRAM) $(PROGRAM_ALIAS) $(GUEST_INIT)
|
||||
|
||||
arch_support_check:
|
||||
$(UNSUPP_ERR)
|
||||
all: $(PROGRAM) $(PROGRAM_ALIAS) $(GUEST_INIT)
|
||||
|
||||
# CFLAGS used when building objects
|
||||
# This is intentionally not assigned using :=
|
||||
|
||||
Reference in New Issue
Block a user