Content-Type: multipart/mixed; boundary="===============8774756009358217065==" MIME-Version: 1.0 From: ramesh.thomas at intel.com Subject: [Accel-config] [PATCH v1 2/2] accel-config: Update README with Debian packaging documentation Date: Sun, 18 Apr 2021 15:11:52 -0400 Message-ID: <20210418191152.495090-3-ramesh.thomas@intel.com> In-Reply-To: 20210418191152.495090-1-ramesh.thomas@intel.com To: accel-config@lists.01.org List-ID: --===============8774756009358217065== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Ramesh Thomas Add list of dependencies that needs to be installed Add details to install DSA kernel header Describe debian package building steps and post build actions Signed-off-by: Ramesh Thomas --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index cc634fb..aaee01f 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,25 @@ sub-system in the Linux kernel = ## Resolve dependencies = +### Fedora, RHEL, CentOS ```bash yum groupinstall "Development Tools" yum install autoconf automake libtool pkgconf rpm-build rpmdevtools yum install asciidoc xmlto libuuid-devel json-c-devel kmod-devel libudev-d= evel ``` +### Debian +```bash +apt install build-essential +apt install autoconf automake autotools-dev libtool pkgconf asciidoc xmlto +apt install uuid-dev libjson-c-dev libkmod-dev libudev-dev libkeyutils-dev +apt install debhelper devscripts debmake quilt fakeroot lintian asciidoctor +apt install file gnupg patch patchutils +``` +### DSA Kernel headers +Run following in kernel source folder +```bash +sudo make headers_install INSTALL_HDR_PATH=3D/usr +```` = ## Build = @@ -56,3 +70,21 @@ make rhel/accfg-test.spec There are a number of packages required for the build steps that may not be installed by default. For information about the required packages, see the "BuildRequires:" lines in accfg.spec.in and accfg-test.spec.in. + +## Build Debian Package +```bash +export DEBEMAIL=3D"your.email(a)example.org" +export DEBFULLNAME=3D"Firstname Lastname" +./autogen.sh +./configure CFLAGS=3D'-g -O2' --prefix=3D/usr --sysconfdir=3D/etc \ + --libdir=3D/usr/lib64 --enable-test=3Dyes + +./debdch.sh +(Run dch -r and edit debian/changelog as necessary) + +./debbuild.sh + +Debian package components would be created in ./debpkg + +debian/changelog changes should be committed +``` -- = 2.26.3 --===============8774756009358217065==--