Skip to content
Snippets Groups Projects
Commit 57b872b6 authored by Erik von Reis's avatar Erik von Reis
Browse files

first attempt at making user space work

parent 266b528a
No related branches found
No related tags found
1 merge request!150Update rtcds with user-space model flags
......@@ -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
......
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