Changeset 406


Ignore:
Timestamp:
Jun 11, 2013, 2:28:55 PM (11 years ago)
Author:
cfuguet
Message:

Introducing USE_DT (true by default) option in tsar_boot makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/Makefile

    r390 r406  
    1616    endif
    1717  endif
     18endif
     19
     20ifeq ($(USE_DT), 0)
     21        DTS=
    1822endif
    1923
     
    5458
    5559C_SRCS     := boot_elf_loader.c boot_ioc.c boot_memcpy.c boot_tty.c exceptions.c
     60
    5661ifndef SOCLIB
    57 C_SRCS     += sdcard.c spi.c
     62  C_SRCS   += sdcard.c spi.c
    5863endif
    5964
     
    6671TARGET     := bin.soft
    6772
     73ifndef USE_DT
     74  USE_DT := 1
     75else
     76  USE_DT := $(USE_DT)
     77endif
    6878
    6979ifdef SYSCLK_FREQ
    70 DEFS+= -DSYSCLK_FREQ=$(SYSCLK_FREQ)
     80  DEFS += -DSYSCLK_FREQ=$(SYSCLK_FREQ)
    7181endif
    7282
     
    8393
    8494$(BUILD_DIR)/platform.dtb: $(DTS)
     95ifeq ($(USE_DT), 1)
    8596        $(ECHO) "[   DTC   ]     $(notdir $<)"
    8697        ${DTC} -O dtb -o $@ $< &> /dev/null
     98else
     99        touch $@
     100endif
    87101
    88102$(BUILD_DIR):
Note: See TracChangeset for help on using the changeset viewer.