- Timestamp:
- Oct 22, 2015, 5:58:27 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/tsar_boot/Makefile
r992 r1024 6 6 HARD_CONFIG_PATH ?= ../../../giet_vm 7 7 MAKECMDGOALS ?= none 8 BS_PROC ?= 0 9 10 MAKECMDGOALS ?= none 11 BUILD_DIR ?= build 8 12 9 13 ifneq ($(MAKECMDGOALS),$(filter $(MAKECMDGOALS),clean distclean clean-doc doc)) … … 19 23 DEFS := "-DRESET_SYSTEM_CLK=$(SYSTEM_CLK)" 20 24 endif 25 DEFS := -DBS_PROC=$(BS_PROC) 21 26 22 27 LD := mipsel-unknown-elf-ld … … 33 38 DOXYGEN := doxygen 34 39 35 BUILD_DIR := build36 40 HARD_CONFIG:= $(HARD_CONFIG_PATH)/hard_config.h 37 41 … … 67 71 $(subst .c,.o, $(notdir $(C_SRCS))) \ 68 72 $(subst .S,.o, $(notdir $(S_SRCS)))) 69 70 TARGET := preloader.elf 73 # @QM Defining preloader.elf relatively to the build directory, so as to support parallel compilation with 74 # different build directories 75 TARGET := $(BUILD_DIR)/../preloader.elf 71 76 72 77 # ============================================================================= … … 114 119 ./version.sh > $@ 115 120 116 $(BUILD_DIR)/preloader.ld: preloader.ld.in 121 $(BUILD_DIR)/preloader.ld: preloader.ld.in $(HARD_CONFIG) 117 122 $(ECHO) "[ CC ] $(notdir $<)" 118 123 $(CC) -x c -P -E -DUSE_DT=$(USE_DT) $(INCLUDE) $< -o $@
Note: See TracChangeset
for help on using the changeset viewer.