Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
RadioHDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
RTSD
RadioHDL
Merge requests
!11
Resolve
L2SDP-794
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve
L2SDP-794
L2SDP-794
into
master
Overview
3
Commits
8
Pipelines
0
Changes
5
3 unresolved threads
Hide all comments
Merged
Reinier van der Walle
requested to merge
L2SDP-794
into
master
2 years ago
Overview
3
Commits
8
Pipelines
0
Changes
5
3 unresolved threads
Hide all comments
Expand
Closes
L2SDP-794
0
0
Merge request reports
Compare
master
version 2
d6b54318
2 years ago
version 1
52f9b5de
2 years ago
master (base)
and
latest version
latest version
5f67a195
8 commits,
2 years ago
version 2
d6b54318
7 commits,
2 years ago
version 1
52f9b5de
6 commits,
2 years ago
5 files
+
349
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
quartus/build_all_images
+
39
−
10
Options
@@ -37,16 +37,38 @@ exit_with_error() {
cat
<<@EndOfHelp@
Usage:
$(
basename
$0
)
file
Arguments: file Name of the file containing buildset, the project and revison names to build.
Options:
--out
=
*
Path of directory to place bitstream files
(
default is
in
build directory
)
.
The file should contain the buildset, project name followed by the revision name on each line.
Ex.
unb2b lofar2_unb2b_sdp_station lofar2_unb2b_sdp_station_full_wg
unb2c lofar2_unb2c_sdp_station lofar2_unb2c_sdp_station_full
@EndOfHelp@
exit
1
}
# parse cmdline
POSITIONAL
=()
out
=
while
[[
$#
-gt
0
]]
do
case
$1
in
--out
=
*
)
out
=
${
1
#*=
}
;;
-
*
|
--
*
)
exit_with_error
"Unknown option: "
$1
;;
*
)
POSITIONAL+
=(
"
$1
"
)
;;
esac
shift
done
if
[
${#
POSITIONAL
[@]
}
-gt
0
]
;
then
set
--
"
${
POSITIONAL
[@]
}
"
fi
# check the positional parameters
if
[
$#
-lt
1
]
;
then
exit_with_error
"Wrong number of arguments specified."
@@ -57,13 +79,20 @@ readarray lines < <(sed -r '/^\s*$/d' $1)
# Build image for each line
for
line
in
"
${
lines
[@]
}
"
do
BUILDSET
=
$(
echo
$line
|
cut
-d
" "
-f1
)
PROJECT
=
$(
echo
$line
|
cut
-d
" "
-f2
)
REVISION
=
$(
echo
$line
|
cut
-d
" "
-f3
)
if
[
-z
${
REVISION
}
]
;
then
build_image
${
BUILDSET
}
${
PROJECT
}
else
build_image
${
BUILDSET
}
${
PROJECT
}
--rev
=
${
REVISION
}
do
BUILDSET
=
$(
echo
$line
|
cut
-d
" "
-f1
)
PROJECT
=
$(
echo
$line
|
cut
-d
" "
-f2
)
REVISION
=
$(
echo
$line
|
cut
-d
" "
-f3
)
if
[
-z
${
REVISION
}
]
;
then
build_image
${
BUILDSET
}
${
PROJECT
}
else
build_image
${
BUILDSET
}
${
PROJECT
}
--rev
=
${
REVISION
}
fi
# Copy resulting bitstream to $out directory
if
[
!
-z
"
${
out
}
"
]
;
then
if
[
!
-d
"
${
out
}
"
]
;
then
mkdir
"
${
out
}
"
fi
done
cp
"
${
RADIOHDL_BUILD_DIR
}
"
/
"
${
BUILDSET
}
"
/quartus/
"
${
REVISION
}
"
/
"
${
REVISION
}
"
-
*
"
${
out
}
"
fi
done
Loading