Message ID | 20210504231203.d7b5b5ce71f7.I3aace2170f657561190f0473f2affafc850559b3@changeid (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v2] backports: suppress errors from 'make kernelversion' | expand |
diff --git a/backport/Makefile b/backport/Makefile index ee7df4ba29ce..77c2670d637e 100644 --- a/backport/Makefile +++ b/backport/Makefile @@ -84,8 +84,8 @@ mrproper: echo "" ;\ done \ ) > Kconfig.kernel ;\ - kver=$$($(MAKE) --no-print-directory -C $(KLIB_BUILD) kernelversion | \ - sed 's/^\(\([3-5]\|2\.6\)\.[0-9]\+\).*/\1/;t;d') ;\ + kver=$$($(MAKE) --no-print-directory -C $(KLIB_BUILD) M=$(BACKPORT_DIR) \ + kernelversion | sed 's/^\(\([3-5]\|2\.6\)\.[0-9]\+\).*/\1/;t;d');\ test "$$kver" != "" || echo "Kernel version parse failed!" ;\ test "$$kver" != "" ;\ kvers="$$(seq 14 39 | sed 's/^/2.6./')" ;\