zephyr/samples/microkernel/benchmark/boot_time/Makefile
Juan Manuel Cruz 0e1d6a037c Kbuild: Microkernel benchmark test main Makefiles.
The following commits adds the main Makefiles for the microkernel
benchmark test, using parameters to be used by the sanity check.

Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@linux.intel.com>
Change-Id: I7601df92006ca81b3680f6c2b4e25de076512e41
2016-02-05 20:14:07 -05:00

27 lines
923 B
Makefile

TIMO_BASE = $(strip $(subst /samples/microkernel/benchmark/boot_time,,$(shell pwd) ))
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
VPFILE = prj.vpf
KERNEL_TYPE = micro
CONF_OVERLAY = ${CONF_${BSP}}
include ${TIMO_BASE}/Makefile.inc
$(if $(CONF_OVERLAY),,$(error no prj.conf file available))
$(if $(wildcard $(CONF_OVERLAY)),,$(error no $(CONF_OVERLAY) file available))
NO_QUALIFIED_PRJ_CONF_WARNING = $(strip \
no prj.conf for $(BOOTTIME_QUALIFIER) for $(BSP), using default prj.conf \
)
$(if $(filter $(BSP)/prj.conf,$(CONF_OVERLAY)),$(warning *** $(NO_QUALIFIED_PRJ_CONF_WARNING) ***),)
$(info using CONF_OVERLAY = $(CONF_OVERLAY))