Merge upstream 7.0.11 into PSI-7.0

This commit is contained in:
zimoch committed 2026-11-09 22:25:04 +01:00
commit 819b3cb721
48 files changed
+931 -347

No files matched your search

+1 -1
Submodule .ci updated: 261f218e09...b5dc0f98d4.
+1 -1
View File
@@ -48,7 +48,7 @@ EPICS_VERSION = 7
EPICS_REVISION = 0
# EPICS_MODIFICATION must be a number >=0 and <256
EPICS_MODIFICATION = 10
EPICS_MODIFICATION = 11
# EPICS_PATCH_LEVEL must be a number (win32 resource file requirement)
# Not included in the official EPICS version number if zero
+1 -1
View File
@@ -2,7 +2,7 @@
EPICS_CA_MAJOR_VERSION = 4
EPICS_CA_MINOR_VERSION = 15
EPICS_CA_MAINTENANCE_VERSION = 1
EPICS_CA_MAINTENANCE_VERSION = 2
# Development flag, set to zero for release versions
+1 -1
View File
@@ -1,7 +1,7 @@
# Version number for the database APIs and shared library
EPICS_DATABASE_MAJOR_VERSION = 3
EPICS_DATABASE_MINOR_VERSION = 25
EPICS_DATABASE_MINOR_VERSION = 26
EPICS_DATABASE_MAINTENANCE_VERSION = 1
# Development flag, set to zero for release versions
+1 -1
View File
@@ -2,7 +2,7 @@
EPICS_LIBCOM_MAJOR_VERSION = 3
EPICS_LIBCOM_MINOR_VERSION = 25
EPICS_LIBCOM_MAINTENANCE_VERSION = 1
EPICS_LIBCOM_MAINTENANCE_VERSION = 2
# Development flag, set to zero for release versions
+124 -124
View File
@@ -209,9 +209,9 @@ build: $(COMMON_DBS) $(INSTALL_DBS) \
clean: db_clean
db_clean:
@$(RM) $(COMMONS) $(DBDDEPENDS_FILES)
@$(RM) *_registerRecordDeviceDriver.cpp
@$(RM) $(TARGETS)
$(RM) $(COMMONS) $(DBDDEPENDS_FILES)
$(RM) *_registerRecordDeviceDriver.cpp
$(RM) $(TARGETS)
.PHONY: db_clean
@@ -221,91 +221,91 @@ realclean: clean
# Dependency files
%Record.h$(DEP): $(COMMON_DIR)/%Record.dbd $(DBDTORECTYPEH_dep)
@$(RM) $@
@$(DBTORECORDTYPEH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout
@echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout
@$(MV) $@.stdout $@
$(RM) $@
$(DBTORECORDTYPEH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout
echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout
$(MV) $@.stdout $@
%Record.h$(DEP): %Record.dbd $(DBDTORECTYPEH_dep)
@$(RM) $@
@$(DBTORECORDTYPEH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout
@echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout
@$(MV) $@.stdout $@
$(RM) $@
$(DBTORECORDTYPEH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout
echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout
$(MV) $@.stdout $@
%Record.h$(DEP): ../%Record.dbd $(DBDTORECTYPEH_dep)
@$(RM) $@
@$(DBTORECORDTYPEH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout
@echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout
@$(MV) $@.stdout $@
$(RM) $@
$(DBTORECORDTYPEH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout
echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout
$(MV) $@.stdout $@
menu%.h$(DEP): $(COMMON_DIR)/menu%.dbd $(DBDTOMENUH_dep)
@$(RM) $@
@$(DBTOMENUH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout
@echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout
@$(MV) $@.stdout $@
$(RM) $@
$(DBTOMENUH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout
echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout
$(MV) $@.stdout $@
menu%.h$(DEP): menu%.dbd $(DBDTOMENUH_dep)
@$(RM) $@
@$(DBTOMENUH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout
@echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout
@$(MV) $@.stdout $@
$(RM) $@
$(DBTOMENUH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout
echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout
$(MV) $@.stdout $@
menu%.h$(DEP): ../menu%.dbd $(DBDTOMENUH_dep)
@$(RM) $@
@$(DBTOMENUH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout
@echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout
@$(MV) $@.stdout $@
$(RM) $@
$(DBTOMENUH) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout
echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout
$(MV) $@.stdout $@
%.dbd$(DEP): %.dbd.pod
@$(RM) $@
@echo $(COMMONDEP_TARGET): ../Makefile > $@.stdout
@$(MV) $@.stdout $@
$(RM) $@
echo $(COMMONDEP_TARGET): ../Makefile > $@.stdout
$(MV) $@.stdout $@
%.dbd$(DEP): %Include.dbd
@$(RM) $@
@$(DBEXPAND) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout
@echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout
@$(MV) $@.stdout $@
$(RM) $@
$(DBEXPAND) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout
echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout
$(MV) $@.stdout $@
%.dbd$(DEP): ../%Include.dbd
@$(RM) $@
@$(DBEXPAND) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout
@echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout
@$(MV) $@.stdout $@
$(RM) $@
$(DBEXPAND) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout
echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout
$(MV) $@.stdout $@
%.dbd$(DEP): $($*_DBD)
@$(RM) $@
@$(DBEXPAND) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $($*_DBD) > $@.stdout
@echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout
@$(MV) $@.stdout $@
$(RM) $@
$(DBEXPAND) -D $(DBDFLAGS) -o $(COMMONDEP_TARGET) $($*_DBD) > $@.stdout
echo $(COMMONDEP_TARGET): ../Makefile >> $@.stdout
$(MV) $@.stdout $@
%.db$(DEP): %$(SUBST_SUFFIX)
@$(RM) $@
$(RM) $@
$(MSI3_15) -D $(DBFLAGS) -o $(COMMONDEP_TARGET) -S$< $(TEMPLATE_FILENAME) > $@.stdout
@$(MV) $@.stdout $@
$(MV) $@.stdout $@
%.db$(DEP): ../%$(SUBST_SUFFIX)
@$(RM) $@
$(RM) $@
$(MSI3_15) -D $(DBFLAGS) -o $(COMMONDEP_TARGET) -S$< $(TEMPLATE_FILENAME) > $@.stdout
@$(MV) $@.stdout $@
$(MV) $@.stdout $@
%.db$(DEP): %$(TEMPL_SUFFIX)
@$(RM) $@
$(RM) $@
$(MSI3_15) -D $(DBFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout
@$(MV) $@.stdout $@
$(MV) $@.stdout $@
%.db$(DEP): ../%$(TEMPL_SUFFIX)
@$(RM) $@
$(RM) $@
$(MSI3_15) -D $(DBFLAGS) -o $(COMMONDEP_TARGET) $< > $@.stdout
@$(MV) $@.stdout $@
$(MV) $@.stdout $@
%.acf$(DEP): %.acs
@$(RM) $@
@$(ACFDEPENDS_CMD)
$(RM) $@
$(ACFDEPENDS_CMD)
%.acf$(DEP): ../%.acs
@$(RM) $@
@$(ACFDEPENDS_CMD)
$(RM) $@
$(ACFDEPENDS_CMD)
.PRECIOUS: %$(DEP)
@@ -317,17 +317,17 @@ menu%.h$(DEP): ../menu%.dbd $(DBDTOMENUH_dep)
ifdef CREATESUBSTITUTIONS
$(COMMON_DIR)/%$(SUBST_SUFFIX):
$(ECHO) "Create substitutions"
@$(RM) $@
$(RM) $@
$(CREATESUBSTITUTIONS) $@
endif
$(INSTALL_DB)/%$(SUBST_SUFFIX): %$(SUBST_SUFFIX)
$(ECHO) "Installing substitution file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_DB)/%$(SUBST_SUFFIX): ../%$(SUBST_SUFFIX)
$(ECHO) "Installing substitution file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
.PRECIOUS: $(COMMON_DIR)/%$(SUBST_SUFFIX)
@@ -336,11 +336,11 @@ $(INSTALL_DB)/%$(SUBST_SUFFIX): ../%$(SUBST_SUFFIX)
$(INSTALL_DB)/%$(TEMPL_SUFFIX): %$(TEMPL_SUFFIX)
$(ECHO) "Installing template file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_DB)/%$(TEMPL_SUFFIX): ../%$(TEMPL_SUFFIX)
$(ECHO) "Installing template file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
.PRECIOUS: $(COMMON_DIR)/%$(TEMPL_SUFFIX)
@@ -348,34 +348,34 @@ $(INSTALL_DB)/%$(TEMPL_SUFFIX): ../%$(TEMPL_SUFFIX)
# INC files
$(COMMON_DIR)/%Record.h: $(COMMON_DIR)/%Record.dbd $(DBDTORECTYPEH_dep)
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(DBTORECORDTYPEH) $(DBDFLAGS) -o $(notdir $@) $<
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
$(COMMON_DIR)/%Record.h: %Record.dbd $(DBDTORECTYPEH_dep)
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(DBTORECORDTYPEH) $(DBDFLAGS) -o $(notdir $@) $<
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
$(COMMON_DIR)/%Record.h: ../%Record.dbd $(DBDTORECTYPEH_dep)
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(DBTORECORDTYPEH) $(DBDFLAGS) -o $(notdir $@) $<
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
$(COMMON_DIR)/menu%.h: $(COMMON_DIR)/menu%.dbd $(DBDTOMENUH_dep)
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(DBTOMENUH) $(DBDFLAGS) -o $(notdir $@) $<
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
$(COMMON_DIR)/menu%.h: menu%.dbd $(DBDTOMENUH_dep)
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(DBTOMENUH) $(DBDFLAGS) -o $(notdir $@) $<
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
$(COMMON_DIR)/menu%.h: ../menu%.dbd $(DBDTOMENUH_dep)
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(DBTOMENUH) $(DBDFLAGS) -o $(notdir $@) $<
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
.PRECIOUS: $(COMMON_DIR)/%.h
@@ -384,26 +384,26 @@ $(COMMON_DIR)/menu%.h: ../menu%.dbd $(DBDTOMENUH_dep)
$(COMMON_DIR)/bpt%.dbd: bpt%.data
$(ECHO) "Converting data from $<"
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(MAKEBPT) $< $(notdir $@)
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
$(COMMON_DIR)/%.dbd: %.dbd.pod
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(PERL) $(TOOLS)/podRemove.pl -o $(notdir $@) $<
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
$(COMMON_DIR)/%.dbd: %Include.dbd
$(ECHO) "Expanding dbd file $<"
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(DBEXPAND) $(DBDFLAGS) -o $(notdir $@) $<
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
$(COMMON_DIR)/%.dbd: ../%Include.dbd
$(ECHO) "Expanding dbd file $<"
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(DBEXPAND) $(DBDFLAGS) -o $(notdir $@) $<
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
# Make DBDCAT file x depend on x_DBD source files
define DBDCAT_template
@@ -413,32 +413,32 @@ $(foreach name,$(subst .dbd,,$(DBDCAT)), $(eval $(call DBDCAT_template,$(name)))
$(COMMON_DBDCATS):$(COMMON_DIR)/%.dbd:
$(ECHO) "Creating dbd file $(notdir $@)"
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(DBDCAT_COMMAND)
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
$(COMMON_DIR)/%.dbd: $($*_DBD)
$(ECHO) "Creating dbd file $(notdir $@)"
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(DBEXPAND) $(DBDFLAGS) -o $(notdir $@) $($*_DBD)
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
$(INSTALL_DBD)/%: $(COMMON_DIR)/%
$(ECHO) "Installing created dbd file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_DBD)/%: %
$(ECHO) "Installing dbd file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_DBD)/%: ../%
$(ECHO) "Installing dbd file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
define DBD_INSTALLS_template
$$(INSTALL_DBD)/$$(notdir $(1)): $(1)
$(ECHO) "Installing $$@"
@$$(INSTALL) -d -m $$(INSTALL_PERMISSIONS) $$^ $$(INSTALL_DBD)
$$(INSTALL) -d -m $$(INSTALL_PERMISSIONS) $$^ $$(INSTALL_DBD)
endef
$(foreach file, $(DBD_INSTALLS), $(eval $(call DBD_INSTALLS_template, $(file))))
@@ -448,19 +448,19 @@ $(foreach file, $(DBD_INSTALLS), $(eval $(call DBD_INSTALLS_template, $(file))))
# Markdown files
$(COMMON_DIR)/%.md: %.dbd.pod $(DBDTOMD_pl)
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(DBDTOMD) $(DBDFLAGS) -o $(notdir $@) $<
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
$(COMMON_DIR)/%.md: %.pod $(PODTOMD_pl)
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(PODTOMD) -o $(notdir $@) $<
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
$(COMMON_DIR)/%.md: ../%.pl $(PODTOMD_pl)
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(PODTOMD) -o $(notdir $@) $<
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
.PRECIOUS: $(COMMON_DIR)/%.md
@@ -468,30 +468,30 @@ $(COMMON_DIR)/%.md: ../%.pl $(PODTOMD_pl)
# HTML files
$(COMMON_DIR)/%.html: %.dbd.pod $(DBDTOHTML_pl)
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(DBDTOHTML) $(DBDFLAGS) -o $(notdir $@) $<
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
$(COMMON_DIR)/%.html: %.pod $(PODTOHTML_dep)
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(PODTOHTML) -s -s -o $(notdir $@) $<
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
$(COMMON_DIR)/%.html: %.pm $(PODTOHTML_dep)
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(PODTOHTML) -o $(notdir $@) $<
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
$(COMMON_DIR)/%.html: ../%.pm $(PODTOHTML_dep)
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(PODTOHTML) -s -o $(notdir $@) $<
@$(MKDIR) $(dir $@)
@$(MV) $(notdir $@) $@
$(MKDIR) $(dir $@)
$(MV) $(notdir $@) $@
$(COMMON_DIR)/%.html: ../%.pl $(PODTOHTML_dep)
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(PODTOHTML) -s -o $(notdir $@) $<
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
.PRECIOUS: $(COMMON_DIR)/%.html
@@ -500,62 +500,62 @@ $(COMMON_DIR)/%.html: ../%.pl $(PODTOHTML_dep)
$(COMMON_DIR)/%.db: $(COMMON_DIR)/%.edf
$(E2DB) $(E2DB_SYSFLAGS) $(E2DB_FLAGS) -n $*.VAR $<
@$(REPLACEVAR) < $*.VAR > $@.stdout
@$(RM) $*.VAR
@$(MV) $@.stdout $@
$(REPLACEVAR) < $*.VAR > $@.stdout
$(RM) $*.VAR
$(MV) $@.stdout $@
$(COMMON_DIR)/%.db: %$(SUBST_SUFFIX)
$(ECHO) "Inflating database from $< $(TEMPLATE_FILENAME)"
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(MSI3_15) $(DBFLAGS) -o $(notdir $@) -S$< $(TEMPLATE_FILENAME)
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
$(COMMON_DIR)/%.db: ../%$(SUBST_SUFFIX)
$(ECHO) "Inflating database from $< $(TEMPLATE_FILENAME)"
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(MSI3_15) $(DBFLAGS) -o $(notdir $@) -S$< $(TEMPLATE_FILENAME)
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
$(COMMON_DIR)/%.db: %$(TEMPL_SUFFIX)
$(ECHO) "Inflating database from $<"
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(MSI3_15) $(DBFLAGS) -o $(notdir $@) $<
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
$(COMMON_DIR)/%.db: ../%$(TEMPL_SUFFIX)
$(ECHO) "Inflating database from $<"
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(MSI3_15) $(DBFLAGS) -o $(notdir $@) $<
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
$(COMMON_DIR)/%.acf: %.acs
$(ECHO) "Creating acf file $@"
@$(RM) $@
$(RM) $@
$(ACF_CMD)
$(COMMON_DIR)/%.acf: ../%.acs
$(ECHO) "Creating acf file $@"
@$(RM) $@
$(RM) $@
$(ACF_CMD)
.PRECIOUS: $(COMMON_DIR)/%.acf
$(INSTALL_DB)/%: %
$(ECHO) "Installing $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_DB)/%: ../%
$(ECHO) "Installing $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_DB)/%.db: $(COMMON_DIR)/%.db
$(ECHO) "Installing created db file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
define DB_INSTALLS_template
$$(INSTALL_DB)/$$(notdir $(1)): $(1)
$(ECHO) "Installing $$@"
@$$(INSTALL) -d -m $$(INSTALL_PERMISSIONS) $$^ $$(INSTALL_DB)
$$(INSTALL) -d -m $$(INSTALL_PERMISSIONS) $$^ $$(INSTALL_DB)
endef
$(foreach file, $(DB_INSTALLS), $(eval $(call DB_INSTALLS_template, $(file))))
@@ -566,17 +566,17 @@ $(foreach file, $(DB_INSTALLS), $(eval $(call DB_INSTALLS_template, $(file))))
# register record,device,driver support
%_registerRecordDeviceDriver.cpp: $(COMMON_DIR)/%.dbd $(REGRECDEVDRV_dep)
@$(RM) $@
$(RM) $@
$(REGISTERRECORDDEVICEDRIVER) $(REGRDDFLAGS) -o $@ \
$< $(basename $@) $(IOCS_APPL_TOP)
%_registerRecordDeviceDriver.cpp: %.dbd $(REGRECDEVDRV_dep)
@$(RM) $@
$(RM) $@
$(REGISTERRECORDDEVICEDRIVER) $(REGRDDFLAGS) -o $@ \
$< $(basename $@) $(IOCS_APPL_TOP)
%_registerRecordDeviceDriver.cpp: ../%.dbd $(REGRECDEVDRV_dep)
@$(RM) $@
$(RM) $@
$(REGISTERRECORDDEVICEDRIVER) $(REGRDDFLAGS) -o $@ \
$< $(basename $@) $(IOCS_APPL_TOP)
+57 -58
View File
@@ -197,7 +197,7 @@ clean: build_clean
build_clean:
$(ECHO) "Cleaning"
@$(RM) *.i *$(OBJ) *.a \
$(RM) *.i *$(OBJ) *.a \
$(LIBNAME) $(TESTLIBNAME) $(SHRLIBNAME) $(TESTSHRLIBNAME) \
$(DLLSTUB_LIBNAME) $(TESTDLLSTUB_LIBNAME) \
$(LOADABLE_SHRLIBNAME) \
@@ -206,7 +206,7 @@ build_clean:
$(COMMON_INC) $(HDEPENDS_FILES) $(PRODTARGETS) $(TESTPRODTARGETS) \
$(TESTSCRIPTS) $(TAPFILES) $(JUNITFILES)
ifdef RES
@$(RM) *$(RES)
$(RM) *$(RES)
endif
# Sort directories to remove duplicates & make parents first
@@ -245,24 +245,24 @@ $(LOADABLE_SHRLIBNAME): FINAL_DIR=$(INSTALL_SHRLIB)
$(TESTPRODNAME) $(PRODNAME): $(PRODUCT_OBJS) $(PROD_RESS) $(PROD_DEPLIBS)
$(TESTPRODNAME) $(PRODNAME): %$(EXE):
@$(RM) $@
$(RM) $@
$(LINK.cpp)
$(MT_EXE_COMMAND)
%_ctdt$(OBJ): %_ctdt.c
@$(RM) $@
$(RM) $@
$(COMPILE.ctdt) $<
%$(DEP):%.c
@$(RM) $@
$(RM) $@
$(HDEPENDS.c) $<
%$(DEP):%.cc
@$(RM) $@
$(RM) $@
$(HDEPENDS.cpp) $<
%$(DEP):%.cpp
@$(RM) $@
$(RM) $@
$(HDEPENDS.cpp) $<
# Cancel GNUMake's built-in rules, which don't have our _INC
@@ -273,20 +273,20 @@ $(TESTPRODNAME) $(PRODNAME): %$(EXE):
# Include files are order-only prerequisites for compilation:
%$(OBJ): %.c | $(COMMON_INC) $(INSTALL_INC)
@$(RM) $@
$(RM) $@
$(COMPILE.c) -c $<
%$(OBJ): %.cc | $(COMMON_INC) $(INSTALL_INC)
@$(RM) $@
$(RM) $@
$(COMPILE.cpp) -c $<
%$(OBJ): %.cpp | $(COMMON_INC) $(INSTALL_INC)
@$(RM) $@
$(RM) $@
$(COMPILE.cpp) -c $<
# Windows resource compiler
%$(RES): %.rc
@$(RM) $@
$(RM) $@
$(RCCMD)
YACCOPT ?= $($*_YACCOPT)
@@ -295,8 +295,8 @@ YACCOPT ?= $($*_YACCOPT)
# are creating it
#
%.c: %.y
@$(RM) $*.tab.c
@$(RM) $*.tab.h
$(RM) $*.tab.c
$(RM) $*.tab.h
$(YACC) -b$* $(YACCOPT) $<
$(MV) $*.tab.c $*.c
$(if $(findstring -d, $(YACCOPT)),$(MV) $*.tab.h $*.h,)
@@ -306,7 +306,7 @@ YACCOPT ?= $($*_YACCOPT)
%.h: %.c %.y
%.c: %.l
@$(RM) $@
$(RM) $@
$(LEX) $(LEXOPT) -o$@ $<
#---------------------------------------------------------------
@@ -315,7 +315,7 @@ YACCOPT ?= $($*_YACCOPT)
$(LIBNAME) $(TESTLIBNAME): $(LIBRARY_OBJS)
$(filter-out $(DLLSTUB_LIBNAME) $(TESTDLLSTUB_LIBNAME), $(LIBNAME) $(TESTLIBNAME)): $(LIB_PREFIX)%$(LIB_SUFFIX):
@$(RM) $@
$(RM) $@
$(ARCMD)
ifneq ($(strip $(RANLIB)),)
$(RANLIB) $@
@@ -330,20 +330,20 @@ $(SHRLIBNAME) $(DLLSTUB_LIBNAME) $(TESTSHRLIBNAME) $(TESTDLLSTUB_LIBNAME): \
# the target requires a separate stub library file.
$(DLLSTUB_LIBNAME): | $(SHRLIBNAME);
$(SHRLIBNAME): $(SHRLIB_PREFIX)%$(SHRLIB_SUFFIX):
@$(RM) $@
$(RM) $@
$(LINK.shrlib)
$(MT_DLL_COMMAND)
$(TESTDLLSTUB_LIBNAME): | $(TESTSHRLIBNAME);
$(TESTSHRLIBNAME): $(SHRLIB_PREFIX)%$(SHRLIB_SUFFIX):
@$(RM) $@
$(RM) $@
$(LINK.shrlib)
$(MT_DLL_COMMAND)
$(LOADABLE_SHRLIBNAME): $(LIBRARY_OBJS) $(LIBRARY_RESS) $(SHRLIB_DEPLIBS)
$(LOADABLE_SHRLIBNAME): $(LOADABLE_SHRLIB_PREFIX)%$(LOADABLE_SHRLIB_SUFFIX):
@$(RM) $@
$(RM) $@
$(LINK.shrlib)
$(MT_DLL_COMMAND)
@@ -355,33 +355,33 @@ $(LOADABLE_SHRLIBNAME): $(LOADABLE_SHRLIB_PREFIX)%$(LOADABLE_SHRLIB_SUFFIX):
$(MV) $@.stdout $@
%.nm: %$(OBJ)
@$(RM) $@
$(RM) $@
$(NM) $< > $@.stdout
$(MV) $@.stdout $@
%_ctdt.c: %.nm $(TOOLS)/munch.pl
@$(RM) $@
$(RM) $@
$(PERL) $(TOOLS)/munch.pl -o $@ $<
$(MUNCHNAME): %$(MUNCH_SUFFIX): $(MUNCH_DEPENDS) %$(EXE)
@$(RM) $@
$(RM) $@
$(MUNCH_CMD)
$(TESTMUNCHNAME): %$(MUNCH_SUFFIX): $(MUNCH_DEPENDS) %$(EXE)
@$(RM) $@
$(RM) $@
$(MUNCH_CMD)
#---------------------------------------------------------------
# GeSys modules for RTEMS
$(MODNAME): %$(MODEXT): %$(EXE)
@echo "Building module $@"
@$(RM) $@
$(RM) $@
$(LINK.mod)
#---------------------------------------------------------------
# Generate Perl include path module
%ModuleDirs.pm: $(wildcard $(TOP)/configure/RELEASE*)
@$(MKDIR) $(dir $@)
$(MKDIR) $(dir $@)
$(CONVERTRELEASE) -T $(TOP) $@
#---------------------------------------------------------------
@@ -391,8 +391,7 @@ runtests: run-tap-tests
run-tap-tests: | build
ifneq ($(TESTSCRIPTS.t),)
ifdef RUNTESTS_ENABLED
$(ECHO) "$(PROVE) $(TESTSCRIPTS.t)"
@$(PROVE) $(TESTSCRIPTS.t) || $(PROVE_FAILURE)
$(PROVE) $(TESTSCRIPTS.t) || $(PROVE_FAILURE)
endif
endif
@@ -406,7 +405,7 @@ tap-results: $(TAPFILES)
ifneq ($(strip $(TAPFILES)),)
ifdef RUNTESTS_ENABLED
$(ECHO) "$(PROVE.tap) $(TAPFILES)"
@$(PROVE.tap) $(TAPFILES) || $(PROVE_FAILURE)
$(PROVE.tap) $(TAPFILES) || $(PROVE_FAILURE)
endif
CURRENT_TAPFILES := $(wildcard $(TAPFILES))
@@ -425,7 +424,7 @@ endif
$(TAPFILES.t): %.tap: %.t | build
ifdef RUNTESTS_ENABLED
$(ECHO) "$(PERL) $< -tap > $@"
@$(PERL) $< -tap > $@ || $(TAPFILE_FAILURE)
$(PERL) $< -tap > $@ || $(TAPFILE_FAILURE)
endif
$(JUNITFILES.t): %-results.xml: %.tap
@@ -433,13 +432,13 @@ $(JUNITFILES.t): %-results.xml: %.tap
# If there's a perl test script (.plt) available, use it
%.t: ../%.plt
@$(RM) $@
$(RM) $@
$(EXPAND_TOOL) -t $(INSTALL_LOCATION) -a $(T_A) $< $@
# Test programs (.t files) must be written in Perl.
# Generate a perl program to exec the real test binary.
%.t: %$(EXE) $(TOOLS)/makeTestfile.pl
@$(RM) $@
$(RM) $@
$(PERL) $(TOOLS)/makeTestfile.pl $(T_A) $(EPICS_HOST_ARCH) $@ $<
#---------------------------------------------------------------
@@ -456,7 +455,7 @@ $(filter-out $(INSTALL_API_HEADERS), $(INSTALL_INC)) $(HDEPENDS_FILES): \
# How to make one
$(COMMON_DIR)/%API.h: $(TOOLS)/makeAPIheader.pl
@$(RM) $@
$(RM) $@
$(PERL) $(TOOLS)/makeAPIheader.pl -o $@ $(@:$(COMMON_DIR)/%API.h=%)
endif
@@ -473,14 +472,14 @@ endif
define BIN_INSTALLS_template
$$(INSTALL_BIN)/$$(notdir $(1)): $(1)
$(ECHO) "Installing $$(<F)"
@$$(INSTALL) -d -m $$(BIN_PERMISSIONS) $$^ $$(INSTALL_BIN)
$$(INSTALL) -d -m $$(BIN_PERMISSIONS) $$^ $$(INSTALL_BIN)
endef
$(foreach file, $(BIN_INSTALLS), $(eval $(call BIN_INSTALLS_template, $(file))))
define LIB_INSTALLS_template
$$(INSTALL_LIB)/$$(notdir $(1)): $(1)
$(ECHO) "Installing $$(<F)"
@$$(INSTALL) -d -m $$(LIB_PERMISSIONS) $$^ $$(INSTALL_LIB)
$$(INSTALL) -d -m $$(LIB_PERMISSIONS) $$^ $$(INSTALL_LIB)
endef
$(foreach file, $(LIB_INSTALLS), $(eval $(call LIB_INSTALLS_template, $(file))))
@@ -488,32 +487,32 @@ $(foreach file, $(LIB_INSTALLS), $(eval $(call LIB_INSTALLS_template, $(file))))
$(INSTALL_BIN)/%: ../os/$(OS_CLASS)/%
$(ECHO) "Installing os-specific script $@"
@$(INSTALL_PRODUCT) -d -m $(BIN_PERMISSIONS) $< $(INSTALL_BIN)
$(INSTALL_PRODUCT) -d -m $(BIN_PERMISSIONS) $< $(INSTALL_BIN)
$(INSTALL_BIN)/%: %
$(ECHO) "Installing created executable $@"
@$(INSTALL_PRODUCT) -d -m $(BIN_PERMISSIONS) $< $(INSTALL_BIN)
$(INSTALL_PRODUCT) -d -m $(BIN_PERMISSIONS) $< $(INSTALL_BIN)
$(INSTALL_BIN)/%: ../%
$(ECHO) "Installing script $@"
@$(INSTALL_PRODUCT) -d -m $(BIN_PERMISSIONS) $< $(INSTALL_BIN)
$(INSTALL_PRODUCT) -d -m $(BIN_PERMISSIONS) $< $(INSTALL_BIN)
$(INSTALL_LIB)/%$(LIB_SUFFIX): %$(LIB_SUFFIX)
$(ECHO) "Installing library $@"
@$(INSTALL_LIBRARY) -d -m $(LIB_PERMISSIONS) $< $(INSTALL_LIB)
$(INSTALL_LIBRARY) -d -m $(LIB_PERMISSIONS) $< $(INSTALL_LIB)
ifneq ($(LIB_SUFFIX),$(DLLSTUB_SUFFIX))
$(INSTALL_LIB)/%$(DLLSTUB_SUFFIX): %$(DLLSTUB_SUFFIX)
$(ECHO) "Installing DLL stub library $@"
@$(INSTALL_LIBRARY) -d -m $(LIB_PERMISSIONS) $< $(INSTALL_LIB)
$(INSTALL_LIBRARY) -d -m $(LIB_PERMISSIONS) $< $(INSTALL_LIB)
endif # SUFFIX
$(INSTALL_SHRLIBS): $(INSTALL_SHRLIB)/%: %
$(ECHO) "Installing shared library $@"
@$(INSTALL_LIBRARY) -d -m $(SHRLIB_PERMISSIONS) $< $(INSTALL_SHRLIB)
$(INSTALL_LIBRARY) -d -m $(SHRLIB_PERMISSIONS) $< $(INSTALL_SHRLIB)
ifneq ($(SHRLIB_SUFFIX),$(SHRLIB_SUFFIX_BASE))
ifneq (,$(strip $(SHRLIB_VERSION)))
@$(RM) $(subst $(SHRLIB_SUFFIX),$(SHRLIB_SUFFIX_BASE),$@)
$(RM) $(subst $(SHRLIB_SUFFIX),$(SHRLIB_SUFFIX_BASE),$@)
ln -s $< $(subst $(SHRLIB_SUFFIX),$(SHRLIB_SUFFIX_BASE),$@)
endif # SHRLIB_VERSION
else # SHRLIB_SUFFIX
@@ -528,11 +527,11 @@ endif # SHRLIB_SUFFIX
ifneq ($(INSTALL_TCLLIB),$(INSTALL_BIN))
$(INSTALL_TCLLIB)/%: %
$(ECHO) "Installing Tcl library $@"
@$(INSTALL) -d -m $(BIN_PERMISSIONS) $< $(INSTALL_TCLLIB)
$(INSTALL) -d -m $(BIN_PERMISSIONS) $< $(INSTALL_TCLLIB)
$(INSTALL_TCLLIB)/%: ../%
$(ECHO) "Installing Tcl library $@"
@$(INSTALL) -d -m $(BIN_PERMISSIONS) $< $(INSTALL_TCLLIB)
$(INSTALL) -d -m $(BIN_PERMISSIONS) $< $(INSTALL_TCLLIB)
endif
ifneq ($(TCLINDEX),)
@@ -543,10 +542,10 @@ endif
$(INSTALL_LOADABLE_SHRLIBS): $(INSTALL_SHRLIB)/%: %
$(ECHO) "Installing loadable shared library $@"
@$(INSTALL_LIBRARY) -d -m $(SHRLIB_PERMISSIONS) $< $(INSTALL_SHRLIB)
$(INSTALL_LIBRARY) -d -m $(SHRLIB_PERMISSIONS) $< $(INSTALL_SHRLIB)
ifneq ($(LOADABLE_SHRLIB_SUFFIX),$(SHRLIB_SUFFIX_BASE))
ifneq (,$(strip $(LOADABLE_SHRLIB_VERSION)))
@$(RM) $(subst $(LOADABLE_SHRLIB_SUFFIX),$(SHRLIB_SUFFIX_BASE),$@)
$(RM) $(subst $(LOADABLE_SHRLIB_SUFFIX),$(SHRLIB_SUFFIX_BASE),$@)
ln -s $< $(subst $(LOADABLE_SHRLIB_SUFFIX),$(SHRLIB_SUFFIX_BASE),$@)
endif # LOADABLE_SHRLIB_VERSION
endif # LOADABLE_SHRLIB_SUFFIX
@@ -554,60 +553,60 @@ endif # LOADABLE_SHRLIB_SUFFIX
ifneq ($(INSTALL_CONFIGS),)
$(INSTALL_CONFIG)/%: %
$(ECHO) "Installing config file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $(abspath $< $(@D))
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $(abspath $< $(@D))
$(INSTALL_CONFIG)/%: ../%
$(ECHO) "Installing config file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $(abspath $< $(@D))
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $(abspath $< $(@D))
endif
$(INSTALL_INCLUDE)/%: $(COMMON_DIR)/%
$(ECHO) "Installing generated generic include file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_INCLUDE)/%: %
$(ECHO) "Installing generic include file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_INCLUDE)/os/$(OS_CLASS)/%: %
$(ECHO) "Installing OS dependent include file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_INCLUDE)/compiler/$(CMPLR_CLASS)/%: %
$(ECHO) "Installing compiler dependent include file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_DOC)/%: $(COMMON_DIR)/%
$(ECHO) "Installing generated doc $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_DOC)/%: %
$(ECHO) "Installing doc $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_DOC)/%: ../%
$(ECHO) "Installing doc $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_HTML)/$(HTMLS_DIR)/%: $(COMMON_DIR)/%
$(ECHO) "Installing generated html $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_HTML)/$(HTMLS_DIR)/%: %
$(ECHO) "Installing html $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_HTML)/$(HTMLS_DIR)/%: ../%
$(ECHO) "Installing html $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_TEMPLATES_SUBDIR)/%: ../%
$(ECHO) "Installing $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_TEMPLATES_SUBDIR)/%: %
$(ECHO) "Installing $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
include $(CONFIG)/RULES_EXPAND
+5 -5
View File
@@ -70,7 +70,7 @@ $(EXPANDED_COMMON): $(COMMON_DIR)/%: %@
clean: expand_clean
expand_clean:
@$(RM) $(EXPANDED) $(EXPANDED_COMMON)
$(RM) $(EXPANDED) $(EXPANDED_COMMON)
.PRECIOUS: $(EXPANDED) $(EXPANDED_COMMON)
.PHONY: expand_clean
@@ -87,9 +87,9 @@ $1_SNIPPETS += $$(foreach dir, .. $$(SRC_DIRS), \
endif
$(COMMON_DIR)/$1: $$($1_SNIPPETS)
$(ECHO) "Assembling common file $$@ from snippets"
@$(RM) $1
$(RM) $1
$(ASSEMBLE_TOOL) -o $1 $$^
@$(MV) $1 $$@
$(MV) $1 $$@
endef
$(foreach asy, $(COMMON_ASSEMBLIES), \
$(eval $(call COMMON_ASSEMBLY_template,$(strip $(asy)))))
@@ -101,7 +101,7 @@ $1_SNIPPETS += $$(foreach dir, .. $$(SRC_DIRS), \
endif
$1: $$($1_SNIPPETS)
$(ECHO) "Assembling file $$@ from snippets"
@$(RM) $$@
$(RM) $$@
$(ASSEMBLE_TOOL) -o $$@ $$^
endef
$(foreach asy, $(ASSEMBLIES), \
@@ -109,7 +109,7 @@ $(foreach asy, $(ASSEMBLIES), \
define ASSEMBLY_DEP_template
$1$(DEP):
@echo $1: > $$@
echo $1: > $$@
endef
$(foreach asy, $(sort $(COMMON_ASSEMBLIES) $(ASSEMBLIES)), \
$(eval $(call ASSEMBLY_DEP_template,$(strip $(asy)))))
+3 -3
View File
@@ -51,10 +51,10 @@ INSTALLS_$(1) = $$($(1):%=$$(INSTALL_$(1))/%)
$$(INSTALL_$(1))/%: ../%
$(ECHO) "Installing $(1) file $$@"
@$$(INSTALL) -d -m $$(INSTALL_PERMISSIONS) $$< $$(dir $$@)
$$(INSTALL) -d -m $$(INSTALL_PERMISSIONS) $$< $$(dir $$@)
$$(INSTALL_$(1))/%: %
$(ECHO) "Installing $(1) file $$@"
@$$(INSTALL) -d -m $$(INSTALL_PERMISSIONS) $$< $$(dir $$@)
$$(INSTALL) -d -m $$(INSTALL_PERMISSIONS) $$< $$(dir $$@)
buildInstall: $$(INSTALLS_$(1))
endef
@@ -66,6 +66,6 @@ $(foreach type, $(FILE_TYPE), \
clean: file_type_clean
file_type_clean:
@$(RM) $(foreach type, $(FILE_TYPE), $($(type)))
$(RM) $(foreach type, $(FILE_TYPE), $($(type)))
.PHONY : file_type_clean
+3 -3
View File
@@ -52,8 +52,8 @@ $(RELEASE_LOCAL): Makefile $(CONFIG)/CONFIG_SITE \
$(wildcard $(CONFIG)/CONFIG_SITE.local)
$(ECHO) "Creating $@ with"
$(ECHO) " $(PARENT_MODULE) = $(INSTALL_ABSOLUTE)"
@echo $(PARENT_MODULE) = $(INSTALL_ABSOLUTE)> $@.stdout
@$(MV) $@.stdout $@
echo $(PARENT_MODULE) = $(INSTALL_ABSOLUTE)> $@.stdout
$(MV) $@.stdout $@
.PHONY: RELEASE.host
@@ -62,4 +62,4 @@ TESTS_FAILED_LOGS = $(wildcard $(addsuffix /$(TESTS_FAILED_LOG), \
$(LIVE_SUBMODULES)))
runtests test-results: % : | $(addsuffix $(DIVIDER)%, $(LIVE_SUBMODULES))
$(if $(TESTS_FAILED_LOGS), \
@$(CAT) $(TESTS_FAILED_LOGS)>> $(TESTS_FAILED_PATH))
$(CAT) $(TESTS_FAILED_LOGS)>> $(TESTS_FAILED_PATH))
+1 -1
View File
@@ -32,7 +32,7 @@ clean: octave_clean
#This clean works from O.* dirs.
octave_clean:
@$(RM) *.mex *.m
$(RM) *.mex *.m
.PHONY: octave_clean
+5
View File
@@ -149,6 +149,11 @@ OP_SYS_LDLIBS += -lrtemsCom -lCom
OP_SYS_LDLIBS += $(OP_SYS_LDLIBS_$(OS_API)_NET_$(RTEMS_HAS_NETWORKING))
OP_SYS_LDLIBS += -lrtemscpu -lc -lm
OP_SYS_DEPLIBS = rtemsCom
PROD_DEPLIBS += $(foreach lib, $(OP_SYS_DEPLIBS), \
$(firstword $(wildcard $(addsuffix /$(LIB_PREFIX)$(lib)$(LIB_SUFFIX), \
$($(lib)_DIR) $(SHRLIB_SEARCH_DIRS)))))
OP_SYS_LDFLAGS_posix = -u POSIX_Init
OP_SYS_LDFLAGS_score = -u Init \
$(PROJECT_RELEASE)/lib/no-dpmem.rel \
+6
View File
@@ -49,3 +49,9 @@ USE_GESYS = NO
COMMANDLINE_LIBRARY = EPICS
#COMMANDLINE_LIBRARY = LIBTECLA
#COMMANDLINE_LIBRARY = READLINE
#
# Override the microseconds per tick using
#
#OP_SYS_CFLAGS += -DCONFIGURE_MICROSECONDS_PER_TICK=1000
#
+8 -8
View File
@@ -85,7 +85,7 @@ else
ifneq ($(NOTES_PATH),)
$(NOTES_PATH): $(NEW_NOTES) $(MAKENOTES)
@$(RM) $@
$(RM) $@
$(PERL) $(MAKENOTES) -o $@ -V $(EPICS_SHORT_VERSION) \
-d $(abspath $(NEW_DIR)) $(OLD_NOTES)
release-git: $(NOTES_PATH)
@@ -112,13 +112,13 @@ else
ifeq ($(wildcard ../$(NOTES_FILE)),)
# No RELEASE-<ver>.md file, add new-notes to RELEASE_NOTES.md
$(COMMON_DIR)/RELEASE_NOTES.md: $(REL_DEPS) $(NEW_NOTES) $(MAKENOTES)
@$(RM) $@
$(RM) $@
$(PERL) $(MAKENOTES) -o $@ -V $(EPICS_SHORT_VERSION) $(DEV_FLAG) \
-d $(abspath $(NEW_DIR)) $(OLD_NOTES) $(NOTES_PATH)
else
# RELEASE-<ver>.md exists, we're building a tagged version
$(COMMON_DIR)/RELEASE_NOTES.md: ../$(NOTES_FILE)
@$(RM) $@
$(RM) $@
$(PERL) $(MAKENOTES) -o $@ -V $(EPICS_SHORT_VERSION) $(OLD_NOTES)
endif
@@ -126,15 +126,15 @@ else
$(EXPAND_TOOL) -t $(INSTALL_LOCATION) -DHEADER=$* $< $@
$(API_RST_FILES): %-api.rst: ../%-API.rst
@$(RM) $@
@$(ECHO) Creating $@
@$(CP) $< $@
@$(foreach h, $($*_HEADERS), \
$(ECHO) Creating $@
$(RM) $@
$(CP) $< $@
$(foreach h, $($*_HEADERS), \
echo " $h_h.rst" >> $@;)
DOX = doxygen
doxygen: Doxyfile
@$(MKDIR) $(RTD_SRC)
$(MKDIR) $(RTD_SRC)
$(DOXYGEN)
# Use "make sphinx DOX=" to skip running doxygen
+223
View File
@@ -0,0 +1,223 @@
# Release Notes
This document describes the changes that were included in the release of EPICS
noted below. Release entries are now provided in a separate document for each
version in the EPICS 7 series, but all are combined into a single page for
publishing on the EPICS website. Separate release documents are also included
from the older Base 3.15 and 3.16 series.
The external PVA submodules continue to maintain their own release notes files
as before, but the entries describing changes in those submodules since version
7.0.5 have been copied into the associated EPICS Release Notes files; they will
also be manually added to new EPICS Release Notes published in the future.
## EPICS Release 7.0.11
The changes described below have been merged into EPICS
since the last published release.
### CA Server Hardening
In response to several independent reports of security vulnerabilities,
the CA server in the IOC (RSRV) will more strictly validate messages.
**These changes introduce an added risk of interoperability issues with
older CA clients.**
Sites using older versions of libca or CAJ,
or with other CA client implementations,
are advised to do extra testing prior to deploying this release.
### Add GDB Helper Script
A new [Debugging with GDB](gdb.md) document which is linked under the
"General Information" heading in the side-bar provides information on
how to debug C/C++ code in an IOC running on a workstation OS.
This release added a GDB helper script that pretty-prints some of the
common database types.
Tested with GDB 16.3.
Compatible with python 3.
### Fix undefined timestamp for NORD field
When monitoring non-val fields such as `NORD` for several record types updates
are not sent out correctly resulting in incorrect timestamps. This fixes this
for the record types `aai`, `aao`, `subArray`.
Note that support modules that already implement this in the device support
layer will need to be updated to avoid doubled monitor updates. If those modules
are to be built against older versions of EPICS base then they will need to use
the defined macros `AAO_POSTS_NORD`, `AAI_POSTS_NORD`, `SA_POSTS_NORD`, or
`WF_POSTS_NORD` as appropriate to detect this change.
### iocInit wait for local CA links to connect
PR [768](https://github.com/epics-base/epics-base/pull/768)
During iocInit(), wait for local CA links to connect.
With this change, database authors can be certain that
any local CA link is connected prior to `initHookAfterIocRunning`
and `field(PINI, RUNNING)`.
### epicsThreadGetCPUs and callbackParallelThreads
On systems that support it (e.g. recent Linux systems), `epicsThreadGetCPUs()`
now takes the current cpu affinity mask of the calling thread into acount.
That fixes the problem that an IOC which was started with a limited affinity
mask (e.g. using `taskset`) and that called `callbackParallelThreads` with an
argument of 0 in the startup script, had started more parallel callback
threads than it has CPU cores available.
The iocsh function `callbackParallelThreads` now also accepts positive or
negative percentages for `count`, referring to the availabple number of cores
and always rounding the number of used cores down with a minimum of 1.
#### Examples
```text
# use up to 25% of available cpu cores for callback threads
callbackParallelThreads 25%
# keep at least 10% of available cpu cores unused for callback threads
callbackParallelThreads -10%
```
### errlogInit can be run more than once
Previously, running `errlogInit` after initialisation would silently fail. It is
now possible to call `errlogInit` or `errlogInit2` multiple times in order to
increase the buffer size.
Note that it is not possible to _shrink_ the buffer size.
### Expose `dbCreateRecord` in IOC shell
Add a new IOC shell command `dbCreateRecord` allowing for records to be created
from the shell.
Only works when called before `iocInit` and will fail if called afterwards.
The pdbbase variable, a record type, and the new record's name should be passed
as arguments.
Example usage:
```sh
dbCreateRecord(pdbbase, "ai", "example:ai")
iocInit()
```
### AFTC for bi record
The bi record now also supports the AFTC parameter.
The AFTC field sets the time constant on a low-pass filter that delays the
reporting of limit alarms until the signal has been within the alarm range for
that number of seconds (the default AFTC value of zero retains the previous
behavior). One has to make sure that the bi record is processed at a reasonably fast rate
when using AFTC, so that the record can respond to changes in the input signal
within the time constant.
### AFTC and LALM fix for mbbi record
Fixed two issues in the mbbi record where the AFTC and LALM fields were not operating as expected.
### Static network configuration for RTEMS targets using libBSD
GitHub [PR #853](https://github.com/epics-base/epics-base/pull/853)
RTEMS targets built against the libBSD network stack can now use a static
network configuration in addition to DHCP.
When a static IP address and netmask can be read from the board's boot
configuration, the first non-loopback interface is configured with that static
address; otherwise the target falls back to DHCP as before.
The boot configuration is read using the mechanism appropriate to the board:
* MOTLOAD boards read the NVRAM Global Environment Variables (GEV), falling
back to the parameters in the `mot-script-boot` boot script.
* PPCBUG boards read their PPCBUG NVRAM.
* ColdFire (`mcf528x`) boards read their bootloader environment variables.
### Template fix for modules with `cfg/RULES*` files
EPICS modules that installed custom build `RULES*` files into
`$(INSTALL_CFG)` weren't loading them properly when the module
was built with `INSTALL_LOCATION` set in `configure/CONFIG_SITE`
or `configure/CONFIG_SITE.local`.
This release provides a fix in the template `configure/CONFIG`
file to solve the issue for new modules created from the
`makeBaseApp` template.
Maintainers of old modules that provide special build rules for
IOC applications should check their `configure` directory.
Assuming a `configure/CONFIG` file is present, replace it with
the `templates/makeBaseApp/top/configure/CONFIG` file from this
release. If any changes were made to the old file they would
need to be merged into the new file.
If the module's `configure` directory contains a file named
`CONFIG_APP` and no `CONFIG_SITE` file, the application must
date back to before March 2006; the files in the `configure`
directory should all be replaced in this case.
### macOS: Drop the `-flat_namespace` linker flag
It's not clear when this flag was no longer required on macOS, we
tried dropping it
[in 2019](https://github.com/epics-base/epics-base/commit/cbb13bf6b170c6ba6660d594bdd9ca44a5bdaea5)
but had to [restore it](https://github.com/epics-base/epics-base/commit/8c3c5a9731887c6d8b1918394090564af38461b5).
XCode 15 seems a safe version though. See discussion in issue
[#895](https://github.com/epics-base/epics-base/issues/895) for
more details.
### Fix registration of DRVETs
The C++ code generated in an IOC's `RecordDeviceDriver.cpp` file can fail
to compile if the Makefile building the IOC defines the `USE_TYPED_DRVET`
macro. Compiler errors caused by this bug will look something like this:
```
test_registerRecordDeviceDriver.cpp:198:15: error:
typedef 'drvet' cannot be referenced with the 'struct' specifier
198 | static struct drvet *drvsl[] = {
| ^
/epics/base-7.0/include/drvSup.h:38:21: note: declared here
38 | typedef typed_drvet drvet;
| ^
1 error generated.
```
[This PR](https://github.com/epics-base/epics-base/pull/902)
modifies the generated C++ code to resolve that problem, and adds a
driver to the example IOC template to catch regressions.
### pvAccess Module
Changes to this module since the previous release:
#### Release 7.1.9
- pvget: Add `-S` option to `pvget` and `pvmonitor` to
stringify byte arrays (Jeremy Lorelli)
### pvData Module
Changes to this module since the previous release:
#### Release 8.0.9
- Add a max string len param to
epics::pvData::SerializeHelper::deserializeString() (Andrew Johnson)
- Add method
epics::pvData::PVStructure::Formatter::arrayAsString() (Jeremy Lorelli)
### pva2pva Module
Changes to this module since the previous release:
#### Release 1.4.2
- Minor bug fixes
+31 -11
View File
@@ -115,7 +115,7 @@ Reach a consensus that the software is ready to release.
5. Tag the submodule (replace `ANJ` with your initials):
```
git tag -m "ANJ: Tag for EPICS 7.0.11" <submodule-version>
git tag -m "ANJ: Tag for EPICS 7.0.12" <submodule-version>
```
6. Generate documentation for modules with
@@ -221,7 +221,7 @@ Reach a consensus that the software is ready to release.
`new-notes/*.md` files, then deletes the files and prepares a
Git commit to apply those changes permanently to the repository.
Run these commands to generate the `RELEASE-7.0.11.md`
Run these commands to generate the `RELEASE-7.0.12.md`
file and remove the individual release note entry files:
```
@@ -236,7 +236,7 @@ Reach a consensus that the software is ready to release.
```
git status
git diff --staged
git commit -m "Generate RELEASE-7.0.11.md notes file"
git commit -m "Generate RELEASE-7.0.12.md notes file"
```
If you need to undo those Git actions before committing and confirm
@@ -249,7 +249,7 @@ Tag the epics-base module in Git (replace `ANJ` with your initials):
```
cd base-7.0
git tag -m "ANJ: Tagged for release" R7.0.11
git tag -m "ANJ: Tagged for release" R7.0.12
```
Don't push to GitHub yet.
@@ -280,14 +280,14 @@ continuous integration:
```
cd base-7.0
./.tools/make-tar.sh R7.0.11 ../base-7.0.11.tar.gz base-7.0.11/
./.tools/make-tar.sh R7.0.12 ../base-7.0.12.tar.gz base-7.0.12/
```
Create a GPG signature file of the tarfile as follows:
```
cd ..
gpg --armor --sign --detach-sig base-7.0.11.tar.gz
gpg --armor --sign --detach-sig base-7.0.12.tar.gz
```
**Release Manager:**
@@ -302,9 +302,29 @@ git push --follow-tags upstream 7.0
----
### Build the tagged documentation
The read-the-docs build process isn't automatic when the tag doesn't
point to the last commit in a push, so building the release docs
must be triggered by hand after pushing as follows:
- Go to [read-the-docs versions page](https://app.readthedocs.org/projects/epics-base/)
- Look for a R7.0.12 version tag in the list. If present with a
green check-mark it has already been built: click on the Book icon
("View documentation for ...") link to check the result.
- If R7.0.12 is not present, click the "+ Add version" button and
type `7.0.12` into the "Search versions" box there, then click that
entry to bring up an "Edit version" dialog.
- I like to edit the suggested "Slug" to remove the `r` from the
start.
- Click the "Active" slider to turn that on, then "Update version".
- Wait for the documentation to be built, and check the result.
----
### Publish the Release
These stages don't have to happen in this particular order.
The steps below don't have to happen in this particular order.
#### A. Publish to epics.anl.gov
@@ -333,14 +353,14 @@ updating the front page and sidebar.
Add an entry to the website News page, linking to the new version
webpage.
### B. Publish to epics-controls.org
#### B. Publish to epics-controls.org
**Website Editor:**
Upload the tar file and its `.asc` signature file to the
epics-controls web-server.
```
scp base-7.0.11.tar.gz base-7.0.11.tar.gz.asc epics-controls:download/base
scp base-7.0.12.tar.gz base-7.0.12.tar.gz.asc epics-controls:download/base
```
**Website Editor:**
@@ -355,11 +375,11 @@ Not covered in the instructions on the website: Go to Posts, find a previous
release and use "Duplicate Post", then edit the result and publish it.
This generates the News item.
### C. Publish to GitHub
#### C. Publish to GitHub
**Release Manager:**
Go to the GitHub
[Create release from tag R7.0.11](https://github.com/epics-base/epics-base/releases/new?tag=R7.0.11)
[Create release from tag R7.0.12](https://github.com/epics-base/epics-base/releases/new?tag=R7.0.12)
page. Upload the tar file and its `.asc` signature file to the new
GitHub release page, or just drag-n-drop them into the page. Copy/paste
the text from the previous release and edit. Submit.
-11
View File
@@ -1,11 +0,0 @@
### Fix undefined timestamp for NORD field
When monitoring non-val fields such as `NORD` for several record types updates
are not sent out correctly resulting in incorrect timestamps. This fixes this
for the record types `aai`, `aao`, `subArray`.
Note that support modules that already implement this in the device support
layer will need to be updated to avoid doubled monitor updates. If those modules
are to be built against older versions of EPICS base then they will need to use
the defined macros `AAO_POSTS_NORD`, `AAI_POSTS_NORD`, `SA_POSTS_NORD`, or
`WF_POSTS_NORD` as appropriate to detect this change.
-8
View File
@@ -1,8 +0,0 @@
### iocInit wait for local CA links to connect
PR [768](https://github.com/epics-base/epics-base/pull/768)
During iocInit(), wait for local CA links to connect.
With this change, database authors can be certain that
any local CA link is connected prior to `initHookAfterIocRunning`
and `field(PINI, RUNNING)`.
-21
View File
@@ -1,21 +0,0 @@
### epicsThreadGetCPUs and callbackParallelThreads
On systems that support it (e.g. recent Linux systems), `epicsThreadGetCPUs()`
now takes the current cpu affinity mask of the calling thread into acount.
That fixes the problem that an IOC which was started with a limited affinity
mask (e.g. using `taskset`) and that called `callbackParallelThreads` with an
argument of 0 in the startup script, had started more parallel callback
threads than it has CPU cores available.
The iocsh function `callbackParallelThreads` now also accepts positive or
negative percentages for `count`, referring to the availabple number of cores
and always rounding the number of used cores down with a minimum of 1.
#### Examples
```text
# use up to 25% of available cpu cores for callback threads
callbackParallelThreads 25%
# keep at least 10% of available cpu cores unused for callback threads
callbackParallelThreads -10%
```
+15
View File
@@ -0,0 +1,15 @@
### Hardening of the iocsh command `dbReportDeviceConfig`
This command had a tiny chance that its internal buffers could overflow and
write over parts of the stack, although that required an unusually long device
support name and huge engineering unit limits. Both these issues have been
remediated, and the output format of the report improved.
A header line is now shown (in BOLD) at the top of the report.
`DTYP` strings in the 3rd column are now shortened by replacing characters from
the middle of the string with an ellipsis `...`.
Any ai and ao records with `LINEAR` conversions have their `EGUL` and `EGUF`
fields shown in a `cvt(EGUL, EGUF)` format after the record name.
These two values are now displayed with limited precision.
+1 -1
View File
@@ -81,5 +81,5 @@ ifdef T_A
$(INSTALL_PERL_MODULES)/$(PERL_ARCHPATH)/%: %
$(ECHO) "Installing loadable shared library $@"
@$(INSTALL_LIBRARY) -d -m $(LIB_PERMISSIONS) $< $(INSTALL_PERL_MODULES)/$(PERL_ARCHPATH)
$(INSTALL_LIBRARY) -d -m $(LIB_PERMISSIONS) $< $(INSTALL_PERL_MODULES)/$(PERL_ARCHPATH)
endif
+3 -3
View File
@@ -15,16 +15,16 @@ THESE_RULES := $(IOCDIR)/db/RULES
dbCommon.h$(DEP): $(COMMON_DIR)/dbCommonRecord.dbd $(THESE_RULES) \
$(DBDTORECTYPEH_dep)
@$(DBTORECORDTYPEH) -D -I ../db -I $(COMMON_DIR) -o $(COMMONDEP_TARGET) $< > $@.stdout
$(DBTORECORDTYPEH) -D -I ../db -I $(COMMON_DIR) -o $(COMMONDEP_TARGET) $< > $@.stdout
$(MV) $@.stdout $@
$(COMMON_DIR)/dbCommonRecord.html: ../db/dbCommon.dbd.pod
$(COMMON_DIR)/dbCommon.h: $(COMMON_DIR)/dbCommonRecord.dbd $(THESE_RULES) \
$(DBDTORECTYPEH_dep)
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(DBTORECORDTYPEH) -I ../db -I $(COMMON_DIR) -o $(notdir $@) $<
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
$(COMMON_DIR)/menuGlobal.dbd: $(IOCDIR)/db/Makefile $(THESE_RULES)
+31 -23
View File
@@ -22,6 +22,7 @@
#include "dbDefs.h"
#include "dbmf.h"
#include "ellLib.h"
#include "epicsMath.h"
#include "epicsPrint.h"
#include "epicsStdio.h"
#include "epicsStdlib.h"
@@ -3591,11 +3592,12 @@ void dbReportDeviceConfig(dbBase *pdbbase, FILE *report)
status = dbFirstRecord(pdbentry);
while (!status) {
int ilink;
int titlesPrinted = 0;
for (ilink=0; ilink<nlinks; ilink++) {
char linkValue[messagesize];
char dtypValue[50];
char cvtValue[40];
char dtypValue[31];
char cvtValue[60] = "";
struct link *plink;
int linkType;
@@ -3629,29 +3631,35 @@ void dbReportDeviceConfig(dbBase *pdbbase, FILE *report)
if (status)
break; /* Next record type */
strcpy(dtypValue, dbGetString(pdbentry));
status = dbFindField(pdbentry, "LINR");
if (status) {
cvtValue[0] = 0;
{
const char *dtyp = dbGetString(pdbentry);
const size_t maxlen = sizeof(dtypValue) - 1;
size_t srclen = strlen(dtyp);
if (srclen > maxlen) /* elide the middle */
epicsSnprintf(dtypValue, sizeof(dtypValue), "%.*s...%s",
(int) (maxlen - 3) / 2, dtyp,
dtyp + srclen - (maxlen - 2) / 2);
else
strcpy(dtypValue, dtyp);
}
else {
if (strcmp(dbGetString(pdbentry), "LINEAR") != 0) {
cvtValue[0] = 0;
}
else {
strcpy(cvtValue,"cvt(");
status = dbFindField(pdbentry, "EGUL");
if (!status)
strcat(cvtValue, dbGetString(pdbentry));
status = dbFindField(pdbentry, "EGUF");
if (!status) {
strcat(cvtValue, ",");
strcat(cvtValue, dbGetString(pdbentry));
}
strcat(cvtValue, ")");
}
if (!dbFindField(pdbentry, "LINR") &&
strcmp(dbGetString(pdbentry), "LINEAR") == 0) {
epicsFloat64 egul = epicsNAN, eguf = epicsNAN;
if (!dbFindField(pdbentry, "EGUL") &&
pdbentry->pflddes->field_type == DBF_DOUBLE)
egul = *(epicsFloat64 *) pdbentry->pfield;
if (!dbFindField(pdbentry, "EGUF") &&
pdbentry->pflddes->field_type == DBF_DOUBLE)
eguf = *(epicsFloat64 *) pdbentry->pfield;
epicsSnprintf(cvtValue, sizeof(cvtValue),
"\n cvt(%.8g, %.8g)", egul, eguf);
}
fprintf(stream,"%-8s %-20s %-20s %-20s %-s\n",
if (!titlesPrinted++)
fprintf(stream, ANSI_BOLD("%-8s %-20s %-30s %-20s") "\n",
"Type", "INP/OUT", "DTYP", "Record");
fprintf(stream,"%-8s %-20s %-30s %s %s\n",
bus[linkType], linkValue, dtypValue,
dbGetRecordName(pdbentry), cvtValue);
break;
+1 -1
View File
@@ -378,7 +378,7 @@ static int yyerror(char *str)
dbIncludePrint();
yyFailed = TRUE;
}
fprintf(stderr, "\n %d | %s\n", pinputFileNow->line_num, my_buffer);
fprintf(stderr, "\n %d | %s\n", pinputFileNow ? pinputFileNow->line_num : -1, my_buffer);
return(0);
}
static long pvt_yy_parse(void)
+1 -1
View File
@@ -8,7 +8,7 @@
# This is a Makefile fragment, see src/ioc/Makefile.
stdRecords.dbd$(DEP): $(STDDIR)/rec/Makefile $(STDDIR)/rec/RULES
@echo "$(COMMON_DIR)/stdRecords.dbd:" > $@.stdout
echo "$(COMMON_DIR)/stdRecords.dbd:" > $@.stdout
$(MV) $@.stdout $@
$(COMMON_DIR)/stdRecords.dbd: $(STDDIR)/rec/Makefile $(STDDIR)/rec/RULES
+43 -11
View File
@@ -23,6 +23,7 @@
#include "dbDefs.h"
#include "epicsPrint.h"
#include "epicsMath.h"
#include "alarm.h"
#include "callback.h"
#include "dbAccess.h"
@@ -40,6 +41,9 @@
#undef GEN_SIZE_OFFSET
#include "epicsExport.h"
/* Hysteresis for alarm filtering: 1-1/e */
#define THRESHOLD 0.6321
/* Create RSET - Record Support Entry Table*/
#define report NULL
#define initialize NULL
@@ -80,7 +84,7 @@ rset biRSET={
};
epicsExportAddress(rset,biRSET);
static void checkAlarms(biRecord *);
static void checkAlarms(biRecord *, epicsTimeStamp *);
static void monitor(biRecord *);
static long readValue(biRecord *);
@@ -119,6 +123,7 @@ static long process(struct dbCommon *pcommon)
bidset *pdset = (bidset *)(prec->dset);
long status;
unsigned char pact=prec->pact;
epicsTimeStamp timeLast;
if( (pdset==NULL) || (pdset->read_bi==NULL) ) {
prec->pact=TRUE;
@@ -126,6 +131,8 @@ static long process(struct dbCommon *pcommon)
return(S_dev_missingSup);
}
timeLast = prec->time;
status=readValue(prec); /* read the new value */
/* check if device support set pact */
if ( !pact && prec->pact ) return(0);
@@ -140,7 +147,7 @@ static long process(struct dbCommon *pcommon)
}
else if(status==2) status=0;
/* check for alarms */
checkAlarms(prec);
checkAlarms(prec, &timeLast);
/* check event list */
monitor(prec);
/* process the forward scan link record */
@@ -222,27 +229,52 @@ static long put_enum_str(const DBADDR *paddr, const char *pstring)
}
static void checkAlarms(biRecord *prec)
static void checkAlarms(biRecord *prec, epicsTimeStamp *timeLast)
{
epicsEnum16 asev;
unsigned short val = prec->val;
if(prec->udf == TRUE){
recGblSetSevr(prec,UDF_ALARM,prec->udfs);
return;
}
if(val>1)return;
/* check for state alarm */
if (val == 0){
recGblSetSevr(prec,STATE_ALARM,prec->zsv);
}else{
recGblSetSevr(prec,STATE_ALARM,prec->osv);
if (val == 0) {
asev = prec->zsv;
} else {
asev = prec->osv;
}
/* check for cos alarm */
unsigned short alarm = asev; /* Initialize alarm with current state severity */
double aftc = prec->aftc;
double afvl = 0;
if (aftc > 0) {
afvl = prec->afvl;
if (afvl == 0) {
afvl = (double) alarm;
} else {
double t = epicsTimeDiffInSeconds(&prec->time, timeLast);
double alpha = aftc / (t + aftc);
afvl = alpha * afvl +
((afvl > 0) ? (1.0 - alpha) : (alpha - 1.0)) * alarm;
if (afvl - floor(afvl) > THRESHOLD)
afvl = -afvl;
alarm = abs((int)floor(afvl));
}
}
prec->afvl = afvl;
asev = alarm;
recGblSetSevr(prec,STATE_ALARM,asev);
/* check for cos alarm */
if(val == prec->lalm) return;
recGblSetSevr(prec,COS_ALARM,prec->cosv);
recGblSetSevr(prec,COS_ALARM,prec->cosv);
prec->lalm = val;
return;
}
+19 -2
View File
@@ -107,13 +107,20 @@ C<MAJOR>. The ZSV field holds the severity for the zero state; OSV, for
the one state. COSV causes an alarm whenever the state changes between
0 and 1 and the severity is configured as MINOR or MAJOR.
Since 7.0.11, the alarm filter time constant (AFTC) is available for the bi record.
The AFTC field sets the time constant on a low-pass filter that delays the
reporting of limit alarms until the signal has been within the alarm range for
that number of seconds (the default AFTC value of zero retains the previous
behavior). Be sure that the bi record is processed at a reasonably fast rate
when using AFTC, so that the record can respond to changes in the input signal
within the time constant.
See L<Alarm Specification|https://docs.epics-controls.org/en/latest/process-database/EPICS_Process_Database_Concepts.html#alarm-specification>
for a complete explanation of record alarms and of the standard fields.
L<Alarm Fields|dbCommonRecord/Alarm Fields> lists other fields related
to alarms that are common to all record types.
=fields ZSV, OSV, COSV
=fields ZSV, OSV, COSV, AFTC
=head3 Run-time Parameters
These parameters are used by the run-time code for processing the binary
@@ -220,6 +227,16 @@ is not equal to VAL.
special(SPC_NOMOD)
interest(3)
}
field(AFTC, DBF_DOUBLE) {
prompt("Alarm Filter Time Constant")
promptgroup("70 - Alarm")
interest(1)
}
field(AFVL, DBF_DOUBLE) {
prompt("Alarm Filter Value")
special(SPC_NOMOD)
interest(3)
}
=head3 Simulation Mode Parameters
+3 -3
View File
@@ -336,15 +336,15 @@ static void checkAlarms(mbbiRecord *prec, epicsTimeStamp *timeLast)
alarm = abs((int)floor(afvl));
}
}
prec->afvl = afvl;
asev = alarm;
recGblSetSevr(prec, STATE_ALARM, asev);
/* Check for COS alarm */
if (val == prec->lalm ||
recGblSetSevr(prec, COS_ALARM, prec->cosv))
if (val == prec->lalm)
return;
recGblSetSevr(prec, COS_ALARM, prec->cosv);
prec->lalm = val;
}
+2 -2
View File
@@ -60,5 +60,5 @@ CLEANS += epics-base-$(T_A).pc@
include $(TOP)/configure/RULES
epics-base-$(T_A).pc@: ../epics-base-arch.pc@
@$(RM) $@
@$(CP) $< $@
$(RM) $@
$(CP) $< $@
+7
View File
@@ -202,6 +202,13 @@ testHarness_SRCS += simmTest_registerRecordDeviceDriver.cpp
TESTFILES += $(COMMON_DIR)/simmTest.dbd $(COMMON_DIR)/simmTest.db
TESTS += simmTest
TESTPROD_HOST += mbbiTest
mbbiTest_SRCS += mbbiTest.c
mbbiTest_SRCS += recTestIoc_registerRecordDeviceDriver.cpp
testHarness_SRCS += mbbiTest.c
TESTFILES += ../mbbiTest.db
TESTS += mbbiTest
TESTPROD_HOST += mbbioDirectTest
mbbioDirectTest_SRCS += mbbioDirectTest.c
mbbioDirectTest_SRCS += recTestIoc_registerRecordDeviceDriver.cpp
+65 -1
View File
@@ -9,6 +9,7 @@
#include "errlog.h"
#include "dbAccess.h"
#include "menuAlarmSevr.h"
#include "menuScan.h"
void recTestIoc_registerRecordDeviceDriver(struct dbBase *);
@@ -96,9 +97,71 @@ static void test_alarm(void){
// number of tests = 13
}
static void test_aftc(void){
const double aftc = 3.0;
testMonitor* test_mon = NULL;
epicsTimeStamp startTime;
epicsTimeStamp endTime;
double diffTime = 0;
/* set soft channel */
testdbPutFieldOk("test_bi_rec2.DTYP", DBF_STRING, "Soft Channel");
testdbPutFieldOk("test_bi_rec2.INP", DBF_STRING, "test_bi_link_rec2.VAL");
testdbPutFieldOk("test_bi_link_rec2.FLNK", DBF_STRING, "test_bi_rec2");
/* set alarm parameters */
testdbPutFieldOk("test_bi_rec2.ZSV", DBF_SHORT, menuAlarmSevrMINOR);
testdbPutFieldOk("test_bi_rec2.OSV", DBF_SHORT, menuAlarmSevrMAJOR);
/* set start VAL to FALSE (NO_ALARM) */
testdbPutFieldOk("test_bi_link_rec2.VAL", DBF_SHORT, FALSE);
/* test AFTC using a monitor and time stamps */
testdbPutFieldOk("test_bi_rec2.AFTC", DBF_DOUBLE, aftc);
testdbPutFieldOk("test_bi_rec2.SCAN", DBF_SHORT, menuScan_1_second);
/* set VAL to TRUE (MAJOR alarm) */
testdbPutFieldOk("test_bi_link_rec2.VAL", DBF_SHORT, TRUE);
/* Create test monitor for alarm SEVR */
test_mon = testMonitorCreate("test_bi_rec2.VAL", DBE_ALARM, 0);
/* Get start time */
epicsTimeGetCurrent(&startTime);
/* wait for monitor to trigger on the new alarm status */
testMonitorWait(test_mon);
epicsTimeGetCurrent(&endTime);
/* Verify that alarm status is now MAJOR */
testdbGetFieldEqual("test_bi_rec2.SEVR", DBF_SHORT, menuAlarmSevrMAJOR);
/* set VAL back to FALSE (NO_ALARM) */
testdbPutFieldOk("test_bi_link_rec2.VAL", DBF_SHORT, FALSE);
/* Create test monitor for alarm SEVR */
test_mon = testMonitorCreate("test_bi_rec2.VAL", DBE_ALARM, 0);
/* Get start time */
epicsTimeGetCurrent(&startTime);
/* wait for monitor to trigger on the new alarm status */
testMonitorWait(test_mon);
epicsTimeGetCurrent(&endTime);
/* Verify that alarm status is now NO_ALARM */
testdbGetFieldEqual("test_bi_rec2.SEVR", DBF_SHORT, menuAlarmSevrMINOR);
/* Verify that time is at least equal to configured aftc */
diffTime = epicsTimeDiffInSeconds(&endTime, &startTime);
testOk(diffTime >= aftc, "AFTC time %lf", diffTime);
// number of tests = 13
}
MAIN(biTest) {
testPlan(6+6+11+13);
testPlan(6+6+11+13+13);
testdbPrepare();
testdbReadDatabase("recTestIoc.dbd", NULL, NULL);
@@ -114,6 +177,7 @@ MAIN(biTest) {
test_raw_soft_input();
test_operator_display();
test_alarm();
test_aftc();
testIocShutdownOk();
testdbCleanup();
+7
View File
@@ -4,3 +4,10 @@ record(bi, "test_bi_rec") {
record(bo, "test_bi_link_rec") {
}
record(bi, "test_bi_rec2") {
}
record(bo, "test_bi_link_rec2") {
}
+201
View File
@@ -0,0 +1,201 @@
/*************************************************************************\
* Copyright (c) 2026 Edmund Blomley
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/
#include "dbUnitTest.h"
#include "testMain.h"
#include "errlog.h"
#include "dbAccess.h"
#include "menuAlarmSevr.h"
#include "menuScan.h"
void recTestIoc_registerRecordDeviceDriver(struct dbBase *);
static void test_soft_input(void){
/* set soft channel */
testdbPutFieldOk("test_mbbi_rec.DTYP", DBF_STRING, "Soft Channel");
testdbPutFieldOk("test_mbbi_rec.INP", DBF_STRING, "test_mbbi_link_rec.VAL");
testdbPutFieldOk("test_mbbi_link_rec.FLNK", DBF_STRING, "test_mbbi_rec");
/* set VAL to on linked record */
testdbPutFieldOk("test_mbbi_link_rec.VAL", DBF_SHORT, 1);
/* verify that this record VAL is updated but RVAL is not */
testdbGetFieldEqual("test_mbbi_rec.VAL", DBF_SHORT, 1);
testdbGetFieldEqual("test_mbbi_rec.RVAL", DBF_SHORT, 0);
// number of tests = 6
}
static void test_operator_display(void){
/* set operator display parameters */
testdbPutFieldOk("test_mbbi_rec.ZRST", DBF_STRING, "ZRST_TEST");
testdbPutFieldOk("test_mbbi_rec.ONST", DBF_STRING, "ONST_TEST");
testdbPutFieldOk("test_mbbi_rec.TWST", DBF_STRING, "TWST_TEST");
testdbPutFieldOk("test_mbbi_rec.THST", DBF_STRING, "THST_TEST");
testdbPutFieldOk("test_mbbi_rec.FRST", DBF_STRING, "FRST_TEST");
testdbPutFieldOk("test_mbbi_rec.FVST", DBF_STRING, "FVST_TEST");
testdbPutFieldOk("test_mbbi_rec.SXST", DBF_STRING, "SXST_TEST");
testdbPutFieldOk("test_mbbi_rec.SVST", DBF_STRING, "SVST_TEST");
testdbPutFieldOk("test_mbbi_rec.EIST", DBF_STRING, "EIST_TEST");
testdbPutFieldOk("test_mbbi_rec.NIST", DBF_STRING, "NIST_TEST");
testdbPutFieldOk("test_mbbi_rec.TEST", DBF_STRING, "TEST_TEST");
testdbPutFieldOk("test_mbbi_rec.ELST", DBF_STRING, "ELST_TEST");
testdbPutFieldOk("test_mbbi_rec.TVST", DBF_STRING, "TVST_TEST");
testdbPutFieldOk("test_mbbi_rec.TTST", DBF_STRING, "TTST_TEST");
testdbPutFieldOk("test_mbbi_rec.FTST", DBF_STRING, "FTST_TEST");
testdbPutFieldOk("test_mbbi_rec.FFST", DBF_STRING, "FFST_TEST");
testdbPutFieldOk("test_mbbi_rec.DESC", DBF_STRING, "DESC_TEST");
/* verify operator display parameters */
testdbGetFieldEqual("test_mbbi_rec.ZRST", DBF_STRING, "ZRST_TEST");
testdbGetFieldEqual("test_mbbi_rec.ONST", DBF_STRING, "ONST_TEST");
testdbGetFieldEqual("test_mbbi_rec.TWST", DBF_STRING, "TWST_TEST");
testdbGetFieldEqual("test_mbbi_rec.THST", DBF_STRING, "THST_TEST");
testdbGetFieldEqual("test_mbbi_rec.FRST", DBF_STRING, "FRST_TEST");
testdbGetFieldEqual("test_mbbi_rec.FVST", DBF_STRING, "FVST_TEST");
testdbGetFieldEqual("test_mbbi_rec.SXST", DBF_STRING, "SXST_TEST");
testdbGetFieldEqual("test_mbbi_rec.SVST", DBF_STRING, "SVST_TEST");
testdbGetFieldEqual("test_mbbi_rec.EIST", DBF_STRING, "EIST_TEST");
testdbGetFieldEqual("test_mbbi_rec.NIST", DBF_STRING, "NIST_TEST");
testdbGetFieldEqual("test_mbbi_rec.TEST", DBF_STRING, "TEST_TEST");
testdbGetFieldEqual("test_mbbi_rec.ELST", DBF_STRING, "ELST_TEST");
testdbGetFieldEqual("test_mbbi_rec.TVST", DBF_STRING, "TVST_TEST");
testdbGetFieldEqual("test_mbbi_rec.TTST", DBF_STRING, "TTST_TEST");
testdbGetFieldEqual("test_mbbi_rec.FTST", DBF_STRING, "FTST_TEST");
testdbGetFieldEqual("test_mbbi_rec.FFST", DBF_STRING, "FFST_TEST");
testdbGetFieldEqual("test_mbbi_rec.NAME", DBF_STRING, "test_mbbi_rec");
testdbGetFieldEqual("test_mbbi_rec.DESC", DBF_STRING, "DESC_TEST");
/* verify conversion */
testdbPutFieldOk("test_mbbi_link_rec.VAL", DBF_SHORT, 1);
testdbGetFieldEqual("test_mbbi_rec.VAL", DBF_STRING, "ONST_TEST");
testdbPutFieldOk("test_mbbi_link_rec.VAL", DBF_SHORT, 0);
testdbGetFieldEqual("test_mbbi_rec.VAL", DBF_STRING, "ZRST_TEST");
// number of tests = 39
}
static void test_alarm(void){
/* set soft channel */
testdbPutFieldOk("test_mbbi_rec.DTYP", DBF_STRING, "Soft Channel");
testdbPutFieldOk("test_mbbi_rec.INP", DBF_STRING, "test_mbbi_link_rec.VAL");
testdbPutFieldOk("test_mbbi_link_rec.FLNK", DBF_STRING, "test_mbbi_rec");
testdbPutFieldOk("test_mbbi_rec.ZRST", DBF_STRING, "ZRST_TEST");
testdbPutFieldOk("test_mbbi_rec.ONST", DBF_STRING, "ONST_TEST");
testdbPutFieldOk("test_mbbi_rec.ZRVL", DBF_STRING, "0");
testdbPutFieldOk("test_mbbi_rec.ONVL", DBF_STRING, "1");
/* set start VAL to 0*/
testdbPutFieldOk("test_mbbi_link_rec.VAL", DBF_SHORT, 0);
/* set alarm parameters */
testdbPutFieldOk("test_mbbi_rec.ZRSV", DBF_SHORT, menuAlarmSevrNO_ALARM);
testdbPutFieldOk("test_mbbi_rec.ONSV", DBF_SHORT, menuAlarmSevrMINOR);
testdbPutFieldOk("test_mbbi_rec.COSV", DBF_SHORT, menuAlarmSevrINVALID);
/* verify alarm status is NO_ALARM*/
testdbGetFieldEqual("test_mbbi_rec.SEVR", DBF_SHORT, menuAlarmSevrNO_ALARM);
/* set ZRSV to MAJOR and verify that SEVR is now MAJOR */
testdbPutFieldOk("test_mbbi_rec.ZRSV", DBF_SHORT, menuAlarmSevrMAJOR);
testdbGetFieldEqual("test_mbbi_rec.SEVR", DBF_SHORT, menuAlarmSevrMAJOR);
/* set VAL to 1 on linked record and verify that COSV now sets the SEVR to INVALID */
testdbPutFieldOk("test_mbbi_link_rec.VAL", DBF_SHORT, 1);
testdbGetFieldEqual("test_mbbi_rec.SEVR", DBF_SHORT, menuAlarmSevrINVALID);
/* verify LAML */
testdbGetFieldEqual("test_mbbi_rec.LALM", DBF_SHORT, 1);
// number of tests = 17
}
static void test_aftc(void){
const double aftc = 3.0;
testMonitor* test_mon = NULL;
epicsTimeStamp startTime;
epicsTimeStamp endTime;
double diffTime = 0;
/* set soft channel */
testdbPutFieldOk("test_mbbi_rec2.DTYP", DBF_STRING, "Soft Channel");
testdbPutFieldOk("test_mbbi_rec2.INP", DBF_STRING, "test_mbbi_link_rec2.VAL");
testdbPutFieldOk("test_mbbi_link_rec2.FLNK", DBF_STRING, "test_mbbi_rec2");
/* set alarm parameters */
testdbPutFieldOk("test_mbbi_rec2.ZRSV", DBF_SHORT, menuAlarmSevrMINOR);
testdbPutFieldOk("test_mbbi_rec2.ONSV", DBF_SHORT, menuAlarmSevrMAJOR);
/* set start VAL to FALSE (NO_ALARM) */
testdbPutFieldOk("test_mbbi_link_rec2.VAL", DBF_SHORT, FALSE);
/* test AFTC using a monitor and time stamps */
testdbPutFieldOk("test_mbbi_rec2.AFTC", DBF_DOUBLE, aftc);
testdbPutFieldOk("test_mbbi_rec2.SCAN", DBF_SHORT, menuScan_1_second);
/* set VAL to TRUE (MAJOR alarm) */
testdbPutFieldOk("test_mbbi_link_rec2.VAL", DBF_SHORT, TRUE);
/* Create test monitor for alarm SEVR */
test_mon = testMonitorCreate("test_mbbi_rec2.VAL", DBE_ALARM, 0);
/* Get start time */
epicsTimeGetCurrent(&startTime);
/* wait for monitor to trigger on the new alarm status */
testMonitorWait(test_mon);
epicsTimeGetCurrent(&endTime);
/* Verify that alarm status is now MAJOR */
testdbGetFieldEqual("test_mbbi_rec2.SEVR", DBF_SHORT, menuAlarmSevrMAJOR);
/* set VAL back to FALSE (NO_ALARM) */
testdbPutFieldOk("test_mbbi_link_rec2.VAL", DBF_SHORT, FALSE);
/* Create test monitor for alarm SEVR */
test_mon = testMonitorCreate("test_mbbi_rec2.VAL", DBE_ALARM, 0);
/* Get start time */
epicsTimeGetCurrent(&startTime);
/* wait for monitor to trigger on the new alarm status */
testMonitorWait(test_mon);
epicsTimeGetCurrent(&endTime);
/* Verify that alarm status is now NO_ALARM */
testdbGetFieldEqual("test_mbbi_rec2.SEVR", DBF_SHORT, menuAlarmSevrMINOR);
/* Verify that time is at least equal to configured aftc */
diffTime = epicsTimeDiffInSeconds(&endTime, &startTime);
testOk(diffTime >= aftc, "AFTC time %lf", diffTime);
// number of tests = 13
}
MAIN(mbbiTest) {
testPlan(6+39+17+13);
testdbPrepare();
testdbReadDatabase("recTestIoc.dbd", NULL, NULL);
recTestIoc_registerRecordDeviceDriver(pdbbase);
testdbReadDatabase("mbbiTest.db", NULL, NULL);
eltc(0);
testIocInitOk();
eltc(1);
test_soft_input();
test_operator_display();
test_alarm();
test_aftc();
testIocShutdownOk();
testdbCleanup();
return testDone();
}
+13
View File
@@ -0,0 +1,13 @@
record(mbbi, "test_mbbi_rec") {
}
record(longout, "test_mbbi_link_rec") {
}
record(mbbi, "test_mbbi_rec2") {
}
record(longout, "test_mbbi_link_rec2") {
}
+8 -3
View File
@@ -1251,8 +1251,13 @@ POSIX_Init ( void *argument __attribute__((unused)))
printf ("***** Preparing EPICS application *****\n");
iocshRegisterRTEMS ();
set_directory (argv[1]);
epicsEnvSet ("IOC_STARTUP_SCRIPT", argv[1]);
/* No startup script when the application declares that it needs no
* filesystem (epicsRtemsFSImage == NULL).
*/
if (argv[1] != NULL) {
set_directory (argv[1]);
epicsEnvSet ("IOC_STARTUP_SCRIPT", argv[1]);
}
atexit(exitHandler);
printf ("***** Starting EPICS application *****\n");
@@ -1270,7 +1275,7 @@ POSIX_Init ( void *argument __attribute__((unused)))
NULL);
#endif
result = main ((sizeof argv / sizeof argv[0]) - 1, argv);
result = main (argv[1] != NULL ? 2 : 1, argv);
printf ("***** IOC application terminating *****\n");
epicsThreadSleep(1.0);
epicsExit(result);
@@ -37,7 +37,9 @@
#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
#define CONFIGURE_MAXIMUM_DRIVERS 8
#ifndef CONFIGURE_MICROSECONDS_PER_TICK
#define CONFIGURE_MICROSECONDS_PER_TICK 20000
#endif
#define CONFIGURE_INIT_TASK_PRIORITY 80
+8 -3
View File
@@ -681,11 +681,16 @@ Init (rtems_task_argument ignored)
*/
printf ("***** Preparing EPICS application *****\n");
iocshRegisterRTEMS ();
set_directory (argv[1]);
epicsEnvSet ("IOC_STARTUP_SCRIPT", argv[1]);
/* No startup script when the application declares that it needs no
* filesystem (epicsRtemsFSImage == NULL).
*/
if (argv[1] != NULL) {
set_directory (argv[1]);
epicsEnvSet ("IOC_STARTUP_SCRIPT", argv[1]);
}
atexit(exitHandler);
printf ("***** Starting EPICS application *****\n");
result = main ((sizeof argv / sizeof argv[0]) - 1, argv);
result = main (argv[1] != NULL ? 2 : 1, argv);
printf ("***** IOC application terminating *****\n");
epicsThreadSleep(1.0);
epicsExit(result);
+2 -2
View File
@@ -210,7 +210,7 @@ LIBCOM_API int errlogSetConsole(FILE *stream);
* \param bufsize The desired buffer size
* \return 0 if successful, -1 if called from callback function
*
* \since UNRELEASED the default buffer size is 2560.
* \since 7.0.11 the default buffer size is 2560.
*/
LIBCOM_API int errlogInit(int bufsize);
@@ -222,7 +222,7 @@ LIBCOM_API int errlogInit(int bufsize);
* \param maxMsgSize The desired max message size
* \return 0 if successful, -1 if called from callback function
*
* \since UNRELEASED It is possible to enlarge the error log buffer size after initialisation.
* \since 7.0.11 It is possible to enlarge the error log buffer size after initialisation.
* The default buffer size is 2560 and the default maximum message size is 512.
*/
LIBCOM_API int errlogInit2(int bufsize, int maxMsgSize);
+2 -2
View File
@@ -13,6 +13,6 @@ MAKEVERSION_FLAGS += $(if $(EPICS_SITE_VERSION),-v "$(EPICS_SITE_VERSION)")
$(COMMON_DIR)/epicsVersion.h: $(CONFIG)/CONFIG_BASE_VERSION \
$(CONFIG)/CONFIG_SITE $(MAKEVERSION)
@$(RM) $(notdir $@)
$(RM) $(notdir $@)
$(PERL) $(MAKEVERSION) $(MAKEVERSION_FLAGS) $<
@$(MV) $(notdir $@) $@
$(MV) $(notdir $@) $@
+1 -1
View File
@@ -121,7 +121,7 @@ LIBCOM_API char * epicsStrnDup(const char *s, size_t len);
* \param n Length of string
* \return Number of characters printed, or negative on error.
*
* \since 7.0.8 until UNRELEASED, @code strlen(s) @endcode must be valid.
* \since 7.0.8 until 7.0.11, @code strlen(s) @endcode must be valid.
*/
LIBCOM_API int epicsStrPrintEscaped(FILE *fp, const char *s, size_t n);
@@ -1,6 +0,0 @@
#ifdef RTEMS_LEGACY_STACK
#include "os/RTEMS-score/devLibVMEOSD.c"
#else
#pragma message "\n VME Support requires the RTEMS Legacy stack\n"
#include "os/default/devLibVMEOSD.c"
#endif
@@ -93,12 +93,12 @@ static long rtemsDevWriteProbe (unsigned wordSize, volatile void *ptr, const voi
static long rtemsDevConnectInterruptVME (
unsigned vectorNumber,
void (*pFunction)(),
void (*pFunction)(void *),
void *parameter);
static long rtemsDevDisconnectInterruptVME (
unsigned vectorNumber,
void (*pFunction)()
void (*pFunction)(void *)
);
static long rtemsDevEnableInterruptLevelVME (unsigned level);
@@ -140,7 +140,7 @@ rtemsDevInit(void)
*/
static long rtemsDevConnectInterruptVME (
unsigned vectorNumber,
void (*pFunction)(),
void (*pFunction)(void *),
void *parameter)
{
int status;
@@ -151,7 +151,7 @@ static long rtemsDevConnectInterruptVME (
}
status = BSP_installVME_isr(
vectorNumber,
pFunction,
(BSP_VME_ISR_t)pFunction,
parameter);
if (status) {
return S_dev_vecInstlFail;
@@ -173,10 +173,10 @@ static long rtemsDevConnectInterruptVME (
*/
static long rtemsDevDisconnectInterruptVME (
unsigned vectorNumber,
void (*pFunction)()
void (*pFunction)(void *)
)
{
void (*psub)();
void (*psub)(void *);
void *arg;
int status;
@@ -191,7 +191,7 @@ static long rtemsDevDisconnectInterruptVME (
status = BSP_removeVME_isr(
vectorNumber,
psub,
(BSP_VME_ISR_t)psub,
arg) ||
BSP_installVME_isr(
vectorNumber,
+2 -1
View File
@@ -46,7 +46,6 @@ myThread::myThread(int arg,const char *name) :
{
argvalue = new int;
*argvalue = arg;
thread.start();
}
myThread::~myThread() {delete argvalue;}
@@ -78,6 +77,8 @@ void testMyThread()
if (i == 0)
startPriority = myThreads[i]->thread.getPriority();
myThreads[i]->thread.setPriority(startPriority + i);
/* start after setPriority() to avoid racing with run() */
myThreads[i]->thread.start();
}
for (int i = 0; i < ntasks; i++) {
+2 -2
View File
@@ -24,11 +24,11 @@ buildInstall : $(INSTALL_IDLS)
$(INSTALL_IDL)/%: %
@echo "Installing idl program $@"
@$(INSTALL_IDLFILE) -d -m 644 $< $(INSTALL_IDL)
$(INSTALL_IDLFILE) -d -m 644 $< $(INSTALL_IDL)
$(INSTALL_IDL)/%: ../%
@echo "Installing idl program $@"
@$(INSTALL_IDLFILE) -d -m 644 $< $(INSTALL_IDL)
$(INSTALL_IDLFILE) -d -m 644 $< $(INSTALL_IDL)
endif
endif
+11 -11
View File
@@ -98,9 +98,9 @@ buildInstall : $(INSTALL_JAR) $(INSTALL_JAVADOC)
#This clean works only from O.* dirs.
buildclean:
@$(RMDIR) $(INSTALL_CLASSES) $(PACKAGEDIRS)
@$(RM) $(INSTALL_JAR) $(INSTALL_JAVADOC)
@$(RM) $(COMMON_TESTCLASSES) $(COMMON_JAVAINC)
$(RMDIR) $(INSTALL_CLASSES) $(PACKAGEDIRS)
$(RM) $(INSTALL_JAR) $(INSTALL_JAVADOC)
$(RM) $(COMMON_TESTCLASSES) $(COMMON_JAVAINC)
ifdef JAVA_DIRECTORY_TARGETS
$(JAVA_DIRECTORY_TARGETS):
@@ -109,40 +109,40 @@ endif
$(COMMON_JAVAINC):$(JAVAINC_CLASSFILES)
$(ECHO) Creating header files $(COMMON_JAVAINC)
@$(RM) $@
$(RM) $@
$(JAVAHCMD) $(JAVAINC_CLASSNAMES)
$(COMMON_TESTCLASSES): $(addprefix ../,$(DEPTESTJAVA))
$(ECHO) Creating test java class files $(COMMON_TESTCLASSES)
@$(RM) $@
$(RM) $@
$(JAVACCMD) -d $(COMMON_DIR) $^
$(INSTALL_CLASSES): $(addprefix ../,$(JAVA))
$(ECHO) Creating java class files
@$(RM) $@
$(RM) $@
$(JAVACCMD) -d $(INSTALL_JAVA) $^
$(INSTALL_JAVADOC): $(addprefix ../,$(JAVA))
$(ECHO) Creating java doc files
@$(RM) $@
$(RM) $@
$(JAVADOCCMD) -d $(addprefix $(INSTALL_HTML)/,$(JAVADOC)) $^
$(COMMON_DIR)/%.jar: $(JARDEPFILES)
$(ECHO) Creating java jar file $@
@$(RM) $@
$(RM) $@
$(JARCMD)
$(INSTALL_JAVA)/%.jar: $(COMMON_DIR)/%.jar
$(ECHO) "Installing java jar file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_JAVA)/%.jar: %.jar
$(ECHO) "Installing java jar file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(addprefix $(INSTALL_JAVA)/, $(JARINPUT)): $(INSTALL_JAVA)/%: ../%
$(ECHO) "Installing jar input file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
.PHONY: all install buildInstall rebuild clean build inc