Ignore:
Timestamp:
Mar 3, 2014, 5:11:06 PM (10 years ago)
Author:
cfuguet
Message:

Introducing a RAMDISK driver in the preloader.

When using RAMDISK, execute the make command with the flags
SOCLIB=1 and RAMDISK=1. The RDK_PADDR_BASE variable must
also be set on the conf/<platform>/defs_platform.h

These modifications are backward compatibles. Therefore,
when no using RAMDISK, none modifications applied on the
platform configuration file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/Makefile

    r587 r653  
    99  else
    1010    ifdef SOCLIB
    11       DEFS+= -DSOCLIB_IOC
     11      ifdef RAMDISK
     12        DEFS+= -DUSE_RDK
     13      else
     14        DEFS+= -DUSE_BDV
     15      endif
    1216      DTS=platform_soclib.dts
    1317      $(info Make for $(PLATFORM_DIR), SocLib variant)
    1418    else
     19      DEFS+= -DUSE_SPI
    1520      DTS=platform_fpga.dts
    1621      $(info Make for $(PLATFORM_DIR), FPGA variant)
     
    1924endif
    2025
    21 LD             := mipsel-unknown-elf-ld
    22 CC             := mipsel-unknown-elf-gcc
    23 AS             := mipsel-unknown-elf-as
    24 DU             := mipsel-unknown-elf-objdump
    25 RM             := rm -rf
    26 ECHO       := echo
    27 MKDIR      := mkdir
    28 DTC            := dtc
    29 HEXDUMP    := hexdump
     26LD         := mipsel-unknown-elf-ld
     27CC         := mipsel-unknown-elf-gcc
     28AS         := mipsel-unknown-elf-as
     29DU         := mipsel-unknown-elf-objdump
     30RM         := rm -rf
     31ECHO       := @echo
     32MKDIR      := mkdir
     33DTC        := dtc
     34HEXDUMP    := hexdump
    3035DOXYGEN    := doxygen
    3136
     
    3843# =============================================================================
    3944
    40 INCLUDE    += -I. -I$(INCS_DIR) -I$(PLATFORM_DIR)
     45INCLUDE    += -I. -I$(INCS_DIR) -I$(PLATFORM_DIR)
    4146
    4247# =============================================================================
     
    5661              -fomit-frame-pointer \
    5762              -mips32              \
    58                       -ggdb                \
     63              -ggdb                \
    5964              -mlong-calls         \
    6065              -Werror
    6166
    62 C_SRCS     := reset_elf_loader.c \
     67C_SRCS     := reset_elf_loader.c \
    6368              reset_ioc.c        \
    6469              reset_utils.c      \
     
    7075endif
    7176
    72 S_SRCS     := reset.S
     77S_SRCS     := reset.S
    7378
    7479OBJS       := $(subst .c,.o, $(notdir $(C_SRCS)))
     
    7883TARGET     := preloader.elf
    7984
    80 USE_DT     ?= 1
     85USE_DT     ?= 1
    8186
    8287all: $(TARGET)
     
    135140        $(DU) -D $@ > $@.txt
    136141
    137 .SILENT:
     142#.SILENT:
Note: See TracChangeset for help on using the changeset viewer.