diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:24:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:24:20 +0000 |
commit | 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 (patch) | |
tree | e5d88d25d870d5dedacb6bbdbe2a966086a0a5cf /src/spdk/dpdk/mk/exec-env | |
parent | Initial commit. (diff) | |
download | ceph-upstream.tar.xz ceph-upstream.zip |
Adding upstream version 14.2.21.upstream/14.2.21upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/spdk/dpdk/mk/exec-env')
-rw-r--r-- | src/spdk/dpdk/mk/exec-env/bsdapp/rte.app.mk | 8 | ||||
-rw-r--r-- | src/spdk/dpdk/mk/exec-env/bsdapp/rte.vars.mk | 33 | ||||
-rw-r--r-- | src/spdk/dpdk/mk/exec-env/linuxapp/rte.app.mk | 8 | ||||
-rw-r--r-- | src/spdk/dpdk/mk/exec-env/linuxapp/rte.vars.mk | 35 |
4 files changed, 84 insertions, 0 deletions
diff --git a/src/spdk/dpdk/mk/exec-env/bsdapp/rte.app.mk b/src/spdk/dpdk/mk/exec-env/bsdapp/rte.app.mk new file mode 100644 index 00000000..a2af7266 --- /dev/null +++ b/src/spdk/dpdk/mk/exec-env/bsdapp/rte.app.mk @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2010-2014 Intel Corporation + +exec-env-appinstall: + @true + +exec-env-appclean: + @true diff --git a/src/spdk/dpdk/mk/exec-env/bsdapp/rte.vars.mk b/src/spdk/dpdk/mk/exec-env/bsdapp/rte.vars.mk new file mode 100644 index 00000000..cec08840 --- /dev/null +++ b/src/spdk/dpdk/mk/exec-env/bsdapp/rte.vars.mk @@ -0,0 +1,33 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2010-2014 Intel Corporation + +# +# exec-env: +# +# - define EXECENV_CFLAGS variable (overridden by cmdline) +# - define EXECENV_LDFLAGS variable (overridden by cmdline) +# - define EXECENV_ASFLAGS variable (overridden by cmdline) +# - may override any previously defined variable +# +# examples for RTE_EXEC_ENV: linuxapp, bsdapp +# +ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) +EXECENV_CFLAGS = -pthread -fPIC +else +EXECENV_CFLAGS = -pthread +endif + +EXECENV_LDFLAGS = +EXECENV_LDLIBS = -lexecinfo +EXECENV_ASFLAGS = + +ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) +EXECENV_LDLIBS += -lgcc_s +endif + +# force applications to link with gcc/icc instead of using ld +LINK_USING_CC := 1 + +BSDMAKE=/usr/bin/make + +export EXECENV_CFLAGS EXECENV_LDFLAGS EXECENV_ASFLAGS diff --git a/src/spdk/dpdk/mk/exec-env/linuxapp/rte.app.mk b/src/spdk/dpdk/mk/exec-env/linuxapp/rte.app.mk new file mode 100644 index 00000000..a2af7266 --- /dev/null +++ b/src/spdk/dpdk/mk/exec-env/linuxapp/rte.app.mk @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2010-2014 Intel Corporation + +exec-env-appinstall: + @true + +exec-env-appclean: + @true diff --git a/src/spdk/dpdk/mk/exec-env/linuxapp/rte.vars.mk b/src/spdk/dpdk/mk/exec-env/linuxapp/rte.vars.mk new file mode 100644 index 00000000..3129edc8 --- /dev/null +++ b/src/spdk/dpdk/mk/exec-env/linuxapp/rte.vars.mk @@ -0,0 +1,35 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2010-2014 Intel Corporation + +# +# exec-env: +# +# - define EXECENV_CFLAGS variable (overridden by cmdline) +# - define EXECENV_LDFLAGS variable (overridden by cmdline) +# - define EXECENV_ASFLAGS variable (overridden by cmdline) +# - may override any previously defined variable +# +# examples for RTE_EXEC_ENV: linuxapp, bsdapp +# +ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) +EXECENV_CFLAGS = -pthread -fPIC +else +EXECENV_CFLAGS = -pthread +endif + +EXECENV_LDLIBS = +EXECENV_ASFLAGS = + +ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) +EXECENV_LDLIBS += -lgcc_s +endif + +# force applications to link with gcc/icc instead of using ld +LINK_USING_CC := 1 + +# For shared libraries +EXECENV_LDFLAGS += -export-dynamic +# Add library to the group to resolve symbols +EXECENV_LDLIBS += -ldl + +export EXECENV_CFLAGS EXECENV_LDFLAGS EXECENV_ASFLAGS EXECENV_LDLIBS |