Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
Ubuntu 18.04 Realtime Kernel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Monitor
Incidents
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
Nikhil Ambardar
Ubuntu 18.04 Realtime Kernel
Commits
c4ac23fc
Commit
c4ac23fc
authored
5 years ago
by
Johannes Mey
Browse files
Options
Downloads
Patches
Plain Diff
very first test of CI
parent
b57bb680
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
.gitlab-ci.yml
+12
-0
12 additions, 0 deletions
.gitlab-ci.yml
kernel/compile.bash
+53
-0
53 additions, 0 deletions
kernel/compile.bash
with
65 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
12
−
0
View file @
c4ac23fc
stages
:
-
build
build-kernel
:
image
:
ubuntu:bionic
stage
:
build
script
:
-
apt-get update
-
apt-get install -y build-essential
-
cd kernel; ./scripts/compile.bash
tags
:
-
highmem
This diff is collapsed.
Click to expand it.
kernel/compile.bash
0 → 100755
+
53
−
0
View file @
c4ac23fc
#!/bin/bash
# get current kernel and realtime patch version
FILE
=
`
curl
-s
https://mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/5.4/
`
KERNEL
=
`
echo
$FILE
|
sed
-n
's/.*patch-5.4.\(.*\)-rt.*.patch.gz.*/\1/p'
`
RTPATCH
=
`
echo
$FILE
|
sed
-n
's/.*patch-5.4..*-rt\(.*\).patch.gz.*/\1/p'
`
echo
"using kernel 5.4.
$KERNEL
with realtime patch
$RTPATCH
"
# get kernel file names and location
KERNELURL
=
https://www.kernel.org/pub/linux/kernel/v5.x/
KERNELNAME
=
linux-5.4.
${
KERNEL
}
KERNELFILE
=
linux-5.4.
${
KERNEL
}
.tar
KERNELFILEXZ
=
linux-5.4.
${
KERNEL
}
.tar.xz
KERNELSIGN
=
linux-5.4.
${
KERNEL
}
.tar.sign
PATCHURL
=
https://www.kernel.org/pub/linux/kernel/projects/rt/5.4/
PATCHFILE
=
patch-5.4.
${
KERNEL
}
-rt
${
RTPATCH
}
.patch
PATCHFILEXZ
=
patch-5.4.
${
KERNEL
}
-rt
${
RTPATCH
}
.patch.xz
PATCHSIGN
=
patch-5.4.
${
KERNEL
}
-rt
${
RTPATCH
}
.patch.sign
# download kernel
echo
"downloading kernel from
${
PATCHURL
}${
PATCHFILE
}
"
curl
-SLO
${
KERNELURL
}${
KERNELFILEXZ
}
curl
-SLO
${
KERNELURL
}${
KERNELSIGN
}
echo
"downloading patch from
${
PATCHURL
}${
PATCHSIGN
}
"
curl
-sLO
${
PATCHURL
}${
PATCHFILEXZ
}
curl
-sLO
${
PATCHURL
}${
PATCHSIGN
}
# unzip kernel (required for verification)
xz
-d
$KERNELFILEXZ
xz
-d
$PATCHFILEXZ
# verify the kernel
gpg
--verify
--keyserver
hkp://keys.gnupg.net
--auto-key-retrieve
$KERNELSIGN
gpg
--verify
--keyserver
hkp://keys.gnupg.net
--auto-key-retrieve
$PATCHSIGN
# unpack kernel
tar
xf
$KERNELFILE
cd
$KERNELNAME
patch
-p1
< ../
${
PATCHFILE
}
# build the kernel
# use the kernel config build on a normal ubuntu 18.4
cp
../config .config
# update config with defaults if new options have been added
make olddefconfig
make deb-pkg
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