7e6e609939
This commit adds an implementation of the lock-free stack push, pop, and length functions that use __atomic builtins, for systems that benefit from the finer-grained memory ordering control. Signed-off-by: Gage Eads <gage.eads@intel.com> Reviewed-by: Olivier Matz <olivier.matz@6wind.com> Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
30 lines
669 B
Makefile
30 lines
669 B
Makefile
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(c) 2019 Intel Corporation
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
# library name
|
|
LIB = librte_stack.a
|
|
|
|
CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3
|
|
CFLAGS += -DALLOW_EXPERIMENTAL_API
|
|
LDLIBS += -lrte_eal
|
|
|
|
EXPORT_MAP := rte_stack_version.map
|
|
|
|
LIBABIVER := 1
|
|
|
|
# all source are stored in SRCS-y
|
|
SRCS-$(CONFIG_RTE_LIBRTE_STACK) := rte_stack.c \
|
|
rte_stack_std.c \
|
|
rte_stack_lf.c
|
|
|
|
# install includes
|
|
SYMLINK-$(CONFIG_RTE_LIBRTE_STACK)-include := rte_stack.h \
|
|
rte_stack_std.h \
|
|
rte_stack_lf.h \
|
|
rte_stack_lf_generic.h \
|
|
rte_stack_lf_c11.h
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|