Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #263 from AdFad666/1245088
Browse files Browse the repository at this point in the history
Bug 1245088: Option to build B2G as 32bit on a 64_32 multilib build target r=mwu
  • Loading branch information
fabricedesre committed Feb 8, 2016
2 parents d24d440 + f568d0e commit e80b00f
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -505,20 +505,33 @@ ifneq ($(strip $(SKIP_DASH_S)),1)
SHOW_COMMAND_GECKO = -s
endif

# If our build target is multilib then we may want to build Gecko as the 2nd arch
ifeq ($(BUILD_MULTILIB_GECKO_AS_2ND_ARCH), true)
MULTILIB := 2ND_
# All 64bit arm64 targets support 32bit neon extensions
ifeq ($(TARGET_ARCH), arm64)
ARCH_ARM_VFP := neon
endif
endif

# Multilib complicates the obj dir in Gecko, so export it from here
GONK_OUT_INTERMEDIATES := $($(MULTILIB)TARGET_OUT_INTERMEDIATES)

ifeq ($(strip $(GECKO_TOOLS_PREFIX)),)
GECKO_TOOLS_PREFIX = $(TARGET_TOOLS_PREFIX)
GECKO_TOOLS_PREFIX = $($(MULTILIB)TARGET_TOOLS_PREFIX)
endif

.PHONY: $(LOCAL_BUILT_MODULE)
$(LOCAL_BUILT_MODULE): $(TARGET_CRTBEGIN_DYNAMIC_O) $(TARGET_CRTEND_O) $(addprefix $(TARGET_OUT_SHARED_LIBRARIES)/,$(GECKO_LIB_DEPS))
$(LOCAL_BUILT_MODULE): $($(MULTILIB)TARGET_CRTBEGIN_DYNAMIC_O) $($(MULTILIB)TARGET_CRTEND_O) $(addprefix $($(MULTILIB)TARGET_OUT_SHARED_LIBRARIES)/,$(GECKO_LIB_DEPS))
(echo "export GECKO_OBJDIR=$(abspath $(GECKO_OBJDIR))"; \
echo "export GECKO_TOOLS_PREFIX=$(abspath $(GECKO_TOOLS_PREFIX))"; \
echo "export PRODUCT_OUT=$(abspath $(PRODUCT_OUT))" ) > .var.profile
export CONFIGURE_ARGS="$(GECKO_CONFIGURE_ARGS)" && \
export GONK_OUT_INTERMEDIATES="$(GONK_OUT_INTERMEDIATES)" && \
export GONK_PRODUCT="$(TARGET_DEVICE)" && \
export TARGET_ARCH="$(TARGET_ARCH)" && \
export TARGET_ARCH="$(TARGET_$(MULTILIB)ARCH)" && \
export TARGET_BUILD_VARIANT="$(TARGET_BUILD_VARIANT)" && \
export TARGET_C_INCLUDES="$(addprefix -isystem ,$(abspath $(TARGET_C_INCLUDES)))" && \
export TARGET_C_INCLUDES="$(addprefix -isystem ,$(abspath $($(MULTILIB)TARGET_C_INCLUDES)))" && \
export PLATFORM_SDK_VERSION="$(PLATFORM_SDK_VERSION)" && \
export HOST_OS="$(HOST_OS)" && \
export GECKO_TOOLS_PREFIX="$(abspath $(GECKO_TOOLS_PREFIX))" && \
Expand Down

0 comments on commit e80b00f

Please sign in to comment.