mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-09 04:39:34 +00:00
DM: ACPI: Avoiding hard code the ASL_COMPILER macro
The ASL_COMPILER macro is hard coded as /usr/sbin/iasl, it is complained by some developers. This patch changes it to a flexible way, by which the following make command lines are supported: make make devicemodel make ASL_COMPILER=/path/to/iasl make ASL_COMPILER=/path/to/iasl devicemodel Tracked-On: #2298 Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Reviewed-by: Binbin Wu <binbin.wu@intel.com>
This commit is contained in:
@@ -25,6 +25,10 @@ CFLAGS += -I$(BASEDIR)/include/public
|
||||
CFLAGS += -I$(DM_OBJDIR)/include
|
||||
CFLAGS += -I$(TOOLS_OUT)
|
||||
|
||||
ifneq (, $(DM_ASL_COMPILER))
|
||||
CFLAGS += -DASL_COMPILER=\"$(DM_ASL_COMPILER)\"
|
||||
endif
|
||||
|
||||
GCC_MAJOR=$(shell echo __GNUC__ | $(CC) -E -x c - | tail -n 1)
|
||||
GCC_MINOR=$(shell echo __GNUC_MINOR__ | $(CC) -E -x c - | tail -n 1)
|
||||
|
||||
|
@@ -89,7 +89,9 @@
|
||||
|
||||
#define ASL_TEMPLATE "dm.XXXXXXX"
|
||||
#define ASL_SUFFIX ".aml"
|
||||
#ifndef ASL_COMPILER
|
||||
#define ASL_COMPILER "/usr/sbin/iasl"
|
||||
#endif
|
||||
|
||||
uint64_t audio_nhlt_len = 0;
|
||||
uint32_t csme_sec_cap = 0;
|
||||
|
Reference in New Issue
Block a user