Skip to content
Snippets Groups Projects
Commit ccba5128 authored by Simon Rose's avatar Simon Rose
Browse files

Install module-specific configure files

parent d0d3f39c
No related branches found
No related tags found
1 merge request!125E3-1135: Remove sequencer rules
...@@ -247,6 +247,10 @@ SCR = $(if ${SCRIPTS},$(filter-out -none-,${SCRIPTS}),$(wildcard *.cmd *.iocsh)) ...@@ -247,6 +247,10 @@ SCR = $(if ${SCRIPTS},$(filter-out -none-,${SCRIPTS}),$(wildcard *.cmd *.iocsh))
SCR += ${SCRIPTS_${EPICSVERSION}} SCR += ${SCRIPTS_${EPICSVERSION}}
export SCR export SCR
CFGS = ${CONFIGS}
CFGS += ${CONFIGS_${EPICSVERSION}}
export CFGS
# Filter architectures to build using EXCLUDE_ARCHS and ARCH_FILTER. # Filter architectures to build using EXCLUDE_ARCHS and ARCH_FILTER.
ALL_ARCHS = ${EPICS_HOST_ARCH} ${CROSS_COMPILER_TARGET_ARCHS} ALL_ARCHS = ${EPICS_HOST_ARCH} ${CROSS_COMPILER_TARGET_ARCHS}
BUILD_ARCHS = $(filter-out $(addprefix %,${EXCLUDE_ARCHS}),$(filter-out $(addsuffix %,${EXCLUDE_ARCHS}),\ BUILD_ARCHS = $(filter-out $(addprefix %,${EXCLUDE_ARCHS}),$(filter-out $(addsuffix %,${EXCLUDE_ARCHS}),\
...@@ -422,8 +426,6 @@ export BINS ...@@ -422,8 +426,6 @@ export BINS
VLIBS = $(VENDOR_LIBS) $(foreach x,$(VAR_EXTENSIONS),$(VENDOR_LIBS_$x)) VLIBS = $(VENDOR_LIBS) $(foreach x,$(VAR_EXTENSIONS),$(VENDOR_LIBS_$x))
export VLIBS export VLIBS
export CFG
# These variables are written into a .yaml file in the installed module directory to keep track of # These variables are written into a .yaml file in the installed module directory to keep track of
# metadata for which module was compiled. # metadata for which module was compiled.
...@@ -468,7 +470,7 @@ INSTALL_VLIB = ${INSTALL_REV}/lib/$(T_A)/vendor ...@@ -468,7 +470,7 @@ INSTALL_VLIB = ${INSTALL_REV}/lib/$(T_A)/vendor
INSTALL_INCLUDE = ${INSTALL_REV}/include INSTALL_INCLUDE = ${INSTALL_REV}/include
INSTALL_DBD = ${INSTALL_REV}/dbd INSTALL_DBD = ${INSTALL_REV}/dbd
INSTALL_DB = ${INSTALL_REV}/db INSTALL_DB = ${INSTALL_REV}/db
INSTALL_CFG = ${INSTALL_REV}/cfg INSTALL_CONFIG = ${INSTALL_REV}/cfg
INSTALL_DOC = ${MODULE_LOCATION}/doc INSTALL_DOC = ${MODULE_LOCATION}/doc
INSTALL_SCR = ${INSTALL_REV} INSTALL_SCR = ${INSTALL_REV}
...@@ -550,6 +552,7 @@ debug:: ...@@ -550,6 +552,7 @@ debug::
@echo "SOURCES_${OS_CLASS} = ${SOURCES_${OS_CLASS}}" @echo "SOURCES_${OS_CLASS} = ${SOURCES_${OS_CLASS}}"
@echo "SRCS = ${SRCS}" @echo "SRCS = ${SRCS}"
@echo "REQ = ${REQ}" @echo "REQ = ${REQ}"
@echo "CFGS = ${CFGS}"
@echo "LIBOBJS = ${LIBOBJS}" @echo "LIBOBJS = ${LIBOBJS}"
@echo "DBDS = ${DBDS}" @echo "DBDS = ${DBDS}"
@echo "DBDS_${OS_CLASS} = ${DBDS_${OS_CLASS}}" @echo "DBDS_${OS_CLASS} = ${DBDS_${OS_CLASS}}"
...@@ -582,7 +585,7 @@ RELEASE_INCLUDES += -I${EPICS_BASE}/include/compiler/${CMPLR_CLASS} ...@@ -582,7 +585,7 @@ RELEASE_INCLUDES += -I${EPICS_BASE}/include/compiler/${CMPLR_CLASS}
RELEASE_INCLUDES += -I${EPICS_BASE}/include/os/${OS_CLASS} RELEASE_INCLUDES += -I${EPICS_BASE}/include/os/${OS_CLASS}
# Find all sources and set vpath accordingly. # Find all sources and set vpath accordingly.
$(foreach file, ${SRCS} ${TEMPLS} ${DBDINSTALLS} ${SCR}, $(eval vpath $(notdir ${file}) ../$(dir ${file}))) $(foreach file, ${SRCS} ${TEMPLS} ${DBDINSTALLS} ${SCR} ${CFGS}, $(eval vpath $(notdir ${file}) ../$(dir ${file})))
$(foreach file,${VLIBS},$(eval vpath $(notdir ${file}) ../$(dir ${file}))) $(foreach file,${VLIBS},$(eval vpath $(notdir ${file}) ../$(dir ${file})))
# Do not treat %.dbd the same way because it creates a circular dependency # Do not treat %.dbd the same way because it creates a circular dependency
...@@ -627,7 +630,7 @@ endif ...@@ -627,7 +630,7 @@ endif
INSTALL_DBS = $(addprefix ${INSTALL_DB}/,$(notdir ${TEMPLS})) INSTALL_DBS = $(addprefix ${INSTALL_DB}/,$(notdir ${TEMPLS}))
INSTALL_SCRS = $(addprefix ${INSTALL_SCR}/,$(notdir ${SCR})) INSTALL_SCRS = $(addprefix ${INSTALL_SCR}/,$(notdir ${SCR}))
INSTALL_BINS = $(addprefix ${INSTALL_BIN}/,$(notdir ${BINS})) INSTALL_BINS = $(addprefix ${INSTALL_BIN}/,$(notdir ${BINS}))
INSTALL_CFGS = $(CFG:%=${INSTALL_CFG}/%) INSTALL_CONFIGS = $(addprefix ${INSTALL_CONFIG}/,$(notdir ${CFGS}))
debug:: debug::
@echo "INSTALL_LIB = $(INSTALL_LIB)" @echo "INSTALL_LIB = $(INSTALL_LIB)"
...@@ -643,8 +646,8 @@ debug:: ...@@ -643,8 +646,8 @@ debug::
@echo "INSTALL_DBS = $(INSTALL_DBS)" @echo "INSTALL_DBS = $(INSTALL_DBS)"
@echo "INSTALL_SCR = $(INSTALL_SCR)" @echo "INSTALL_SCR = $(INSTALL_SCR)"
@echo "INSTALL_SCRS = $(INSTALL_SCRS)" @echo "INSTALL_SCRS = $(INSTALL_SCRS)"
@echo "INSTALL_CFG = $(INSTALL_CFG)" @echo "INSTALL_CONFIG = $(INSTALL_CONFIG)"
@echo "INSTALL_CFGS = $(INSTALL_CFGS)" @echo "INSTALL_CONFIGS = $(INSTALL_CONFIGS)"
@echo "INSTALL_BIN = $(INSTALL_BIN)" @echo "INSTALL_BIN = $(INSTALL_BIN)"
@echo "INSTALL_BINS = $(INSTALL_BINS)" @echo "INSTALL_BINS = $(INSTALL_BINS)"
@echo "HDR_SUBDIRS = $(HDR_SUBDIRS)" @echo "HDR_SUBDIRS = $(HDR_SUBDIRS)"
...@@ -661,7 +664,7 @@ debug:: ...@@ -661,7 +664,7 @@ debug::
endef endef
$(foreach d,$(HDR_SUBDIRS),$(eval $(call install_subdirs,$d))) $(foreach d,$(HDR_SUBDIRS),$(eval $(call install_subdirs,$d)))
INSTALLS += ${INSTALL_CFGS} ${INSTALL_SCRS} ${INSTALL_HDRS} ${INSTALL_DBDS} ${INSTALL_DBS} ${INSTALL_LIBS} ${INSTALL_VLIBS} ${INSTALL_BINS} ${INSTALL_DEPS} ${INSTALL_META} INSTALLS += ${INSTALL_CONFIGS} ${INSTALL_SCRS} ${INSTALL_HDRS} ${INSTALL_DBDS} ${INSTALL_DBS} ${INSTALL_LIBS} ${INSTALL_VLIBS} ${INSTALL_BINS} ${INSTALL_DEPS} ${INSTALL_META}
install: ${INSTALLS} install: ${INSTALLS}
...@@ -693,7 +696,7 @@ ${INSTALL_SCRS}: $(notdir ${SCR}) ...@@ -693,7 +696,7 @@ ${INSTALL_SCRS}: $(notdir ${SCR})
@echo "Installing scripts $^ to $(@D)" @echo "Installing scripts $^ to $(@D)"
$(INSTALL) -d -m$(BIN_PERMISSIONS) $^ $(@D) $(INSTALL) -d -m$(BIN_PERMISSIONS) $^ $(@D)
${INSTALL_CFGS}: ${CFGS} ${INSTALL_CONFIGS}: $(notdir ${INSTALL_CONFIGS})
@echo "Installing configuration files $^ to $(@D)" @echo "Installing configuration files $^ to $(@D)"
$(INSTALL) -d -m$(INSTALL_PERMISSIONS) $^ $(@D) $(INSTALL) -d -m$(INSTALL_PERMISSIONS) $^ $(@D)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment