kpatch/kpatch-build
Kamalesh Babulal 825cddcc45 kpatch-build: Add UTS_UBUNTU_RELEASE_ABI tag for non-stock kernel
commit eb55adc52d ("use livepatch 4.5 features in Ubuntu Xenial
kernel") will trigger following build failure, while building stock
kernel on Ubuntu:
make[2]: Entering directory '/root/.kpatch/obj'
  CC [M]  /root/.kpatch/tmp/patch/patch-hook.o
In file included from
/root/.kpatch/tmp/patch/livepatch-patch-hook.c:28:0,
                 from /root/.kpatch/tmp/patch/patch-hook.c:21:
/root/.kpatch/tmp/patch/livepatch-patch-hook.c: In functionpatch_ini:
/root/linux-4.8.15/include/generated/utsrelease.h:2:32: error: too many
decimal points in number
 #define UTS_UBUNTU_RELEASE_ABI 4.8.15
                                ^
/root/.kpatch/tmp/patch/livepatch-patch-hook.c:252:7: note: in expansion
of macro UTS_UBUNTU_RELEASE_ABI
       UTS_UBUNTU_RELEASE_ABI >= 7 ) \
       ^
Stock kernel version string might differ from the ubuntu kernel
versioning format. This patch sets UBUNTU_KERNEL flag, when kpatch
module is being build for ubuntu distro kernel and check for this
flag before echoing UTS_UBUNTU_RELEASE_ABI tag.

Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Cc: Chris J Arges <christopherarges@gmail.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
2017-01-13 10:18:45 +05:30
..
insn insn: get it to compile in create-diff-object 2014-05-30 15:19:57 -05:00
create-diff-object.c Merge pull request #644 from jpoimboe/no-seg-fault 2016-12-20 11:55:27 -08:00
kpatch-build kpatch-build: Add UTS_UBUNTU_RELEASE_ABI tag for non-stock kernel 2017-01-13 10:18:45 +05:30
kpatch-elf.c kpatch-elf: make is_bundleable() a static function 2016-07-12 14:45:18 -07:00
kpatch-elf.h kpatch-elf: introduce a common kpatch-elf and logging interface 2016-07-12 14:45:16 -07:00
kpatch-gcc kpatch-build: fix 'undefined reference to kpatch_shadow_*' errors 2016-12-05 20:22:11 -06:00
list.h new .fixup group size algorithm 2014-09-15 14:54:57 -05:00
log.h kpatch-elf: introduce a common kpatch-elf and logging interface 2016-07-12 14:45:16 -07:00
lookup.c create-diff-object: better error message for dup file+symbol 2016-12-14 15:05:55 -06:00
lookup.h livepatch-patch-hook: add support for livepatch sympos 2016-02-16 10:31:44 -06:00
Makefile kpatch-elf: introduce a common kpatch-elf and logging interface 2016-07-12 14:45:16 -07:00