# 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 even 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 += RTEMS-beatnik

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

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

# Set this when the IOC and build host use different paths
#   to the install location. This may be needed to boot from
#   a Microsoft FTP server say, or on some NFS configurations.
#IOCS_APPL_TOP = </IOC's/absolute/path/to/install/top>

# =======================================================
# Let's install our IOC boot products:
# envPaths and st.cmd
# =======================================================
INSTALL_LOCATION_STARTUP += $(INSTALL_LOCATION)/startup
DIRECTORY_TARGETS += $(INSTALL_LOCATION_STARTUP)

# Tell the linker to use relative paths for libraries found under $(TOP)/lib/<arch>.
# This is needed for shared libraries that are packaged with this application.
# The ORIGIN option is new for base 7.0.3.1.
LINKER_USE_RPATH=ORIGIN

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

# =================================
# Define the archiecture versions
# =================================
LINUX_VERSION=rhel7
LINUXRT_BUILDROOT_VERSION=buildroot-2019.08
LINUX_KERNEL_MODULES=$(PACKAGE_SITE_TOP)/linuxKernel_Modules
KERNEL_DRIVER_HOME=$(LINUX_KERNEL_MODULES)

# =======================================================
# Names/locations of external non-EPICS packages
# =======================================================

# ======================================
# Support for streamdevice
# ======================================
PCRE=YES
PCRE_PACKAGE_NAME = pcre
PCRE_VERSION      = 8.37
PCRE_TOP          = $(PACKAGE_SITE_TOP)/$(PCRE_PACKAGE_NAME)/$(PCRE_VERSION)
PCRE_LIB          = $(PCRE_TOP)/$(PKG_ARCH)/lib
PCRE_INCLUDE      = $(PCRE_TOP)/$(PKG_ARCH)/include

# ========================================
# ADQ digitizer Kernel Module
# ========================================
ADQ_KERNEL_MODULE_PACKAGE_NAME = spd_adq_pci
ADQ_KERNEL_MODULE_VERSION      = R1.23-1.0
ADQ_KERNEL_MODULE_TOP          = $(LINUX_KERNEL_MODULES)/$(ADQ_KERNEL_MODULE_PACKAGE_NAME)/$(ADQ_KERNEL_MODULE_VERSION)
ADQ_KERNEL_MODULE_LIB          = $(ADQ_KERNEL_MODULE_TOP)/$(PKG_ARCH)

# ========================================
# ADQ digitizer vendor library
# ========================================
ADQ_PACKAGE_NAME = teledyne/libadq0
ADQ_VERSION      = 2023.2
ADQ_TOP          = $(PACKAGE_SITE_TOP)/$(ADQ_PACKAGE_NAME)/$(ADQ_VERSION)
ADQ_LIB          = $(ADQ_TOP)/$(PKG_ARCH)/lib
ADQ_INCLUDE      = $(ADQ_TOP)/$(PKG_ARCH)/include

# ========================================
# NDS3 core (for ADQ digitizer)
# ========================================
NDS3_PACKAGE_NAME = nds-core
NDS3_VERSION      = R3.2.0-0.1.0
NDS3_TOP          = $(PACKAGE_SITE_TOP)/$(NDS3_PACKAGE_NAME)/$(NDS3_VERSION)
NDS3_LIB          = $(NDS3_TOP)/$(PKG_ARCH)/lib
NDS3_INCLUDE      = $(NDS3_TOP)/$(PKG_ARCH)/include

# =======================================================
# Support for MRF and SLAC based EVRs
# ========================================
# Kernel Driver header files
KERNEL_MODULE_EVRMA_PACKAGE_NAME=evrmaDriver
KERNEL_MODULE_EVRMA_VERSION=R1.0.10
KERNEL_MODULE_EVRMA_TOP=$(LINUX_KERNEL_MODULES)/$(KERNEL_MODULE_EVRMA_PACKAGE_NAME)/$(KERNEL_MODULE_EVRMA_VERSION)
KERNEL_MODULE_EVRMA_INCLUDE=$(KERNEL_MODULE_EVRMA_TOP)/src

# User Space Library and API:
EVRMA_PACKAGE_NAME=evrma
EVRMA_VERSION=R1.0.10
EVRMA_TOP=$(PACKAGE_SITE_TOP)/$(EVRMA_PACKAGE_NAME)/$(EVRMA_VERSION)
EVRMA_LIB=$(EVRMA_TOP)/$(PKG_ARCH)/lib
EVRMA_INCLUDE=$(EVRMA_TOP)/$(PKG_ARCH)/include

EVRMA_DRIVER_PACKAGE_NAME=evrmaDriver
EVRMA_DRIVER_VERSION=R1.0.9
EVRMA_DRIVER_TOP=$(LINUX_KERNEL_MODULES)/$(EVRMA_DRIVER_PACKAGE_NAME)/$(EVRMA_DRIVER_VERSION)
EVRMA_DRIVER_LIB=$(EVRMA_DRIVER_TOP)/$(PKG_ARCH)

# ========================================
# Support for EVR pci module
# ========================================
EVRMA_MANAGER_PACKAGE_NAME = evrManager
EVRMA_MANAGER_VERSION      = R1.0.10-p1
EVRMA_MANAGER              = $(PACKAGE_SITE_TOP)/$(EVRMA_MANAGER_PACKAGE_NAME)/$(EVRMA_MANAGER_VERSION)
EVRMA_MANAGER_BIN          = $(EVRMA_MANAGER)/$(PKG_ARCH)/bin


# End of file

