From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Wed, 25 May 2016 01:48:53 -0700 Subject: [U-Boot] [PATCH 3/8] acpi: Pass -D__ACPI__ when compiling ASL files In-Reply-To: <1464166138-14975-1-git-send-email-bmeng.cn@gmail.com> References: <1464166138-14975-1-git-send-email-bmeng.cn@gmail.com> Message-ID: <1464166138-14975-4-git-send-email-bmeng.cn@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de ASL files may include various U-Boot header files, but IASL compiler does not understand any C language embedded in these header files. To reuse those header files for ASL compiling, use __ACPI__ in the header files to exclude everything that is not liked by IASL. Signed-off-by: Bin Meng --- scripts/Makefile.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 97a09a2..8c4ff86 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -325,7 +325,7 @@ $(obj)/%.S: $(src)/%.ttf # --------------------------------------------------------------------------- quiet_cmd_acpi_c_asl= ASL $< cmd_acpi_c_asl= \ - $(CPP) -x assembler-with-cpp -P $(UBOOTINCLUDE) -o $<.tmp $<; \ + $(CPP) -x assembler-with-cpp -D__ACPI__ -P $(UBOOTINCLUDE) -o $<.tmp $<; \ iasl -p $< -tc $<.tmp $(if $(KBUILD_VERBOSE:1=), >/dev/null); \ mv $(patsubst %.asl,%.hex,$<) $@ -- 1.8.2.1