TPROCTE_HOME Being Used In Place Of TPRO_HOME #778

Needed to make some more fixes to work with modern tsync driver
code.
This commit is contained in:
Alex Lin 2019-06-11 09:48:29 -05:00
parent 731b9b9c1f
commit a394f0d187
5 changed files with 12 additions and 12 deletions

View File

@ -63,9 +63,9 @@ AC_DEFUN([AX_TPRO_HOME],[
AC_ARG_WITH([tpro], AC_ARG_WITH([tpro],
AS_HELP_STRING([--with-tpro@<:@=DIR@:>@], [TPRO root directory]), AS_HELP_STRING([--with-tpro@<:@=DIR@:>@], [TPRO root directory]),
[TPRO_HOME="$withval" [TPRO_HOME="$withval"
AC_CHECK_FILE([$TPRO_HOME/h/tpro.h], AC_CHECK_FILE([$TPRO_HOME/linux/h/tpro.h],
[], [],
AC_MSG_ERROR([could not find $TPRO_HOME/h/tpro.h]) AC_MSG_ERROR([could not find $TPRO_HOME/linux/h/tpro.h])
) )
], ],
[TPRO_HOME=""] [TPRO_HOME=""]

10
configure vendored
View File

@ -7221,15 +7221,15 @@ fi
# Check whether --with-tpro was given. # Check whether --with-tpro was given.
if test "${with_tpro+set}" = set; then : if test "${with_tpro+set}" = set; then :
withval=$with_tpro; TPRO_HOME="$withval" withval=$with_tpro; TPRO_HOME="$withval"
as_ac_File=`$as_echo "ac_cv_file_$TPRO_HOME/h/tpro.h" | $as_tr_sh` as_ac_File=`$as_echo "ac_cv_file_$TPRO_HOME/linux/h/tpro.h" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $TPRO_HOME/h/tpro.h" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $TPRO_HOME/linux/h/tpro.h" >&5
$as_echo_n "checking for $TPRO_HOME/h/tpro.h... " >&6; } $as_echo_n "checking for $TPRO_HOME/linux/h/tpro.h... " >&6; }
if eval \${$as_ac_File+:} false; then : if eval \${$as_ac_File+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
test "$cross_compiling" = yes && test "$cross_compiling" = yes &&
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
if test -r "$TPRO_HOME/h/tpro.h"; then if test -r "$TPRO_HOME/linux/h/tpro.h"; then
eval "$as_ac_File=yes" eval "$as_ac_File=yes"
else else
eval "$as_ac_File=no" eval "$as_ac_File=no"
@ -7241,7 +7241,7 @@ $as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_ac_File"\" = x"yes"; then : if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
else else
as_fn_error $? "could not find $TPRO_HOME/h/tpro.h" "$LINENO" 5 as_fn_error $? "could not find $TPRO_HOME/linux/h/tpro.h" "$LINENO" 5
fi fi

View File

@ -28,8 +28,8 @@ export TRICK_VERSION := $(shell $(TRICK_HOME)/bin/trick-version -v)
export TRICK_MAJOR := $(shell $(TRICK_HOME)/bin/trick-version -y) export TRICK_MAJOR := $(shell $(TRICK_HOME)/bin/trick-version -y)
export TRICK_MINOR := $(shell $(TRICK_HOME)/bin/trick-version -m) export TRICK_MINOR := $(shell $(TRICK_HOME)/bin/trick-version -m)
include $(TRICK_HOME)/share/trick/makefiles/config_${TRICK_HOST_TYPE}.mk
-include $(TRICK_HOME)/share/trick/makefiles/config_user.mk -include $(TRICK_HOME)/share/trick/makefiles/config_user.mk
include $(TRICK_HOME)/share/trick/makefiles/config_${TRICK_HOST_TYPE}.mk
ifndef TRICK_CC ifndef TRICK_CC
export TRICK_CC := $(CC) export TRICK_CC := $(CC)

View File

@ -35,8 +35,8 @@ PLATFORM_LIBS += -L$(DMTCP)/dmtcpaware -ldmtcpaware
endif endif
ifneq ($(TPROCTE),) ifneq ($(TPROCTE),)
TRICK_ADDITIONAL_CXXFLAGS += -D_TPRO_CTE -I$(TPROCTE)/h TRICK_ADDITIONAL_CXXFLAGS += -D_TPRO_CTE -I$(TPROCTE)/linux/h -I$(TPROCTE)/common/h
PLATFORM_LIBS += $(TPROCTE)/lib/libtpro.a PLATFORM_LIBS += $(TPROCTE)/linux/tsync/lib/libtsync.a $(TPROCTE)/linux/lib/libtpro.a
endif endif
ifneq ($(BC635),) ifneq ($(BC635),)

View File

@ -17,7 +17,7 @@ PROGRAMMERS:
-# Calls the base Clock constructor -# Calls the base Clock constructor
-# Sets the default device name -# Sets the default device name
*/ */
Trick::TPROCTEClock::TPROCTEClock() : Clock(1000000, "TPROCTE") , dev_name("/dev/tpropci0") { } Trick::TPROCTEClock::TPROCTEClock() : Clock(1000000, "TPROCTE") , dev_name("/dev/tsyncpci0") { }
/** /**
@details @details
@ -102,7 +102,7 @@ long long Trick::TPROCTEClock::wall_clock_time() {
*/ */
long long Trick::TPROCTEClock::clock_spin(long long req_time) { long long Trick::TPROCTEClock::clock_spin(long long req_time) {
#ifdef _TPRO_CTE #ifdef _TPRO_CTE
Trick::Clock::clock_spin(req_time) ; return Trick::Clock::clock_spin(req_time) ;
#else #else
message_publish(MSG_ERROR, "TPRO CTE card was not enabled at compile time\n"); message_publish(MSG_ERROR, "TPRO CTE card was not enabled at compile time\n");
return req_time ; return req_time ;