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:
Xiaoguang Wu
2019-01-14 06:42:02 +00:00
committed by wenlingz
parent 342d29eea8
commit 80dc0bce3e
3 changed files with 7 additions and 1 deletions

View File

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