Changeset 36197


Ignore:
Timestamp:
2013-04-05T14:35:53+02:00 (5 years ago)
Author:
florian
Message:

rules.mk: Create TARGET_ASFLAGS; force -mno-mips16

Create and use a TARGET_ASFLAGS, defaulting to TARGET_CFLAGS.

MIPS .S files reasonably assume they are not in mips16 mode. Because
"-mips16 -mno-mips16" results in -mno-mips16, I can append that to the
TARGET_ASFLAGS. This should be done with $(filter-out)?

Signed-off-by: Jay Carlson <nop@…>
Signed-off-by: Florian Fainelli <florian@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/rules.mk

    r36109 r36197  
    6363ifneq ($(filter -mips%r2,$(TARGET_OPTIMIZATION)),) 
    6464  ARCH_SUFFIX:=_r2 
     65endif 
     66ifneq ($(findstring -mips16,$(TARGET_OPTIMIZATION)),) 
     67  TARGET_ASFLAGS_OVERRIDE:=-mno-mips16 
    6568endif 
    6669ifdef CONFIG_HAS_SPE_FPU 
     
    112115TARGET_CFLAGS:=$(TARGET_OPTIMIZATION)$(if $(CONFIG_DEBUG), -g3) 
    113116TARGET_CXXFLAGS = $(TARGET_CFLAGS) 
     117TARGET_ASFLAGS = $(TARGET_CFLAGS) $(TARGET_ASFLAGS_OVERRIDE) 
    114118TARGET_CPPFLAGS:=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include 
    115119TARGET_LDFLAGS:=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib 
     
    212216TARGET_CONFIGURE_OPTS = \ 
    213217  AR=$(TARGET_CROSS)ar \ 
    214   AS="$(TARGET_CC) -c $(TARGET_CFLAGS)" \ 
     218  AS="$(TARGET_CC) -c $(TARGET_ASFLAGS)" \ 
    215219  LD=$(TARGET_CROSS)ld \ 
    216220  NM=$(TARGET_CROSS)nm \ 
Note: See TracChangeset for help on using the changeset viewer.