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
df1e721f
Commit
df1e721f
authored
5 years ago
by
Jameson Rollins
Committed by
Jameson Rollins
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
cli: remove linux src check
The RCG should be discovering the source correctly now.
parent
d4c2cb83
No related branches found
Branches containing commit
No related tags found
1 merge request
!58
CLI improvements
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
support/bin/rtcds.in
+0
-42
0 additions, 42 deletions
support/bin/rtcds.in
with
0 additions
and
42 deletions
support/bin/rtcds.in
+
0
−
42
View file @
df1e721f
...
...
@@ -50,47 +50,6 @@ check_env() {
done
}
# FIXME: the RCG currently requires that the kernel source be at
# /usr/src/linux. this checks that /usr/src/linux is a symlink to the
# header dir for the currently running kernel. This shouldn't be
# necessary once the RCG is fixed.
check_linux_src
()
{
if
[
"
$RCG_IGNORE_KERNEL_RELEASE
"
]
;
then
return
fi
local
target
=
$(
readlink
/usr/src/linux
)
local
msg
=
if
[
!
-d
/usr/src/linux
]
;
then
msg
=
"Missing linux source."
elif
[
-z
"
$target
"
]
;
then
msg
=
"Unknown linux source."
fi
local
release
=
$(
uname
-r
|
sed
's/-amd64$/-common/'
)
for
ls
in
/usr/src/linux-headers-
${
release
}
{
,-common
}
;
do
if
[[
"
$target
"
==
"
$ls
"
]]
;
then
return
fi
if
[
-d
"
$ls
"
]
;
then
break
fi
done
if
[
-z
"
$msg
"
]
;
then
msg
=
"Linux source does not match currently running kernel."
fi
log
"
$msg
The RCG expects the linux source to be at /usr/src/linux. For modern
distros this should be a symlink to the source installed as part of
the kernel header package for the running kernel. For this system:
/usr/src/linux ->
$ls
Please create/update this link, or set the RCG_IGNORE_KERNEL_RELEASE
environment variable to bypass this check."
exit
10
}
prep_target
(){
log
"creating OPTRTCDS..."
mkdir
-p
${
OPTRTCDS
}
/
{
target,chans
}
/tmp
...
...
@@ -274,7 +233,6 @@ case $cmd in
log
"You must specify at least one system to build."
exit
2
fi
check_linux_src
check_env
prep_buildd
build_sys
$@
...
...
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