#
#   
#
# Copyright 1990-2006 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
#

#
# Build Linux/ARM for Linux 2.6 for ARM1136. The target flags below
# are based on the GCC released on www.codesourcery.com. If you use
# another GCC distribution, you may need to change the flags.
#

ifndef GNU_TOOLS_DIR 
GNU_TOOLS_DIR = /export/arm/linux2.6.12/bin/gcc/2005Q1B/arm-none-linux-gnueabi
endif

export ENABLE_REMEMBER_ARRAY_LENGTH      := true
export ENABLE_REMEMBER_ARRAY_LENGTH__BY  := linux_arm_1136.cfg
export ENABLE_LOOP_OPTIMIZATION          := true
export ENABLE_LOOP_OPTIMIZATION__BY      := linux_arm_1136.cfg
export ENABLE_NPCE                        := true
export ENABLE_NPCE__BY                    := linux_arm_1136.cfg
export ENABLE_INTERNAL_CODE_OPTIMIZER     := true
export ENABLE_INTERNAL_CODE_OPTIMIZER__BY := linux_arm_1136.cfg
export ENABLE_INLINE                      := true
export ENABLE_INLINE__BY                  := linux_arm_1136.cfg
export ENABLE_REMEMBER_ARRAY_CHECK       := true
export ENABLE_REMEMBER_ARRAY_CHECK__BY   := linux_arm_1136.cfg
export ENABLE_STATIC_TRAMPOLINE          := true
export ENABLE_STATIC_TRAMPOLINE__BY      := linux_arm_1136.cfg
export ENABLE_CSE                         := true
export ENABLE_CSE__BY                     := linux_arm_1136.cfg
export ENABLE_CODE_OPTIMIZER                    := true
export ENABLE_CODE_OPTIMIZER__BY                := linux_arm_1136.cfg

# This optimization is not stable yet. Disabled for now.
# export ENABLE_TRAMPOLINE		:= true
# export ENABLE_TRAMPOLINE__BY	 	:= linux_bvd.cfg

ifndef ENABLE_ARM_V5TE
export ENABLE_ARM_V5TE                          := true
export ENABLE_ARM_V5TE__BY                      := linux_arm_1136.cfg
endif

ifndef ENABLE_ARM_V6
export ENABLE_ARM_V6                            := true
export ENABLE_ARM_V6__BY                        := linux_arm_1136.cfg
endif

ifndef ALWAYS_LSW_FIRST_FOR_DOUBLE
export ALWAYS_LSW_FIRST_FOR_DOUBLE := true
endif

# Linux-arm generic configuration setting.
include $(JVMWorkSpace)/build/linux_arm/linux_arm.cfg

ifeq ($(ENABLE_ARM_VFP)+$(IsTarget),true+true)
    CPP_DEF_FLAGS += -mfloat-abi=softfp -mfpu=vfp
    ASM_FLAGS += -mfpu=vfp
endif
