From 78169befd043ccd94ce97c4c23805099e2510132 Mon Sep 17 00:00:00 2001 From: Zhipeng Xie Date: Tue, 26 Oct 2021 16:10:30 -0600 Subject: [PATCH] add make_compile_env.sh Signed-off-by: Zhipeng Xie --- kpatch.spec | 8 +++++++- make_compile_env.sh | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 make_compile_env.sh diff --git a/kpatch.spec b/kpatch.spec index 1ff3f0c..f9b7f32 100644 --- a/kpatch.spec +++ b/kpatch.spec @@ -1,7 +1,7 @@ Name: kpatch Epoch: 1 Version: 0.9.1 -Release: 18 +Release: 19 Summary: A Linux dynamic kernel patching infrastructure License: GPLv2 @@ -103,6 +103,12 @@ popd %{_mandir}/man1/*.1.gz %changelog +* Tue Oct 26 2021 Zhipeng Xie -1:0.9.1-19 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:support make compile environment + * Tue Sep 28 2021 Zhipeng Xie -1:0.9.1-18 - Type:bugfix - ID:NA diff --git a/make_compile_env.sh b/make_compile_env.sh new file mode 100644 index 0000000..416c02f --- /dev/null +++ b/make_compile_env.sh @@ -0,0 +1,42 @@ +#!/bin/bash +rm -rf kpatch_compile_env +yum install -y strace vim git rpm-build bc elfutils-libelf-devel gdb-headless make gcc patch bison flex openssl-devel kernel-source-`uname -r` kernel-debuginfo-`uname -r` kernel-devel-`uname -r` --installroot=`pwd`/kpatch_compile_env/ +mkdir -p kpatch_compile_env/kpatch +/bin/cp * kpatch_compile_env/kpatch/ +cat > kpatch_compile_env/installkpatch.sh < kpatch_compile_env/chroot.sh < kpatch_compile_env/unchroot.sh < kpatch_compile_env/usr/bin/openEuler_history<