Ignore:
Timestamp:
May 16, 2013, 3:01:37 PM (12 years ago)
Author:
cfuguet
Message:

Modifications in tsar/trunk/softs/tsar_boot:

  • Improving the boot_ioc_read when using a SD card in FPGA platform.
  • Adding some instrumentation on the SD card driver (under preprocessor conditional directives).
  • Including Doxyfile for generate documentation using doxygen.
  • Improving the Makefile to include doc generation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/Makefile

    r368 r388  
    1 ifndef PLATFORM_DIR
    2 $(error please define PLATFORM_DIR 'make PLATFORM_DIR=foo')
    3 else
     1ifndef MAKECMDGOALS
     2  MAKECMDGOALS=none
     3endif
     4
     5ifneq ($(MAKECMDGOALS),$(filter $(MAKECMDGOALS),clean distclean clean-doc doc))
     6  ifndef PLATFORM_DIR
     7    $(error please define PLATFORM_DIR 'make PLATFORM_DIR=foo')
     8  else
     9    ifdef SOCLIB
     10      DEFS+= -DSOCLIB_IOC
     11      DTS=platform_soclib.dts
     12      $(info Making for $(PLATFORM_DIR), SocLib variant)
     13    else
     14      DTS=platform_fpga.dts
     15      $(info Making for $(PLATFORM_DIR), FPGA variant)
     16    endif
     17  endif
     18endif
    419
    520LD             := mipsel-unknown-elf-ld
     
    1227DTC            := dtc
    1328HEXDUMP    := hexdump
     29DOXYGEN    := doxygen
    1430
    1531BUILD_DIR  := build
     
    5066TARGET     := bin.soft
    5167
    52 ifdef SOCLIB
    53 
    54 DEFS+= -DSOCLIB_IOC
    55 DTS=platform_soclib.dts
    56 $(info Making for $(PLATFORM_DIR), SocLib variant)
    57 
    58 else
    59 
    60 DTS=platform_fpga.dts
    61 $(info Making for $(PLATFORM_DIR), FPGA variant)
    62 
    63 endif
    6468
    6569ifdef SYSCLK_FREQ
    66 DEFS+= -DSYSCLK_FREQ
     70DEFS+= -DSYSCLK_FREQ=$(SYSCLK_FREQ)
    6771endif
    68 
    6972
    7073all: $(TARGET)
    7174
    7275$(TARGET): $(BUILD_DIR) $(OBJS) $(PLATFORM_DIR)/ldscript $(BUILD_DIR)/platform.ld
    73         $(ECHO) "[   LD   ]     $@"
     76        $(ECHO) "[   LD    ]     $@"
    7477        $(LD) -o $@ -T $(PLATFORM_DIR)/ldscript $(OBJS)
    7578        $(DU) -D $@ > $@.txt
    7679
    7780$(BUILD_DIR)/platform.ld: $(BUILD_DIR)/platform.dtb
     81        $(ECHO) "[ HEXDUMP ]     $(notdir $<)"
    7882        $(HEXDUMP) -v -e '"BYTE(0x" 1/1 "%02X" ")\n"' $< > $@
    7983
    8084$(BUILD_DIR)/platform.dtb: $(DTS)
    81         ${DTC} -O dtb -o $@ $<
     85        $(ECHO) "[   DTC   ]     $(notdir $<)"
     86        touch $@;#${DTC} -O dtb -o $@ $< &> /dev/null
    8287
    8388$(BUILD_DIR):
    8489        $(MKDIR) $@
    8590
     91doc: Doxyfile
     92        $(DOXYGEN) Doxyfile
     93
    8694clean:
    8795        $(RM) $(TARGET).txt $(TARGET) *~ $(BUILD_DIR)
    8896
    89 distclean: clean
     97clean-doc:
     98        $(RM) doc
     99
     100distclean: clean clean-doc
    90101
    91102# =============================================================================
     
    93104
    94105$(BUILD_DIR)/%.o: %.c
    95         $(ECHO) "[   CC   ]     $(notdir $<)"
     106        $(ECHO) "[   CC    ]     $(notdir $<)"
    96107        $(CC) $(DEFS) $(CFLAGS) $(INCLUDE) -c -o $@ $<
    97108        $(DU) -D $@ > $@.txt
    98109
    99110$(BUILD_DIR)/%.o: %.S
    100         $(ECHO) "[   AS   ]     $(notdir $<)"
     111        $(ECHO) "[   AS    ]     $(notdir $<)"
    101112        $(CC) $(DEFS) ${INCLUDE} -g -mips32 -c -o $@ $<
    102113        $(DU) -D $@ > $@.txt
    103114
    104115.SILENT:
    105 endif
Note: See TracChangeset for help on using the changeset viewer.