diff --git a/configure/CONFIG_SRC b/configure/CONFIG_SRC index af41de9..91756dd 100644 --- a/configure/CONFIG_SRC +++ b/configure/CONFIG_SRC @@ -41,7 +41,20 @@ PATH_NAME_EPICSVERS:=$(strip $(SRC_VER_BASE)) PATH_NAME_BASE:=base PATH_NANE_MODULES:=modules -INSTALL_LOCATION_EPICS:=$(strip $(INSTALL_LOCATION))/epics/$(ENV_RELEASE_VERS)/$(OS_NAME)-$(OS_VERSION)/$(PATH_NAME_EPICSVERS) + +# ALS Installation Path Contains "epics", +# So, we have to install it within /usr/local/epics/alsu +# Thus, to use the final path as our INSTALL_LOCATION +# We need a logic to check whether the INSTALL_LOCATION +# has "epics" patch or not +# +ifneq (,$(findstring /epics, $(INSTALL_LOCATION))) + INSTALL_LOCATION_CHECK:=$(INSTALL_LOCATION) +else + INSTALL_LOCATION_CHECK:=$(INSTALL_LOCATION)/epics +endif + +INSTALL_LOCATION_EPICS:=$(strip $(INSTALL_LOCATION_CHECK))/$(ENV_RELEASE_VERS)/$(OS_NAME)-$(OS_VERSION)/$(PATH_NAME_EPICSVERS) INSTALL_LOCATION_BASE:=$(INSTALL_LOCATION_EPICS)/$(PATH_NAME_BASE) INSTALL_LOCATION_MODS:=$(INSTALL_LOCATION_EPICS)/$(PATH_NANE_MODULES)