Changeset 4a8635b in mainline


Ignore:
Timestamp:
2007-06-05T21:32:40Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
566f5e5c
Parents:
52d30c4
Message:

Some non-C files (e.g. .S and linker scripts) must be still "compiled" with gcc and GCC_CFLAGS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    r52d30c4 r4a8635b  
    130130ifeq ($(COMPILER),gcc_native)
    131131        CC = gcc
    132         AS_CC = gcc
     132        GCC = gcc
    133133        AS = as
    134134        LD = ld
     
    141141ifeq ($(COMPILER),icc_native)
    142142        CC = icc
    143         AS_CC = gcc
     143        GCC = gcc
    144144        AS = as
    145145        LD = ld
     
    152152ifeq ($(COMPILER),suncc_native)
    153153        CC = suncc
    154         AS_CC = gcc
     154        GCC = gcc
    155155        AS = as
    156156        LD = ld
     
    163163ifeq ($(COMPILER),gcc_cross)
    164164        CC = $(TOOLCHAIN_DIR)/bin/$(TARGET)-gcc
    165         AS_CC = $(CC)
     165        GCC = $(CC)
    166166        AS = $(TOOLCHAIN_DIR)/bin/$(TARGET)-as
    167167        LD = $(TOOLCHAIN_DIR)/bin/$(TARGET)-ld
     
    322322
    323323arch/$(ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in
    324         $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $< | grep -v "^\#" > $@
     324        $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $< | grep -v "^\#" > $@
    325325
    326326generic/src/debug/real_map.bin: depend arch/$(ARCH)/_link.ld $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS)
     
    349349
    350350%.o: %.S
    351         $(AS_CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
     351        $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@
    352352
    353353%.o: %.s
Note: See TracChangeset for help on using the changeset viewer.