Changeset 1024 for trunk


Ignore:
Timestamp:
Oct 22, 2015, 5:58:27 PM (9 years ago)
Author:
meunier
Message:
  • Update Makefile in soft/tsar_boot: the build directory is now a parameter
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/Makefile

    r992 r1024  
    66HARD_CONFIG_PATH ?= ../../../giet_vm
    77MAKECMDGOALS     ?= none
     8BS_PROC    ?= 0
     9
     10MAKECMDGOALS ?= none
     11BUILD_DIR    ?= build
    812
    913ifneq ($(MAKECMDGOALS),$(filter $(MAKECMDGOALS),clean distclean clean-doc doc))
     
    1923    DEFS   := "-DRESET_SYSTEM_CLK=$(SYSTEM_CLK)"
    2024endif
     25DEFS       := -DBS_PROC=$(BS_PROC)
    2126
    2227LD         := mipsel-unknown-elf-ld
     
    3338DOXYGEN    := doxygen
    3439
    35 BUILD_DIR  := build
    3640HARD_CONFIG:= $(HARD_CONFIG_PATH)/hard_config.h
    3741
     
    6771                  $(subst .c,.o, $(notdir $(C_SRCS))) \
    6872                  $(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
     75TARGET     := $(BUILD_DIR)/../preloader.elf
    7176
    7277# =============================================================================
     
    114119        ./version.sh > $@
    115120
    116 $(BUILD_DIR)/preloader.ld: preloader.ld.in
     121$(BUILD_DIR)/preloader.ld: preloader.ld.in $(HARD_CONFIG)
    117122        $(ECHO) "[   CC    ]     $(notdir $<)"
    118123        $(CC) -x c -P -E -DUSE_DT=$(USE_DT) $(INCLUDE) $< -o $@
Note: See TracChangeset for help on using the changeset viewer.