Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
build-scripts
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Detlev Casanova
build-scripts
Commits
1f98b0ae
Commit
1f98b0ae
authored
1 year ago
by
Sebastian Fricke
Browse files
Options
Downloads
Patches
Plain Diff
funcs.sh: Wrapper for smatch install
Signed-off-by:
Sebastian Fricke
<
sebastian.fricke@collabora.com
>
parent
09fd6bcb
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
build.sh
+1
-9
1 addition, 9 deletions
build.sh
funcs.sh
+14
-3
14 additions, 3 deletions
funcs.sh
with
15 additions
and
12 deletions
build.sh
+
1
−
9
View file @
1f98b0ae
...
@@ -270,15 +270,7 @@ set_doc_headers
...
@@ -270,15 +270,7 @@ set_doc_headers
cd
$top
cd
$top
if
[
$sparse
==
1
-o
$smatch
==
1
-o
!
-d
smatch
]
;
then
if
[
$sparse
==
1
-o
$smatch
==
1
-o
!
-d
smatch
]
;
then
if
[
!
-d
smatch
]
;
then
build_smatch origin/master
echo
'Smatch missing, run prepare_build.sh first'
exit
1
fi
cd
smatch
git remote update
git reset
--hard
origin/master
make
-j
HAVE_LLVM
=
no
cd
..
fi
fi
export
CCACHE_MAXSIZE
=
512M
export
CCACHE_MAXSIZE
=
512M
...
...
This diff is collapsed.
Click to expand it.
funcs.sh
+
14
−
3
View file @
1f98b0ae
...
@@ -78,6 +78,19 @@ function strip_top()
...
@@ -78,6 +78,19 @@ function strip_top()
sed
"s;
$top
/media-git/;;g"
sed
"s;
$top
/media-git/;;g"
}
}
function
build_smatch
()
{
if
[
!
-d
smatch
]
;
then
echo
'`smatch` folder missing, run prepare_build.sh first'
exit
1
fi
cd
smatch
git remote update
git reset
--hard
$1
make
-j
HAVE_LLVM
=
no
cd
..
return
0
}
function
setup
()
function
setup
()
{
{
if
[
!
-d
media-git
]
;
then
if
[
!
-d
media-git
]
;
then
...
@@ -98,9 +111,7 @@ function setup()
...
@@ -98,9 +111,7 @@ function setup()
git remote update
git remote update
git checkout
-b
build-test media_stage/master
git checkout
-b
build-test media_stage/master
cd
..
cd
..
git clone
$smatch_git
build_smatch origin/master
cd
smatch
make
-j
HAVE_LLVM
=
no
exit
0
exit
0
}
}
...
...
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