Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Computing
cbmroot
Commits
884461d9
Commit
884461d9
authored
1 month ago
by
Daniel Wielanek
Committed by
Administrator
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
[CI] Edit checklibs.sh to catch all HAL libraries
parent
f82c9a67
No related branches found
No related tags found
1 merge request
!2078
Hbt 2025 plus: Update HAL and fix its libraries and headers
Pipeline
#33819
passed
1 month ago
Stage: package
Stage: verify
Stage: documentation
Stage: deploy
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/checklibs.sh
+7
-5
7 additions, 5 deletions
scripts/checklibs.sh
with
7 additions
and
5 deletions
scripts/checklibs.sh
+
7
−
5
View file @
884461d9
...
@@ -29,12 +29,15 @@ for lib in $all_libs; do
...
@@ -29,12 +29,15 @@ for lib in $all_libs; do
# So \\\\ becomes \\ which becomes \
# So \\\\ becomes \\ which becomes \
# => Seems to still work with mawk (Mike's awk, debian 10) on run2, so ok like this?
# => Seems to still work with mawk (Mike's awk, debian 10) on run2, so ok like this?
rootmap_defs_token
=
"
\\\\
[ lib"
rootmap_defs_token
=
"
\\\\
[ lib"
# if [[ ${rootmap_file} == *"libHal"* ]]; then
# # Commented out for now as lead to missing headers detection in 60% of HAL libraries (9/14)
# rootmap_defs_token="\\\\[ Hal"
# fi
first_class
=
$(
awk
-v
token
=
"
${
rootmap_defs_token
}
"
'$0 ~ token ,0'
${
rootmap_file
}
|
grep
-m1
"
${
start_token_class
}
"
|
tr
-d
';'
)
first_class
=
$(
awk
-v
token
=
"
${
rootmap_defs_token
}
"
'$0 ~ token ,0'
${
rootmap_file
}
|
grep
-m1
"
${
start_token_class
}
"
|
tr
-d
';'
)
if
[[
""
==
${
first_class
}
&&
${
rootmap_file
}
==
*
"libHal"
*
]]
;
then
rootmap_defs_token
=
"
\\\\
[ Hal"
first_class
=
$(
awk
-v
token
=
"
${
rootmap_defs_token
}
"
'$0 ~ token ,0'
${
rootmap_file
}
|
grep
-m1
"
${
start_token_class
}
"
|
tr
-d
';'
)
fi
first_class
=
"
${
first_class
##
"
${
start_token_class
}
"
}
"
first_class
=
"
${
first_class
##
"
${
start_token_class
}
"
}
"
if
[[
""
==
${
first_class
}
]]
;
then
echo
"WARNING: No 1st class found in rootmap for
${
lib
}
(prob. need tuning of checklibs.sh)"
fi
# Printouts commented out to limit spam in test logs
# Printouts commented out to limit spam in test logs
# FIXME: make it a "-v" option
# FIXME: make it a "-v" option
...
@@ -43,7 +46,6 @@ for lib in $all_libs; do
...
@@ -43,7 +46,6 @@ for lib in $all_libs; do
# echo "Loading the library ${lib}"
# echo "Loading the library ${lib}"
fi
fi
root
-l
-q
-b
"
${
SCRIPTDIR
}
/loadlib.C(
\"
${
lib
}
\"
,
\"
${
first_class
}
\"
)"
&>
${
tmpfile
}
root
-l
-q
-b
"
${
SCRIPTDIR
}
/loadlib.C(
\"
${
lib
}
\"
,
\"
${
first_class
}
\"
)"
&>
${
tmpfile
}
retval
=
$?
retval
=
$?
if
[[
retval
-ne
0
]]
;
then
if
[[
retval
-ne
0
]]
;
then
...
...
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