https://bugzilla.tianocore.org/show_bug.cgi?id=227
After -P option is removed, the generated preprocessed ASL file will have
line markers. The extra information can be removed by Trim script. ASL code
can refer to the definition in C source file. This has been supported in
VS and XCODE tool chains.
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
DEFINE GCC_ASM_FLAGS = -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGen.h\r
DEFINE GCC_PP_FLAGS = -E -x assembler-with-cpp -include $(DEST_DIR_DEBUG)/AutoGen.h\r
DEFINE GCC_VFRPP_FLAGS = -x c -E -P -DVFRCOMPILE --include $(DEST_DIR_DEBUG)/$(MODULE_NAME)StrDefs.h\r
DEFINE GCC_ASM_FLAGS = -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGen.h\r
DEFINE GCC_PP_FLAGS = -E -x assembler-with-cpp -include $(DEST_DIR_DEBUG)/AutoGen.h\r
DEFINE GCC_VFRPP_FLAGS = -x c -E -P -DVFRCOMPILE --include $(DEST_DIR_DEBUG)/$(MODULE_NAME)StrDefs.h\r
-DEFINE GCC_ASLPP_FLAGS = -x c -E -P\r
+DEFINE GCC_ASLPP_FLAGS = -x c -E\r
DEFINE GCC_ASLCC_FLAGS = -x c\r
DEFINE GCC_WINDRES_FLAGS = -J rc -O coff\r
DEFINE GCC_IA32_RC_FLAGS = -I binary -O elf32-i386 -B i386 --rename-section .data=.hii\r
DEFINE GCC_ASLCC_FLAGS = -x c\r
DEFINE GCC_WINDRES_FLAGS = -J rc -O coff\r
DEFINE GCC_IA32_RC_FLAGS = -I binary -O elf32-i386 -B i386 --rename-section .data=.hii\r
*_ELFGCC_*_ASL_PATH = DEF(UNIX_IASL_BIN)\r
*_ELFGCC_*_ASL_FLAGS = DEF(IASL_FLAGS)\r
*_ELFGCC_*_ASL_OUTFLAGS = DEF(IASL_OUTFLAGS)\r
*_ELFGCC_*_ASL_PATH = DEF(UNIX_IASL_BIN)\r
*_ELFGCC_*_ASL_FLAGS = DEF(IASL_FLAGS)\r
*_ELFGCC_*_ASL_OUTFLAGS = DEF(IASL_OUTFLAGS)\r
-*_ELFGCC_*_ASLPP_FLAGS = -x c -E -P\r
+*_ELFGCC_*_ASLPP_FLAGS = -x c -E\r
*_ELFGCC_*_ASLCC_FLAGS = -x c\r
*_ELFGCC_*_ASLDLINK_FLAGS = DEF(GCC_DLINK_FLAGS_COMMON) --entry _ReferenceAcpiTable\r
\r
*_ELFGCC_*_ASLCC_FLAGS = -x c\r
*_ELFGCC_*_ASLDLINK_FLAGS = DEF(GCC_DLINK_FLAGS_COMMON) --entry _ReferenceAcpiTable\r
\r