Index: /trunk/softs/tsar_boot/Makefile
===================================================================
--- /trunk/softs/tsar_boot/Makefile	(revision 1023)
+++ /trunk/softs/tsar_boot/Makefile	(revision 1024)
@@ -6,4 +6,8 @@
 HARD_CONFIG_PATH ?= ../../../giet_vm
 MAKECMDGOALS     ?= none
+BS_PROC    ?= 0
+
+MAKECMDGOALS ?= none
+BUILD_DIR    ?= build
 
 ifneq ($(MAKECMDGOALS),$(filter $(MAKECMDGOALS),clean distclean clean-doc doc))
@@ -19,4 +23,5 @@
     DEFS   := "-DRESET_SYSTEM_CLK=$(SYSTEM_CLK)"
 endif
+DEFS       := -DBS_PROC=$(BS_PROC)
 
 LD         := mipsel-unknown-elf-ld
@@ -33,5 +38,4 @@
 DOXYGEN    := doxygen
 
-BUILD_DIR  := build
 HARD_CONFIG:= $(HARD_CONFIG_PATH)/hard_config.h
 
@@ -67,6 +71,7 @@
                   $(subst .c,.o, $(notdir $(C_SRCS))) \
                   $(subst .S,.o, $(notdir $(S_SRCS))))
-
-TARGET     := preloader.elf
+# @QM Defining preloader.elf relatively to the build directory, so as to support parallel compilation with
+# different build directories
+TARGET     := $(BUILD_DIR)/../preloader.elf
 
 # =============================================================================
@@ -114,5 +119,5 @@
 	./version.sh > $@
 
-$(BUILD_DIR)/preloader.ld: preloader.ld.in
+$(BUILD_DIR)/preloader.ld: preloader.ld.in $(HARD_CONFIG)
 	$(ECHO) "[   CC    ]     $(notdir $<)"
 	$(CC) -x c -P -E -DUSE_DT=$(USE_DT) $(INCLUDE) $< -o $@
