Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
advLigoRTS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CDS
software
advLigoRTS
Commits
57b872b6
Commit
57b872b6
authored
4 years ago
by
Erik von Reis
Browse files
Options
Downloads
Patches
Plain Diff
first attempt at making user space work
parent
266b528a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!150
Update rtcds with user-space model flags
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
support/bin/rtcds.in
+21
-4
21 additions, 4 deletions
support/bin/rtcds.in
with
21 additions
and
4 deletions
support/bin/rtcds.in
+
21
−
4
View file @
57b872b6
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment