Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Mock Turtle
Commits
a0a80157
Commit
a0a80157
authored
Dec 21, 2022
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: cleanup of CI and automatic build of HDL top-levels
parent
745c30df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
47 deletions
+42
-47
.gitlab-ci.yml
.gitlab-ci.yml
+7
-47
.gitlab-ci.yml
hdl/syn/.gitlab-ci.yml
+35
-0
No files found.
.gitlab-ci.yml
View file @
a0a80157
...
...
@@ -2,23 +2,17 @@
#
# SPDX-FileCopyrightText: 2019 CERN
---
variables
:
GIT_SUBMODULE_STRATEGY
:
normal
EDL_CI_DOC_SRC_PATH
:
'
doc'
EDL_CI_DOC_DST_PATH
:
'
$EDL_CI_EOS_OUTPUT_DIR/doc'
include
:
-
project
:
'
be-cem-edl/evergreen/gitlab-ci'
ref
:
master
file
:
-
'
edl-gitlab-ci.yml'
variables
:
KOJI_TARGET
:
'
ohwr7'
KOJI_DISTTAG
:
'
.el7.cern'
DIST_PATH
:
distribution
BUILD_PATH
:
distribution/rpmbuild
SRPM_PATH
:
distribution/rpmbuild/SRPMS/${CI_PROJECT_NAME}*src.rpm
before_script
:
-
git clone https://ohwr.org/project/wishbone-gen.git ~/git/wbgen2
-
export WBGEN2=~/git/wbgen2/wbgen2
-
local
:
'
hdl/syn/.gitlab-ci.yml'
cppcheck
:
stage
:
analyse
...
...
@@ -27,7 +21,6 @@ cppcheck:
script
:
-
make cppcheck
build-centos-7
:
interruptible
:
true
stage
:
build
...
...
@@ -55,30 +48,9 @@ build-kernel:
-
VERSION
:
[
5.10.149
,
5.15.74
]
script
:
-
source /linux-versions.sh
-
fetch $VERSION && prepare $VERSION && export KERNELSRC=$(linux $VERSION)
&& export KERNELSRC=$(linux $VERSION)
-
fetch $VERSION && prepare $VERSION && export KERNELSRC=$(linux $VERSION)
-
make modules
build-dkms
:
stage
:
build
script
:
-
yum install -y kernel-devel lua git dkms
-
export KERNELSRC=/usr/src/kernels/*/
-
export PREFIX=$(mktemp -d)
-
make -C software/kernel -f dkms.mk dkms_install
-
make -C ${PREFIX}/usr/src/${CI_PROJECT_NAME}*/
build_srpm
:
interruptible
:
true
stage
:
build
script
:
-
yum-builddep -y ${DIST_PATH}/*.spec
-
export KERNELSRC=/usr/src/kernels/*/
-
make -C distribution rpmbuild-source
artifacts
:
paths
:
-
${SRPM_PATH}
expire_in
:
1 day
trtl-project-creator
:
interruptible
:
true
stage
:
build
...
...
@@ -90,15 +62,3 @@ trtl-project-creator:
# TODO add firmware (need riscv32-gcc)
dependencies
:
-
build-centos-7
documentation
:
stage
:
build
image
:
name
:
gitlab-registry.cern.ch/coht/common-containers/documentation:latest
script
:
-
make -C doc html
-
mkdir -p $EDL_CI_EOS_OUTPUT_DIR
-
cp -a doc/_build/html/* $EDL_CI_EOS_OUTPUT_DIR
artifacts
:
paths
:
-
$EDL_CI_EOS_OUTPUT_DIR
hdl/syn/.gitlab-ci.yml
0 → 100644
View file @
a0a80157
# SPDX-FileCopyrightText: 2022 CERN (home.cern)
#
# SPDX-License-Identifier: LGPL-2.1-or-later
fpga_synthesis
:
interruptible
:
true
stage
:
build
needs
:
[]
tags
:
-
xilinx_ise
-
"
14.7"
parallel
:
matrix
:
-
SYN_NAME
:
-
spec_mt_demo
script
:
-
git submodule init && git submodule update
-
cd hdl/syn/"$SYN_NAME"/
-
hdlmake
-
make
-
|
if [[ $(cat *.par | grep -c "All constraints were met") = 0 ]]
then
echo -e "\e[31mTiming errors detected in PAR report. Aborting...\e[0m"
exit 1
fi
artifacts
:
name
:
"
$SYN_NAME-synthesis-$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
when
:
always
paths
:
-
hdl/syn/$SYN_NAME/*.syr
-
hdl/syn/$SYN_NAME/*.par
-
hdl/syn/$SYN_NAME/*.twr
-
hdl/syn/$SYN_NAME/*.bit
-
hdl/syn/$SYN_NAME/*.bin
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment