diff options
author | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2020-05-20 11:11:22 +0300 |
---|---|---|
committer | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2020-05-20 17:38:54 +0300 |
commit | 2a75820e130e36382a2d6c592afdbc145cea3c5a (patch) | |
tree | 58c15bfe39faa3163fd87a94b3ddf110ffc74e2e /recipes-kernel/backports/files/makefile.patch | |
parent | ce34d815ef6be7cd30c173e8305ec9cdc39f06ff (diff) |
backports: fix recipe building
Tune the recipe to build the backports-5.4 with rocko successfully.
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Diffstat (limited to 'recipes-kernel/backports/files/makefile.patch')
-rw-r--r-- | recipes-kernel/backports/files/makefile.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/recipes-kernel/backports/files/makefile.patch b/recipes-kernel/backports/files/makefile.patch new file mode 100644 index 0000000..4023570 --- /dev/null +++ b/recipes-kernel/backports/files/makefile.patch @@ -0,0 +1,24 @@ +commit 9e0b7ead828993280955f71afa3ad689f5e6e0a8 +Author: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> +Date: Wed May 20 10:56:56 2020 +0300 + + Makefile: fix getting kernel version + + When backports build as a recipe, there is no Makefile available + in STAGING_KERNEL_BUILDDIR. Instead use the preset KERNEL_VERSION. + + Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> + +diff --git a/Makefile b/Makefile +index ee7df4ba..11044c0a 100644 +--- a/Makefile ++++ b/Makefile +@@ -84,7 +84,7 @@ mrproper: + echo "" ;\ + done \ + ) > Kconfig.kernel ;\ +- kver=$$($(MAKE) --no-print-directory -C $(KLIB_BUILD) kernelversion | \ ++ kver=$$(echo $(KERNEL_VERSION) | \ + sed 's/^\(\([3-5]\|2\.6\)\.[0-9]\+\).*/\1/;t;d') ;\ + test "$$kver" != "" || echo "Kernel version parse failed!" ;\ + test "$$kver" != "" ;\ |