summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2016-05-25 19:19:08 -0700
committerBin Meng <bmeng.cn@gmail.com>2016-05-30 10:21:12 +0800
commit6683584c08cd58ed88a6b60d613bca9086bf8fab (patch)
tree092f3d35ae481b71ff2df29b64ce800d2383bbe0 /scripts
parent3498cc9775e255875ae30ecfb4e29ea1220923a3 (diff)
downloadtalos-obmc-uboot-6683584c08cd58ed88a6b60d613bca9086bf8fab.zip
talos-obmc-uboot-6683584c08cd58ed88a6b60d613bca9086bf8fab.tar.gz
acpi: Pass -D__ASSEMBLY__ when compiling ASL files
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 __ASSEMBLY__ in the header files to exclude everything that is not liked by IASL. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.lib2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 97a09a2..e720562 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__ASSEMBLY__ -P $(UBOOTINCLUDE) -o $<.tmp $<; \
iasl -p $< -tc $<.tmp $(if $(KBUILD_VERBOSE:1=), >/dev/null); \
mv $(patsubst %.asl,%.hex,$<) $@
OpenPOWER on IntegriCloud