blob: ffe26a0fd2e49a992593a846d360f364e61e9db3 [file] [log] [blame]
BUILD_SYSTEM := $(TOP_ROOT)src/build
include $(BUILD_SYSTEM)/utils.mk
include $(BUILD_SYSTEM)/vars.mk
VARS_OLD := $(foreach V, $(.VARIABLES), \
$(if $(filter-out environment% default automatic,$(origin $V)), $V) )
include $(IMAGE_CONFIG)
VARS_NEW := $(foreach V, $(.VARIABLES), \
$(if $(filter-out environment% default automatic,$(origin $V)), $V) )
VARS_CONFIG := $(filter-out $(VARS_OLD) VARS_OLD VARS_CONFIG,$(VARS_NEW))
ALL_INCDIRS :=
ALL_SRCS :=
ALL_STATICLIBS :=
include $(APP_ROOT)/bootloader/makefile
include $(APP_ROOT)/hsm/makefile
include $(ARCH_ROOT)/arc/makefile
include $(ARCH_ROOT)/memmap/makefile
include $(DRIVER_ROOT)/$(TARGET_IC)/makefile
include $(HOHA_ROOT)/makefile
include $(MW_ROOT)/bootloader/makefile
include $(MW_ROOT)/cli/makefile
include $(MW_ROOT)/cli_impl/makefile
include $(MW_ROOT)/libraries/makefile
# OIL_GEN_PATH is defined after include <app>/makefile
ifeq ($(OS_ERIKA2), true)
# Erika's make variable defined for RT-Druid
ERIKA_FILES := $(OS_ROOT)/erika2
EE_SRCS :=
include $(OIL_GEN_PATH)/makefile
EXTRA_FLAGS += $(addprefix -D, $(EEOPT))
# Functions to test EEOPT and LIB_OPT, useful in conditionals and in or/and expressions
# Examples:
# ifeq ($(call iseeopt,__MULTI__), yes)
# ifeq ($(and $(call iseeopt,__MULTI__), $(call iseeopt,__IRQ_STACK_NEEDED__)), yes)
# ifneq ($(call iseeopt,__MULTI__), yes)
iseeopt = $(if $(filter $1,$(EEOPT)),yes,)
endif
include $(OS_ROOT)/erika2/makefile
OUTDIR := $(TOP_ROOT)out
OBJDIR := $(OUTDIR)/$(TARGET_NAME)_obj
HEADER_DIR := $(OUTDIR)/$(TARGET_NAME)_inc
ALL_INCDIRS += $(OBJDIR) $(MW_ROOT)/libraries/include
ARCH_LD_FILE := link.ld
MAPFILE = $(OUTDIR)/$(TARGET_NAME).map
include $(BUILD_SYSTEM)/toolchain.mk
include $(BUILD_SYSTEM)/rules.mk