Makefile: automatically determine the location of 'iasl'

The 'iasl' binary (from the acpica) package can be installed in
different locations depending on the distribution. By default,
we look for it under '/usr/sbin/'. But it is also often found
under '/usr/bin'. This can be overwritten by setting the ASL_COMPILER
flag when compiling ACRN.

This patch goes one step further and automatically determine where
'iasl' is on the development system if the ASL_COMPILER variable
has not been set already.

Tracked-On: #5854
Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
This commit is contained in:
Geoffroy Van Cutsem 2021-03-22 22:26:23 +01:00 committed by wenlingz
parent ac091bacba
commit afe07cc237

View File

@ -73,6 +73,7 @@ BUILD_VERSION ?=
BUILD_TAG ?= BUILD_TAG ?=
HV_CFG_LOG = $(HV_OUT)/cfg.log HV_CFG_LOG = $(HV_OUT)/cfg.log
VM_CONFIGS_DIR = $(T)/misc/config_tools VM_CONFIGS_DIR = $(T)/misc/config_tools
ASL_COMPILER ?= $(shell which iasl)
.PHONY: all hypervisor devicemodel tools doc .PHONY: all hypervisor devicemodel tools doc
all: hypervisor devicemodel tools all: hypervisor devicemodel tools