Skip to content

Instantly share code, notes, and snippets.

@kormat
Created August 22, 2016 15:27
Show Gist options
  • Save kormat/08da3826c0c9595498159e42a59f3352 to your computer and use it in GitHub Desktop.
Save kormat/08da3826c0c9595498159e42a59f3352 to your computer and use it in GitHub Desktop.
$ git diff
diff --git a/lib/librte_eal/linuxapp/kni/Makefile b/lib/librte_eal/linuxapp/kni/Makefile
index 8cc6b61..5d9e286 100644
--- a/lib/librte_eal/linuxapp/kni/Makefile
+++ b/lib/librte_eal/linuxapp/kni/Makefile
@@ -50,6 +50,7 @@ UBUNTU_KERNEL_CODE := $(shell echo `grep UTS_RELEASE $(RTE_KERNELDIR)/include/ge
| cut -d '"' -f2 | cut -d- -f1,2 | tr .- ,`,1)
MODULE_CFLAGS += -D"UBUNTU_KERNEL_CODE=UBUNTU_KERNEL_VERSION($(UBUNTU_KERNEL_CODE))"
endif
+MODULE_CFLAGS += -DUBUNTU_RELEASE_CODE=1404 -D"UBUNTU_KERNEL_CODE=UBUNTU_KERNEL_VERSION(3,13,0,93,1)"
# this lib needs main eal
DEPDIRS-y += lib/librte_eal/linuxapp/eal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment