Commit Graph

11 Commits

Author SHA1 Message Date
Artem Savkov
4a7dab17c8 Allow OOT modules to be built with non-distro kernels
Previously OOT-module builds used `--sourcedir` to specify oot-module
source directory which was a bit confusing and also denied users ability
to build kpatches agains oot modules built against non-distro kernels.

This patch adds `-p/--oot-module-src` option to specify source dir for
oot module while keeping `--sourcedir` for kernel source directory
specification.

I also tried to disambiguate `SRCDIR` in kpatch-build a bit. Now there
are 3 variables:
 - `KERNEL_SRCDIR` - contains path to kernel source directory
 - `OOT_MODULEL_SRCDIR` - contains path to out-of-tree module source directory
 - `BUILDDIR` - can be set to either of the above and is used for
   patch-related actions

Another attempt at this was done by @omatiusha in #1234

Signed-off-by: Artem Savkov <asavkov@redhat.com>
2021-12-13 18:51:52 +01:00
Song Liu
8487a0ca0a manpages: update kpatch-build with -R | --non-replace option
Signed-off-by: Song Liu <song@kernel.org>
2021-05-25 15:21:44 -07:00
Artem Savkov
41de9e763a kpatch-build: clang support
Add support for clang-built kernels. This is completely automatic, we
check if the kernel was built with clang by looking for
CONFIG_CC_IS_CLANG in config.

This has almost no effect on non-clang built kernels with one exception:
we now do compliler checks _after_ we download kernel sources which is a
waste of resources in case when compilers don't match.

Signed-off-by: Artem Savkov <asavkov@redhat.com>
2021-02-17 12:59:51 +01:00
Joe Lawrence
37672ef681 manpages: update kpatch-build with --oot-module option
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
2019-02-21 09:47:47 -05:00
Sanskriti Sharma
9e03722bcb Removed distros from kpatch-build man page
The man page earlier said that kpatch-build only works for Fedora, but now it
works for most distros to I deleted that line.

Signed-off-by: Sanskriti Sharma <sansharm@redhat.com>
2018-10-17 11:12:14 -04:00
Alice Ferrazzi
70aaf2b063 updated man page 2017-12-22 02:20:20 +09:00
Seth Jennings
d3abeb667a Allow user to skip gcc version check
Right now, unless the entire gcc version string, including build date
and package version, matches the distro kernel exactly, kpatch-build
won't proceed.

For some distros, it is very difficult to rollback to a previous
version of gcc and keep that version pinned on the system so that the
package manager doesn't update it.

For these user, add a --skip-gcc-check flag to kpatch-build to allow the
version check to be skipped.  If the user does this, it is assumed they
know what they are doing.  This flag is documented as "not recommended".

Signed-off-by: Seth Jennings <sjenning@redhat.com>
2014-10-01 14:25:02 -05:00
Udo Seidel
6c73bc3652 added missing options -v, -t and -d 2014-09-26 19:12:45 +02:00
Seth Jennings
065fde63d9 add sourcerpm option to kpatch-build man page
Signed-off-by: Seth Jennings <sjenning@redhat.com>
2014-04-07 12:02:33 -05:00
Udo Seidel
148ef3b941 fixed typos 2014-03-25 17:12:50 +01:00
Udo Seidel
fd11e9f5d6 added man pages and updated SPEC file 2014-03-25 08:36:20 +01:00