zephyr/samples/microkernel/benchmark/boot_time/Makefile

26 lines
821 B
Makefile

BSP ?= generic_pc
# default, best, worst
BOOTTIME_QUALIFIER ?= default
CONF_generic_pc = generic_pc/prj_pentium4_${BOOTTIME_QUALIFIER}.conf
CONF_pentium4 = generic_pc/prj_pentium4_${BOOTTIME_QUALIFIER}.conf
CONF_minuteia = generic_pc/prj.conf
CONF_atom_n28xx = generic_pc/prj_expert_test.conf
CONF_quark = quark/prj.conf
MDEF_FILE = prj.mdef
KERNEL_TYPE = micro
CONF_FILE = ${CONF_${BSP}}
$(if $(CONF_FILE),,$(error no prj.conf file available))
$(if $(wildcard $(CONF_FILE)),,$(error no $(CONF_FILE) file available))
NO_QUALIFIED_PRJ_CONF_WARNING = $(strip \
no prj.conf for $(BOOTTIME_QUALIFIER) and $(BSP), using default prj.conf \
)
$(if $(filter $(BSP)/prj.conf,$(CONF_FILE)),$(warning *** $(NO_QUALIFIED_PRJ_CONF_WARNING) ***),)
$(info using CONF_FILE = $(CONF_FILE))
include ${ZEPHYR_BASE}/Makefile.inc