From 57b872b6ac2d2535861d4ebad3ab673180689c9a Mon Sep 17 00:00:00 2001 From: Erik von Reis <evonreis@caltech.edu> Date: Tue, 25 Aug 2020 10:45:08 -0700 Subject: [PATCH] first attempt at making user space work --- support/bin/rtcds.in | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/support/bin/rtcds.in b/support/bin/rtcds.in index 764c23cb9..e1828df8c 100755 --- a/support/bin/rtcds.in +++ b/support/bin/rtcds.in @@ -17,6 +17,10 @@ while (( "$#" )); do USERLAND_FLAG=0 shift ;; + --no-kernel-space) + NOKERNELSPACE_FLAG=0 + shift + ;; -f) FOLLOW_FLAG=0 shift @@ -75,7 +79,7 @@ CDS_IFO_SRC=${CDS_IFO_SRC:-$CDS_SRC} # add RCG module source to lib path # FIXME: rename RCG_MOD_PATH -RCG_LIB_PATH=$RCG_LIB_PATH:${RCG_SRC}/src/epics/simLink/:${RCG_SRC}/src/epics/simLink/lib +RCG_LIB_PATH=$RCG_LIB_PATH:${RCG_SRC}/src/epics/simLink/:${RCG_SRC}/src/epics/simLink/lib:${RCG_SRC}/src/epics/util/lib #options from environment variables ALLOW_MODEL_ENABLE=${ALLOW_MODEL_ENABLE:-true} @@ -197,18 +201,30 @@ check_host_sys_inactive() { ######## +setup_make_args() { + make_args='' + if [[ $USERLAND_FLAG ]] ; then + make_args='RCG_BUILD_USP=YES' + fi + if [[ $NOKERNELSPACE_FLAG ]] ; then + make_args="$make_args RCG_BUILD_NO_KOBJ=YES" + fi +} + build_sys() { cd $RCG_BUILDD for sys ; do log "### building $sys..." - make $sys + setup_make_args + make $sys $make_args done } build_world() { cd $RCG_BUILDD log "### building world..." - make -i World + setup_make_args + make -i World $make_args } install_sys() { @@ -413,7 +429,8 @@ Advanced LIGO Real Time System control interface. Available commands: build|make <sys>...|--all build system - --user-space|--userland build for user space instead of kernel space + --user-space|--userland build model in userland (user space) + --no-kernel-space do not build kernel space model install <sys>...|--all install system list|ls list systems for host -- GitLab