DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] compiling kni module on Ubunutu 12.04 failed
@ 2014-08-20  9:42 Pawel Wodkowski
  2014-08-21 21:05 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Pawel Wodkowski @ 2014-08-20  9:42 UTC (permalink / raw)
  To: dev

On Ubuntu 12.04.4 file '/proc/version_signature' contains
'Ubuntu 3.11.0-15.25~precise1-generic 3.11.10'. This introduce compilation
error since '~precise1' will not be discarded. This patch discards 
everything after '~' inclusively.

Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
---
 lib/librte_eal/linuxapp/kni/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_eal/linuxapp/kni/Makefile b/lib/librte_eal/linuxapp/kni/Makefile
index 2799191..e2902af 100644
--- a/lib/librte_eal/linuxapp/kni/Makefile
+++ b/lib/librte_eal/linuxapp/kni/Makefile
@@ -47,7 +47,7 @@ MODULE_CFLAGS += -Wall -Werror
 ifeq ($(shell lsb_release -si 2>/dev/null),Ubuntu)
 MODULE_CFLAGS += -DUBUNTU_RELEASE_CODE=$(shell lsb_release -sr | tr -d .)
 UBUNTU_KERNEL_CODE := $(shell cut -d' ' -f2 /proc/version_signature | \
-                        cut -d- -f1,2 | tr .- $(comma))
+                        cut -d'~' -f1 | cut -d- -f1,2 | tr .- $(comma))
 MODULE_CFLAGS += -D"UBUNTU_KERNEL_CODE=UBUNTU_KERNEL_VERSION($(UBUNTU_KERNEL_CODE))"
 endif
 
-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] compiling kni module on Ubunutu 12.04 failed
  2014-08-20  9:42 [dpdk-dev] [PATCH] compiling kni module on Ubunutu 12.04 failed Pawel Wodkowski
@ 2014-08-21 21:05 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2014-08-21 21:05 UTC (permalink / raw)
  To: Pawel Wodkowski; +Cc: dev

> On Ubuntu 12.04.4 file '/proc/version_signature' contains
> 'Ubuntu 3.11.0-15.25~precise1-generic 3.11.10'. This introduce compilation
> error since '~precise1' will not be discarded. This patch discards 
> everything after '~' inclusively.
> 
> Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>

Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>

Applied for version 1.7.1.
Hope it will fix errors seen by many users.
Thanks
-- 
Thomas

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-21 21:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-20  9:42 [dpdk-dev] [PATCH] compiling kni module on Ubunutu 12.04 failed Pawel Wodkowski
2014-08-21 21:05 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).