O ?= $(app_srctree)/out AT := @ ifeq ($(BOOTLOADER_CFGFILE),) export BOOTLOADER_CFGFILE=cfg.mak endif include $(top_srctree)/$(BOOTLOADER_CFGFILE) ifeq ($(VERSION_CFGFLIE),) VERSION_CFGFILE=version.cfg endif include $(BUILD_DIR)/$(VERSION_CFGFILE) SOCT_SDK_BINARY_DIR := $(app_srctree)/../binary PLATFORM_DIR ?= $(app_srctree)/../../platform export VENDOR_DIR ?= $(app_srctree)/../.. VENDOR_OPEN_SOURCE_DIR ?= $(app_srctree)/../../open_source export SOURCE_DIR_LINUX_DRV ?= $(app_srctree)/../linux/drv DEVELOPMENT_DIR ?= $(app_srctree)/../development ifneq ($(CFG_SOCT_OUT_DIR),) SOCT_OUT_DIR := $(app_srctree)/out/$(CFG_SOCT_CHIP_TYPE)/$(CFG_SOCT_OUT_DIR) saved-output := $(SOCT_OUT_DIR) $(shell [ -d $(SOCT_OUT_DIR) ] || mkdir -p $(SOCT_OUT_DIR)) SOCT_OUT_DIR := $(shell cd $(SOCT_OUT_DIR) && /bin/pwd) $(if $(SOCT_OUT_DIR),,$(error output directory "$(saved-output)" does not exist)) endif CFG_SOCT_CFLAGS :=