dc672e78a0
Signed-off-by: Michal Berger <michalx.berger@intel.com> Change-Id: I78c6a1f376a317bd88298f9d19034848790aa667 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7266 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot
50 lines
1.5 KiB
Markdown
50 lines
1.5 KiB
Markdown
# RPMs {#rpms}
|
|
|
|
# In this document {#rpms_toc}
|
|
|
|
* @ref building_rpms
|
|
|
|
# Building SPDK RPMs {#building_rpms}
|
|
|
|
To build basic set of RPM packages out of the SPDK repo simply run:
|
|
|
|
~~~{.sh}
|
|
# rpmbuild/rpm.sh
|
|
~~~
|
|
|
|
Additional configuration options can be passed directly as arguments:
|
|
|
|
~~~{.sh}
|
|
# rpmbuild/rpm.sh --with-shared --with-dpdk=/path/to/dpdk/build
|
|
~~~
|
|
|
|
There are several options that may be passed via environment as well:
|
|
|
|
- DEPS - Install all needed dependencies for building RPM packages.
|
|
Default: "yes"
|
|
- MAKEFLAGS - Flags passed to make
|
|
- RPM_RELEASE - Target release version of the RPM packages. Default: 1
|
|
- REQUIREMENTS - Extra set of RPM dependencies if deemed as needed
|
|
- SPDK_VERSION - SPDK version. Default: currently checked out tag
|
|
|
|
~~~{.sh}
|
|
# DEPS=no MAKEFLAGS="-d -j1" rpmbuild/rpm.sh --with-shared
|
|
~~~
|
|
|
|
By default, all RPM packages should be created under $HOME directory of the
|
|
target user:
|
|
|
|
~~~{.sh}
|
|
# printf '%s\n' /root/rpmbuild/RPMS/x86_64/*
|
|
/root/rpmbuild/RPMS/x86_64/spdk-devel-v21.01-1.x86_64.rpm
|
|
/root/rpmbuild/RPMS/x86_64/spdk-dpdk-libs-v21.01-1.x86_64.rpm
|
|
/root/rpmbuild/RPMS/x86_64/spdk-libs-v21.01-1.x86_64.rpm
|
|
/root/rpmbuild/RPMS/x86_64/spdk-v21.01-1.x86_64.rpm
|
|
#
|
|
~~~
|
|
|
|
- spdk - provides all the binaries, common tooling, etc.
|
|
- spdk-devel - provides development files
|
|
- spdk-libs - provides target lib, .pc files (--with-shared)
|
|
- spdk-dpdk-libs - provides dpdk lib files (--with-shared|--with-dpdk)
|