Changeset 425 for trunk/softs/tsar_boot/Makefile
- Timestamp:
- Jun 30, 2013, 8:28:58 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/tsar_boot/Makefile
r411 r425 2 2 -include ./build.mk 3 3 4 ifndef MAKECMDGOALS 5 MAKECMDGOALS=none 6 endif 4 MAKECMDGOALS ?= none 7 5 8 6 ifneq ($(MAKECMDGOALS),$(filter $(MAKECMDGOALS),clean distclean clean-doc doc)) … … 19 17 endif 20 18 endif 21 endif22 23 ifeq ($(USE_DT), 0)24 DTS=25 19 endif 26 20 … … 58 52 59 53 CFLAGS := -Wall -mno-gpopt -ffreestanding -fomit-frame-pointer -mips32 \ 60 -ggdb -mlong-calls 54 -ggdb -mlong-calls -Werror 61 55 62 C_SRCS := boot_elf_loader.c boot_ioc.c boot_ memcpy.c boot_tty.c exceptions.c56 C_SRCS := boot_elf_loader.c boot_ioc.c boot_utils.c boot_tty.c exceptions.c 63 57 64 58 ifndef SOCLIB … … 74 68 TARGET := bin.soft 75 69 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 70 USE_DT ?= 1 85 71 86 72 all: $(TARGET) … … 91 77 $(DU) -D $@ > $@.txt 92 78 79 ifeq ($(USE_DT), 1) 93 80 $(BUILD_DIR)/platform.ld: $(BUILD_DIR)/platform.dtb 94 81 $(ECHO) "[ HEXDUMP ] $(notdir $<)" 95 82 $(HEXDUMP) -v -e '"BYTE(0x" 1/1 "%02X" ")\n"' $< > $@ 83 else 84 $(BUILD_DIR)/platform.ld: 85 $(ECHO) "[ TOUCH ] $(notdir $@)" 86 touch $@ 87 endif 96 88 97 89 $(BUILD_DIR)/platform.dtb: $(DTS) 98 ifeq ($(USE_DT), 1)99 90 $(ECHO) "[ DTC ] $(notdir $<)" 100 91 ${DTC} -O dtb -o $@ $< &> /dev/null 101 else102 touch $@103 endif104 92 105 93 $(BUILD_DIR):
Note: See TracChangeset
for help on using the changeset viewer.