# xxx_SOURCES .. list of specific target sources
# INCLUDES .. additional include directories and defines for user-space
-# Include VxWorks target configuration containig definition of these
-# variables: WIND_BASE CPU TOOL
-include $(MAKERULES_DIR)/config.target
ifndef WRENV
-$(error WRENV is not defined in config.target)
+$(error $(shell $(call canttest,WRENV is not defined in config.target)))
endif
ifndef WRPACKAGE
-$(error WRPACKAGE is not defined in config.target)
+$(error $(shell $(call canttest,WRPACKAGE is not defined in config.target)))
endif
ifndef CPU
-$(error CPU is not defined in config.target)
+$(error $(shell $(call canttest,CPU is not defined in config.target)))
endif
ifndef TOOL
-$(error TOOL is not defined in config.target)
+$(error $(shell $(call canttest,TOOL is not defined in config.target)))
endif
BUILD_DIR_NAME = _build/$(CPU)$(TOOL)
kernel-pass: kernel-mod-pass kernel-modpost-pass
override OMK_SERIALIZE_INCLUDED = y
+MAKEOVERRIDES := $(filter-out OMK_SERIALIZE_INCLUDED=n,$(MAKEOVERRIDES))
+endif
+
+# Checks for OMK tester
+ifdef OMK_TESTSROOT
+default-config-pass-check include-pass-check:
+library-pass-check binary-pass-check:
+ @[ -x "$(shell which $(CC))" ] || $(call canttest,Cannot file compiler: $(CC))
+ @[ -x "$(WRENV)" ] || $(call canttest,Cannot execute wrenv script)
endif