diff --git a/Makefile b/Makefile index 9a7f352cc..3d7f25adb 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,8 @@ T := $(CURDIR) PLATFORM ?= uefi RELEASE ?= 0 -BUILD_DIR := build -ROOT_OUT := $(T)/$(BUILD_DIR) +O ?= build +ROOT_OUT := $(shell mkdir -p $(O);cd $(O);pwd) HV_OUT := $(ROOT_OUT)/hypervisor DM_OUT := $(ROOT_OUT)/devicemodel TOOLS_OUT := $(ROOT_OUT)/tools