Ignore:
Timestamp:
Dec 4, 2013, 7:59:21 PM (10 years ago)
Author:
alain
Message:

Modify the name "boot" to "reset" to avoid confusion
between the pre-loader and the boot-loader...
Increase the size of the segment containing the stacks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/Makefile

    r502 r586  
    1111      DEFS+= -DSOCLIB_IOC
    1212      DTS=platform_soclib.dts
    13       $(info Making for $(PLATFORM_DIR), SocLib variant)
     13      $(info Make for $(PLATFORM_DIR), SocLib variant)
    1414    else
    1515      DTS=platform_fpga.dts
    16       $(info Making for $(PLATFORM_DIR), FPGA variant)
     16      $(info Make for $(PLATFORM_DIR), FPGA variant)
    1717    endif
    1818  endif
     
    5151# =============================================================================
    5252
    53 CFLAGS     := -Wall -mno-gpopt -ffreestanding -fomit-frame-pointer -mips32 \
    54                       -ggdb -mlong-calls -Werror
     53CFLAGS     := -Wall                \
     54              -mno-gpopt           \
     55              -ffreestanding       \
     56              -fomit-frame-pointer \
     57              -mips32              \
     58                      -ggdb                \
     59              -mlong-calls         \
     60              -Werror
    5561
    56 C_SRCS     := boot_elf_loader.c boot_ioc.c boot_utils.c boot_tty.c exceptions.c
     62C_SRCS     := reset_elf_loader.c \
     63              reset_ioc.c        \
     64              reset_utils.c      \
     65              reset_tty.c        \
     66              reset_exception.c
    5767
    5868ifndef SOCLIB
     
    6676OBJS       := $(addprefix $(BUILD_DIR)/, $(OBJS))
    6777
    68 TARGET     := bin.soft
     78TARGET     := preloader.elf
    6979
    7080USE_DT     ?= 1
     
    7282all: $(TARGET)
    7383
    74 $(BUILD_DIR)/version.o: $(BUILD_DIR) $(OBJS) version version.sh
    75         $(ECHO) "[version.sh]"
    76         ./version.sh > $(BUILD_DIR)/version.c
    77         $(ECHO) "[   CC    ]     $(BUILD_DIR)/version.c"
    78         $(CC) $(DEFS) $(CFLAGS) $(INCLUDE) -c -o $@ $(BUILD_DIR)/version.c
    79         $(DU) -D $@ > $@.txt
     84# $(BUILD_DIR)/version.o: $(BUILD_DIR) $(OBJS) version version.sh
     85#       $(ECHO) "[version.sh]"
     86#       ./version.sh > $(BUILD_DIR)/version.c
     87#       $(ECHO) "[   CC    ]     $(BUILD_DIR)/version.c"
     88#       $(CC) $(DEFS) $(CFLAGS) $(INCLUDE) -c -o $@ $(BUILD_DIR)/version.c
     89#       $(DU) -D $@ > $@.txt
    8090
    81 $(TARGET): $(BUILD_DIR) $(BUILD_DIR)/version.o $(OBJS) $(PLATFORM_DIR)/ldscript $(BUILD_DIR)/platform.ld
     91$(TARGET): $(BUILD_DIR) $(OBJS) $(PLATFORM_DIR)/ldscript $(BUILD_DIR)/platform.ld
    8292        $(ECHO) "[   LD    ]     $@"
    83         $(LD) -o $@ -T $(PLATFORM_DIR)/ldscript $(OBJS) $(BUILD_DIR)/version.o
     93        $(LD) -o $@ -T $(PLATFORM_DIR)/ldscript $(OBJS)
    8494        $(DU) -D $@ > $@.txt
    8595
Note: See TracChangeset for help on using the changeset viewer.