eef9e0412a
gcc 10 defaults to -fno-common and as a result when linking with crypto drivers: drivers/librte_pmd_dpaa_sec.a(crypto_dpaa_sec_dpaa_sec.c.o): (.bss+0x4): multiple definition of `rta_sec_era'; drivers/librte_pmd_caam_jr.a(crypto_caam_jr_caam_jr.c.o): (.bss+0x0): first defined here drivers/librte_pmd_dpaa2_sec.a(crypto_dpaa2_sec_dpaa2_sec_dpseci.c.o): (.data+0x0): multiple definition of `rta_sec_era'; drivers/librte_pmd_caam_jr.a(crypto_caam_jr_caam_jr.c.o): (.bss+0x0): first defined here This patch fixes the blunt workaround in the following commit. Fixes: 50b03f3b8eaf ("drivers/crypto: disable gcc 10 no-common errors") Bugzilla ID: 469 Cc: stable@dpdk.org Signed-off-by: Akhil Goyal <akhil.goyal@nxp.com> Tested-by: Kevin Traynor <ktraynor@redhat.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com> Acked-by: Ray Kinsella <mdr@ashroe.eu>
39 lines
972 B
Makefile
39 lines
972 B
Makefile
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright (c) 2016 Freescale Semiconductor, Inc. All rights reserved.
|
|
# Copyright 2017 NXP
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
#
|
|
# library name
|
|
#
|
|
LIB = librte_pmd_dpaa_sec.a
|
|
|
|
# build flags
|
|
CFLAGS += -O3
|
|
CFLAGS += $(WERROR_FLAGS)
|
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/bus/dpaa
|
|
CFLAGS += -I$(RTE_SDK)/drivers/bus/dpaa/include
|
|
CFLAGS += -I$(RTE_SDK)/drivers/bus/dpaa/base/qbman
|
|
CFLAGS += -I$(RTE_SDK)/drivers/common/dpaax
|
|
CFLAGS += -I$(RTE_SDK)/drivers/crypto/dpaa_sec/
|
|
CFLAGS += -I$(RTE_SDK)/drivers/common/dpaax/caamflib/
|
|
CFLAGS += -I$(RTE_SDK)/lib/librte_eal/include
|
|
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
|
|
LDLIBS += -lrte_cryptodev
|
|
|
|
# versioning export map
|
|
EXPORT_MAP := rte_pmd_dpaa_sec_version.map
|
|
|
|
# library source files
|
|
SRCS-$(CONFIG_RTE_LIBRTE_PMD_DPAA_SEC) += dpaa_sec.c
|
|
|
|
# library dependencies
|
|
|
|
LDLIBS += -lrte_bus_dpaa
|
|
LDLIBS += -lrte_mempool_dpaa
|
|
LDLIBS += -lrte_common_dpaax
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|