Ignore:
Timestamp:
Jun 30, 2013, 8:28:58 PM (11 years ago)
Author:
cfuguet
Message:

Modifications in tsar_boot:

  • Creating new files boot_utils.[c h] containing the memcpy, memset and some ELF format debug functions
  • Introducing assert in the boot_elf_loader to show an error when some of segments to load conflicts with some of the pre-loader segments
  • Cosmetic changes in boot_elf_loader to improve code readibility
  • Fixing bug in dcache_buf_invalidate function used by boot_ioc_read when cache coherence not supported. The condition in the for loop was erroneous.
  • Modification in Makefile: The SYSCLK_FREQ parameter is not passed anymore

as a Makefile parameter but it is definesd in the defs_platform.h file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/Makefile

    r411 r425  
    22-include ./build.mk
    33
    4 ifndef MAKECMDGOALS
    5   MAKECMDGOALS=none
    6 endif
     4MAKECMDGOALS ?= none
    75
    86ifneq ($(MAKECMDGOALS),$(filter $(MAKECMDGOALS),clean distclean clean-doc doc))
     
    1917    endif
    2018  endif
    21 endif
    22 
    23 ifeq ($(USE_DT), 0)
    24         DTS=
    2519endif
    2620
     
    5852
    5953CFLAGS     := -Wall -mno-gpopt -ffreestanding -fomit-frame-pointer -mips32 \
    60                       -ggdb -mlong-calls
     54                      -ggdb -mlong-calls -Werror
    6155
    62 C_SRCS     := boot_elf_loader.c boot_ioc.c boot_memcpy.c boot_tty.c exceptions.c
     56C_SRCS     := boot_elf_loader.c boot_ioc.c boot_utils.c boot_tty.c exceptions.c
    6357
    6458ifndef SOCLIB
     
    7468TARGET     := bin.soft
    7569
    76 ifndef USE_DT
    77   USE_DT := 1
    78 else
    79   USE_DT := $(USE_DT)
    80 endif
    81 
    82 ifdef SYSCLK_FREQ
    83   DEFS += -DSYSCLK_FREQ=$(SYSCLK_FREQ)
    84 endif
     70USE_DT     ?= 1
    8571
    8672all: $(TARGET)
     
    9177        $(DU) -D $@ > $@.txt
    9278
     79ifeq ($(USE_DT), 1)
    9380$(BUILD_DIR)/platform.ld: $(BUILD_DIR)/platform.dtb
    9481        $(ECHO) "[ HEXDUMP ]     $(notdir $<)"
    9582        $(HEXDUMP) -v -e '"BYTE(0x" 1/1 "%02X" ")\n"' $< > $@
     83else
     84$(BUILD_DIR)/platform.ld:
     85        $(ECHO) "[  TOUCH  ]     $(notdir $@)"
     86        touch $@
     87endif
    9688
    9789$(BUILD_DIR)/platform.dtb: $(DTS)
    98 ifeq ($(USE_DT), 1)
    9990        $(ECHO) "[   DTC   ]     $(notdir $<)"
    10091        ${DTC} -O dtb -o $@ $< &> /dev/null
    101 else
    102         touch $@
    103 endif
    10492
    10593$(BUILD_DIR):
Note: See TracChangeset for help on using the changeset viewer.