summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorAnand Rawat <anand.rawat@intel.com>2019-04-01 20:54:51 -0700
committerThomas Monjalon <thomas@monjalon.net>2019-04-03 01:11:56 +0200
commit428eb983f5f7614661dd5672e3a4ac51b23d6ee1 (patch)
treed4fc4b63e152fc0ee381e13b571f88af689dd7ae /mk
parent98edcbb5ab2f06eabb691c67613e65a8405c55b1 (diff)
downloaddpdk-428eb983f5f7614661dd5672e3a4ac51b23d6ee1.zip
dpdk-428eb983f5f7614661dd5672e3a4ac51b23d6ee1.tar.gz
dpdk-428eb983f5f7614661dd5672e3a4ac51b23d6ee1.tar.xz
eal: add OS specific header file
Added rte_os.h files to support OS specific functionality. Updated build system to contain OS headers in the include path. Signed-off-by: Anand Rawat <anand.rawat@intel.com> Reviewed-by: Pallavi Kadam <pallavi.kadam@intel.com> Acked-by: Harini Ramakrishnan <harini.ramakrishnan@microsoft.com> Acked-by: Thomas Monjalon <thomas@monjalon.net>
Diffstat (limited to 'mk')
-rw-r--r--mk/exec-env/freebsd/rte.vars.mk5
-rw-r--r--mk/exec-env/linux/rte.vars.mk5
2 files changed, 8 insertions, 2 deletions
diff --git a/mk/exec-env/freebsd/rte.vars.mk b/mk/exec-env/freebsd/rte.vars.mk
index c6be560..3608530 100644
--- a/mk/exec-env/freebsd/rte.vars.mk
+++ b/mk/exec-env/freebsd/rte.vars.mk
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: BSD-3-Clause
-# Copyright(c) 2010-2014 Intel Corporation
+# Copyright(c) 2010-2019 Intel Corporation
#
# exec-env:
@@ -17,6 +17,9 @@ else
EXECENV_CFLAGS = -pthread
endif
+# include in every library to build
+EXECENV_CFLAGS += -I$(RTE_SDK)/lib/librte_eal/freebsd/eal/include
+
EXECENV_LDFLAGS =
EXECENV_LDLIBS = -lexecinfo
EXECENV_ASFLAGS =
diff --git a/mk/exec-env/linux/rte.vars.mk b/mk/exec-env/linux/rte.vars.mk
index d04d0e2..bea3f76 100644
--- a/mk/exec-env/linux/rte.vars.mk
+++ b/mk/exec-env/linux/rte.vars.mk
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: BSD-3-Clause
-# Copyright(c) 2010-2014 Intel Corporation
+# Copyright(c) 2010-2019 Intel Corporation
#
# exec-env:
@@ -17,6 +17,9 @@ else
EXECENV_CFLAGS = -pthread
endif
+# include in every library to build
+EXECENV_CFLAGS += -I$(RTE_SDK)/lib/librte_eal/linux/eal/include
+
EXECENV_LDLIBS =
EXECENV_ASFLAGS =