integ/livepatch/kpatch/debian/patches
Zhixiong Chi c6423587a9 kpatch: Allowing passing in KEYDIR and SRCDIR
When the '-k/--keydir' option is used, the variable KEYDIR will
still be the fixed value. Allow the customized value of KEYDIR
to be passed.
It's the same as '-s/--sourcedir' option and the variable SRCDIR.

Test-Plan:
PASS: build-pkgs -c -p kpatch
PASS: build-pkgs -c -p kpatch-prebuilt
PASS: build-pkgs -a --parallel 30
PASS: build-image
PASS: Jenkins installation
PASS: Setup the bullseye repo in /etc/apt/sources.list
PASS: sudo ostree admin unlock --hotfix
PASS: sudo apt install bison flex libssl-dev libelf-dev gcc make
      patch -y
PASS: Copy linux-source-5.10, linux-keys-5.10 and
      linux-image-5.10.0-6-amd64-dbg debian packages to target
PASS:
 mkdir -p kpatch-test/linux
 dpkg -X linux-[source|keys]-5.10....deb kpatch-test/linux
 dpkg -X linux-image-5.10.0-6-amd64-dbg...deb kpatch-test/linux
 cd kpatch-test/linux
 tar xf kpatch-test/linux/usr/src/linux-source-5.10.tar.xz

PASS: sudo kpatch-build
      -s kpatch-test/linux/linux-source-5.10
      -c /ostree/1/boot/config-5.10.0-6-amd64
      -v kpatch-test/linux/usr/lib/debug/boot/vmlinux-5.10.0-6-amd64
      -k kpatch-test/linux/usr/src/kernels/5.10.0-6-amd64
      /var/lib/kpatch/test/meminfo-string.patch -R

Story: 2009221
Task: 44580

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Change-Id: I62b973a50e149d51e6bb24223416351a641c10ba
2022-12-13 20:51:07 -05:00
..
0001-kpatch-Support-for-WRCP.patch kpatch: Add initial version for debian 2022-04-19 22:57:27 -04:00
0002-kpatch-Add-the-signature-for-livepatch-kernel-module.patch Debian: kpatch: support the signature for livepatch module 2022-05-10 22:51:22 -04:00
0003-kpatch-Adjust-the-kpatch-build-to-support-the-multik.patch Debian: kpatch: Support the multikernel 2022-06-15 22:32:30 -04:00
0004-kpatch-Fix-the-build-failure-when-the-cache-src-dire.patch Debian: kpatch: Correct CONFIGFILE when cache src dir is used 2022-08-10 21:59:19 -04:00
0005-kpatch-Support-the-customized-order-for-module-load.patch livepatch: kpatch: Add the config file to customize the load order 2022-11-02 01:07:04 -04:00
0006-kpatch-Allowing-passing-in-KEYDIR-and-SRCDIR.patch kpatch: Allowing passing in KEYDIR and SRCDIR 2022-12-13 20:51:07 -05:00
series kpatch: Allowing passing in KEYDIR and SRCDIR 2022-12-13 20:51:07 -05:00