Index: configure/CONFIG_SITE =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/gtr/configure/CONFIG_SITE,v retrieving revision 1.7 diff -c -r1.7 CONFIG_SITE *** configure/CONFIG_SITE 1 Jun 2011 18:51:08 -0000 1.7 --- configure/CONFIG_SITE 4 Nov 2013 17:36:05 -0000 *************** *** 11,17 **** # 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 #CROSS_COMPILER_TARGET_ARCHS = RTEMS-uC5282 #CROSS_COMPILER_TARGET_ARCHS = RTEMS-pc586 #CROSS_COMPILER_TARGET_ARCHS = vxWorks-ppc604_long vxWorks-mpc8540 RTEMS-beatnik --- 11,17 ---- # 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 #CROSS_COMPILER_TARGET_ARCHS = RTEMS-uC5282 #CROSS_COMPILER_TARGET_ARCHS = RTEMS-pc586 #CROSS_COMPILER_TARGET_ARCHS = vxWorks-ppc604_long vxWorks-mpc8540 RTEMS-beatnik Index: configure/Makefile =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/gtr/configure/Makefile,v retrieving revision 1.3 diff -c -r1.3 Makefile *** configure/Makefile 27 Jan 2011 14:22:17 -0000 1.3 --- configure/Makefile 4 Nov 2013 18:21:04 -0000 *************** *** 8,14 **** # the support applications defined in $(TOP)/configure/RELEASE CHECK_RELEASE = YES ! TARGETS = $(CONFIG_TARGETS) CONFIGS += $(subst ../,,$(wildcard $(CONFIG_INSTALLS))) include $(TOP)/configure/RULES --- 8,14 ---- # the support applications defined in $(TOP)/configure/RELEASE CHECK_RELEASE = YES ! TARGETS = $(CONFIG_TARGETS) CONFIG_APP_INCLUDE CONFIGS += $(subst ../,,$(wildcard $(CONFIG_INSTALLS))) include $(TOP)/configure/RULES Index: configure/RULES =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/gtr/configure/RULES,v retrieving revision 1.1.1.1 diff -c -r1.1.1.1 RULES *** configure/RULES 10 Dec 2002 00:59:52 -0000 1.1.1.1 --- configure/RULES 5 Nov 2013 22:18:01 -0000 *************** *** 3,5 **** --- 3,11 ---- # Library should be rebuilt because LIBOBJS may have changed. $(LIBNAME): ../Makefile + + CONFIG_APP_INCLUDE: ../vme_check.c ../vme_dma_check.c + $(RM) $@ + echo HAVE_VMEDMA=`if ( $(COMPILE.c) ../vme_dma_check.c > /dev/null 2>&1 ) ; then echo YES; else echo NO; fi` >> $@ + echo HAVE_VME=`if ( $(COMPILE.c) ../vme_check.c > /dev/null 2>&1 ) ; then echo YES; else echo NO; fi` >> $@ + Index: drvRTEMSDmaSup/Makefile =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/gtr/drvRTEMSDmaSup/Makefile,v retrieving revision 1.1 diff -c -r1.1 Makefile *** drvRTEMSDmaSup/Makefile 15 Mar 2011 20:25:30 -0000 1.1 --- drvRTEMSDmaSup/Makefile 4 Nov 2013 18:10:23 -0000 *************** *** 11,17 **** INC += drvRTEMSDmaSup.h ! LIBRARY_RTEMS += drvRTEMSDmaSup SRCS_RTEMS += drvRTEMSDmaSup.c SRCS += $(SRCS_$(T_A)) --- 11,20 ---- INC += drvRTEMSDmaSup.h ! HAVE_DMA:=$(shell if ( $(COMPILE.c) ../x.c >/dev/null 2>&1 ); then echo YES ; else echo NO ; fi) ! LIBRARY_RTEMS_YES += drvRTEMSDmaSup ! ! LIBRARY_RTEMS=$(LIBRARY_RTEMS_$(HAVE_DMA)) SRCS_RTEMS += drvRTEMSDmaSup.c SRCS += $(SRCS_$(T_A)) *************** *** 20,22 **** --- 23,34 ---- include $(TOP)/configure/RULES #---------------------------------------- # ADD RULES AFTER THIS LINE + #inc: check_have_vmedma + inc: + echo $(HAVE_DMA) + + check_have_vmedma: + @if $(COMPILE.c) ../x.c ; then echo YES > $@ ; else echo NO >$@ ; fi + + test: + $(RM) check_have_vmedma Index: drvRTEMSDmaSup/drvRTEMSDmaSup.c =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/gtr/drvRTEMSDmaSup/drvRTEMSDmaSup.c,v retrieving revision 1.2 diff -c -r1.2 drvRTEMSDmaSup.c *** drvRTEMSDmaSup/drvRTEMSDmaSup.c 1 Jun 2011 18:51:08 -0000 1.2 --- drvRTEMSDmaSup/drvRTEMSDmaSup.c 4 Nov 2013 17:37:03 -0000 *************** *** 7,13 **** This bug caused a task to never relinquish a temporarily inherited, high priority (since it apparently always held this driver's mutex). ! /* /* DMA Routines using the RTEMS VME DMA API */ #include --- 7,13 ---- This bug caused a task to never relinquish a temporarily inherited, high priority (since it apparently always held this driver's mutex). ! */ /* DMA Routines using the RTEMS VME DMA API */ #include Index: gtrSup/Makefile =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/site/src/gtr/gtrSup/Makefile,v retrieving revision 1.4 diff -c -r1.4 Makefile *** gtrSup/Makefile 15 Mar 2011 20:21:39 -0000 1.4 --- gtrSup/Makefile 5 Nov 2013 22:24:30 -0000 *************** *** 45,57 **** VME_ONLY_SRCS += drvVtr812.c DBD += drvVtr812.dbd #SRCS_RTEMS-mvme2100 += $(VME_ONLY_SRCS) #SRCS_RTEMS-mvme5500 += $(VME_ONLY_SRCS) ! SRCS_RTEMS += $(VME_ONLY_SRCS) #SRCS_vxWorks += $(VME_ONLY_SRCS) ! SRCS += $(SRCS_$(T_A)) ! include $(TOP)/configure/RULES --- 45,57 ---- VME_ONLY_SRCS += drvVtr812.c DBD += drvVtr812.dbd + VME_YES_SRC=$(VME_ONLY_SRCS) #SRCS_RTEMS-mvme2100 += $(VME_ONLY_SRCS) #SRCS_RTEMS-mvme5500 += $(VME_ONLY_SRCS) ! #SRCS_RTEMS += $(VME_ONLY_SRCS) #SRCS_vxWorks += $(VME_ONLY_SRCS) ! SRCS += $(VME_$(HAVE_VME)_SRC) include $(TOP)/configure/RULES