# CONFIG_SITE

# Make any application-specific changes to the EPICS build
#   configuration variables in this file.
#
# Host/target specific settings can be specified in files named
#   CONFIG_SITE.$(EPICS_HOST_ARCH).Common
#   CONFIG_SITE.Common.$(T_A)
#   CONFIG_SITE.$(EPICS_HOST_ARCH).$(T_A)

# CHECK_RELEASE controls the consistency checking of the support
#   applications pointed to by the RELEASE* files.
# Normally CHECK_RELEASE should be set to YES.
# Set CHECK_RELEASE to NO to disable checking completely.
# Set CHECK_RELEASE to WARN to perform consistency checking but
#   continue building anyway if conflicts are found.
CHECK_RELEASE = YES

# Set this when you only want to compile this application
#   for a subset of the cross-compiled target architectures
#   that Base is built for.
CROSS_COMPILER_TARGET_ARCHS = linuxRT-x86_64

# To install files into a location other than $(TOP) define
#   INSTALL_LOCATION here.
#INSTALL_LOCATION=</path/name/to/install/top>

# Define install location for protocol files
INSTALL_PROTO = $(INSTALL_LOCATION)/db

# Set this when your IOC and the host use different paths
#   to access the application. This will be needed to boot
#   from a Microsoft FTP server or with some NFS mounts.
# You must rebuild in the iocBoot directory for this to
#   take effect.
#IOCS_APPL_TOP = </IOC/path/to/application/top>
#
# =======================================================
# Let's install our IOC boot products:
# envPaths and st.cmd
# =======================================================
INSTALL_LOCATION_STARTUP += $(INSTALL_LOCATION)/startup
DIRECTORY_TARGETS += $(INSTALL_LOCATION_STARTUP)

# =============================
# Build Application Statically
# =============================
SHARED_LIBRARIES=NO
STATIC_BUILD=YES

# =================================
# Define the archiecture versions
# =================================
LINUX_VERSION=rhel6
LINUXRT_BUILDROOT_VERSION=buildroot-2019.08
LINUX_KERNEL_MODULES=$(PACKAGE_SITE_TOP)/linuxKernel_Modules
# =================================
# Common Platform Software Support
# =================================
HAVE_CPSW=YES
CPSW_FRAMEWORK_PACKAGE_NAME = cpsw/framework
CPSW_FRAMEWORK_VERSION      = R4.4.1
CPSW_FRAMEWORK              = $(PACKAGE_SITE_TOP)/$(CPSW_FRAMEWORK_PACKAGE_NAME)/$(CPSW_FRAMEWORK_VERSION)/$(PKG_ARCH)
CPSW_FRAMEWORK_LIB          = $(CPSW_FRAMEWORK)/lib
CPSW_FRAMEWORK_INCLUDE      = $(CPSW_FRAMEWORK)/include

CPSW_FWLOADER_PACKAGE_NAME = cpsw/FirmwareLoader
CPSW_FWLOADER_VERSION      = R1.3.0
CPSW_FWLOADER_TOP          = $(PACKAGE_SITE_TOP)/$(CPSW_FWLOADER_PACKAGE_NAME)/$(CPSW_FWLOADER_VERSION)
CPSW_FWLOADER_BIN          = $(CPSW_FWLOADER_TOP)/$(PKG_ARCH)/bin

# ======================================
# Firmware Description via YAML library
# ======================================
YAML_PACKAGE_NAME = yaml-cpp
YAML_VERSION      = yaml-cpp-0.5.3_boost-1.64.0
YAML_TOP          = $(PACKAGE_SITE_TOP)/$(YAML_PACKAGE_NAME)/$(YAML_VERSION)/$(PKG_ARCH)
YAML_LIB          = $(YAML_TOP)/lib
YAML_INCLUDE      = $(YAML_TOP)/include

# ======================
# Required for CPSW
# =======================
BOOST_PACKAGE_NAME = boost
BOOST_VERSION      = 1.64.0
BOOST_TOP          = $(PACKAGE_SITE_TOP)/$(BOOST_PACKAGE_NAME)/$(BOOST_VERSION)/$(PKG_ARCH)
BOOST_LIB          = $(BOOST_TOP)/lib
BOOST_INCLUDE      = $(BOOST_TOP)/include

# ===============
# ATCA COMMON API
# ===============
COMMONATCA_PACKAGE_NAME=atca/commonATCA
COMMONATCA_VERSION=R1.3.0
COMMONATCA_TOP=$(PACKAGE_SITE_TOP)/$(COMMONATCA_PACKAGE_NAME)/$(COMMONATCA_VERSION)
COMMONATCA_LIB=$(COMMONATCA_TOP)/$(PKG_ARCH)/lib
COMMONATCA_INCLUDE=$(COMMONATCA_TOP)/$(PKG_ARCH)/include


# ===========================
# Required for Timing BSA
# ===========================
BSA_PACKAGE_NAME  = timing/bsa
BSA_VERSION       = R2.6.0
BSA_TOP           = $(PACKAGE_SITE_TOP)/$(BSA_PACKAGE_NAME)/$(BSA_VERSION)/$(PKG_ARCH)
BSA_LIB           = $(BSA_TOP)/lib
BSA_INCLUDE       = $(BSA_TOP)/include

# ======================================
# Required for Timing Pattern Generator
# ======================================
TPG_PACKAGE_NAME = timing/tpg
TPG_VERSION      = R1.8.0
TPG_TOP          = $(PACKAGE_SITE_TOP)/$(TPG_PACKAGE_NAME)/$(TPG_VERSION)/$(PKG_ARCH)
TPG_LIB          = $(TPG_TOP)/lib
TPG_INCLUDE      = $(TPG_TOP)/include

# End of file
