All of lore.kernel.org
 help / color / mirror / Atom feed
* [Accel-config] [PATCH v1 2/2] accel-config: Update README with Debian packaging documentation
@ 2021-04-18 19:11 ramesh.thomas
  0 siblings, 0 replies; only message in thread
From: ramesh.thomas @ 2021-04-18 19:11 UTC (permalink / raw)
  To: accel-config

[-- Attachment #1: Type: text/plain, Size: 1994 bytes --]

From: Ramesh Thomas <ramesh.thomas(a)intel.com>

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 <ramesh.thomas(a)intel.com>
---
 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-devel
 ```
+### 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=/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="your.email(a)example.org"
+export DEBFULLNAME="Firstname Lastname"
+./autogen.sh
+./configure CFLAGS='-g -O2' --prefix=/usr --sysconfdir=/etc \
+    --libdir=/usr/lib64 --enable-test=yes
+
+./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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-18 19:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-18 19:11 [Accel-config] [PATCH v1 2/2] accel-config: Update README with Debian packaging documentation ramesh.thomas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.