From 1b11496f26e15f31bdeb66ec8fd948c2e1944851 Mon Sep 17 00:00:00 2001 From: Masamichi Takagi Date: Thu, 16 Jul 2020 11:41:42 +0900 Subject: [PATCH] spec, README.md: add package dependency including libdwarf Change-Id: Ie612c5dc642a9f5d6d2ba31747adb991cb568113 --- README.md | 16 ++++++++++++++-- scripts/mckernel.spec.in | 2 ++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9e58734e..c20d6112 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,19 @@ git submodule update Foe example, if you want to try the development branch, use "development" as the pathspec. If you want to try the prerelease version 1.7.0-0.2, use "1.7.0-0.2". -###### 4.1 Install with cmake +###### 4.1 Install required packages + +~~~~ +sudo yum install systemd-libs numactl-libs elfutils-libelf libdwarf +~~~~ + +Note that you need to enable CodeReady Linux Builder (CLB) repository with RHEL-8.2 with the following command: + +~~~~ +subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms +~~~~ + +###### 4.2 Install with cmake Configure and compile: @@ -126,7 +138,7 @@ make -j install The IHK kernel modules and McKernel kernel image should be installed under the **ihk+mckernel** folder in your home directory. -###### 4.2 Install with rpm +###### 4.3 Install with rpm Configure, compile and build rpm: diff --git a/scripts/mckernel.spec.in b/scripts/mckernel.spec.in index 73db3a92..fa15712c 100644 --- a/scripts/mckernel.spec.in +++ b/scripts/mckernel.spec.in @@ -23,6 +23,8 @@ Summary: IHK/McKernel License: GPLv2 Source0: mckernel-%{version}.tar.gz +Requires: systemd-libs numactl-libs elfutils-libelf libdwarf + # kernel_module_package macro does not handle cross build... %if "%{?_host_cpu}" == "x86_64" && "%{?_target_cpu}" == "aarch64" %define cross_compile 1