summaryrefslogtreecommitdiffstats
path: root/core/definitions.mk
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2014-06-05 19:05:47 -0700
committerYing Wang <wangying@google.com>2014-06-06 11:00:36 -0700
commit7b913ce6fa5030519121757bf5b258efba51cc06 (patch)
tree950afa49fd6989c9c0831991d7ad495049f0b0c7 /core/definitions.mk
parente564c0cbd08c728d84e62308c741b30f3bd542f8 (diff)
downloadbuild-7b913ce6fa5030519121757bf5b258efba51cc06.zip
build-7b913ce6fa5030519121757bf5b258efba51cc06.tar.gz
build-7b913ce6fa5030519121757bf5b258efba51cc06.tar.bz2
Support .asm being compiled by yasm targeted for x86.
Change-Id: Icd6626a082facf920b0e49e2fbe8861e94400552
Diffstat (limited to 'core/definitions.mk')
-rw-r--r--core/definitions.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/definitions.mk b/core/definitions.mk
index 5d76285..746becf 100644
--- a/core/definitions.mk
+++ b/core/definitions.mk
@@ -1039,6 +1039,16 @@ $(transform-s-to-o-no-deps)
$(transform-d-to-p)
endef
+# YASM compilation
+define transform-asm-to-o
+@mkdir -p $(dir $@)
+$(hide) $(YASM) \
+ $(addprefix -I , $(PRIVATE_C_INCLUDES)) \
+ -f elf32 -m x86 \
+ $(PRIVATE_ASFLAGS) \
+ -o $@ $<
+endef
+
###########################################################
## Commands for running gcc to compile an Objective-C file
## This should never happen for target builds but this