Reduce the number of build dependencies

This commit is contained in:
Fabian Mastenbroek 2021-04-19 16:36:40 +02:00
parent 53e1806ff3
commit afe2ba30ae
No known key found for this signature in database
GPG key ID: 405FC6F81F0A7B85
2 changed files with 13 additions and 21 deletions

View file

@ -41,17 +41,18 @@ Make sure you have at least 10GB of free space available and have the following
packages installed:
```bash
apt install devscripts debuild equivs
apt install devscripts debhelper equivs git
```
In case you are building a kernel version >= 5.8, make sure you have installed
at least [dwarves >= 1.16.0](https://packages.debian.org/bullseye/dwarves).
Unfortunately, this version is currently only available in the Debian Testing
and Debian Unstable repositories. To work around this issue, we describe two options:
This version is currently is not available in the main repository.
To work around this issue, we describe two options:
1. You may add the Debian Testing repository to your APT sources as described
[here](https://serverfault.com/a/382101) and install the newer `dwarves` package as follows:
1. You may add the Debian Buster Backports repository to your APT sources as described
[here](https://backports.debian.org/Instructions/) and install the
newer `dwarves` package as follows:
```shell
apt install -t testing dwarves
apt install -t buster-backports dwarves
```
2. Alternatively, you may [download](https://packages.debian.org/bullseye/dwarves)
the newer `dwarves` (>= 1.16) package from the Debian website and install the
@ -81,11 +82,11 @@ debian/rules debian/control
```
Before we build, make sure you have installed the build dependencies:
```bash
sudo mk-build-deps --install debian/control
sudo mk-build-deps -i
```
Invoking the following command will build the kernel and its associated packages:
```bash
debuild --jobs=auto -ePVE* -b -uc -us
debuild -ePVE* --jobs=auto -b -uc -us
```
The Makefile provides several environmental variables to control:

View file

@ -2,15 +2,13 @@ Source: pve-kernel
Section: devel
Priority: optional
Maintainer: Fabian Mastenbroek <mail.fabianm@gmail.com>
Build-Depends: asciidoc-base,
Build-Depends: asciidoc,
automake,
bc,
bison,
cpio,
debhelper (>= 10~),
dh-python,
dwarves,
file,
dwarves (>= 1.16),
flex,
gcc (>= 8.3.0-6),
git,
@ -19,21 +17,14 @@ Build-Depends: asciidoc-base,
libelf-dev,
libiberty-dev,
libnuma-dev,
libpve-common-perl,
libslang2-dev,
libssl-dev,
libtool,
lintian,
lz4,
perl-modules,
python3-minimal,
quilt,
rsync,
sed,
sphinx-common,
tar,
xmlto,
zlib1g-dev,
dwarves (>= 1.16)
zlib1g-dev
Build-Conflicts: pve-headers-@KVNAME@,
Vcs-Git: git://github.com/fabianishere/pve-edge-kernel.git
Vcs-Browser: https://github.com/fabianishere/pve-edge-kernel