Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45d38c06 authored by Dan Willemsen's avatar Dan Willemsen
Browse files

Pass the arm/thumb cflags to assembly files

This effectively changes the default instruction set of assembly files
from arm to thumb in order to match the default for C/C++.

Change-Id: I8684f144a1195b53b3e0fdd04cacf77f6a131c7e
parent 8cb9be66
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -905,6 +905,7 @@ $(gen_s_objects): $(intermediates)/%.o: $(intermediates)/%.s \
endif

gen_asm_objects := $(gen_S_objects) $(gen_s_objects)
$(gen_asm_objects): PRIVATE_ARM_CFLAGS := $(normal_objects_cflags)

###########################################################
## o: Include generated .o files in output.
@@ -1041,6 +1042,7 @@ $(asm_objects_s): $(intermediates)/%.o: $(TOPDIR)$(LOCAL_PATH)/%.s \
endif

asm_objects := $(dotdot_objects_S) $(dotdot_objects_s) $(asm_objects_S) $(asm_objects_s)
$(asm_objects): PRIVATE_ARM_CFLAGS := $(normal_objects_cflags)


# .asm for x86/x86_64 needs to be compiled with yasm.