blob: f955a9baa91d1b82c1aabc7df9380b113ec5540e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# SPDX-License-Identifier: Apache-2.0
# Copyright(c) 2022 Cisco Systems, Inc.
find_path(MUSDK_INCLUDE_DIR NAMES mv_std.h)
find_library(MUSDK_LIB NAMES libmusdk.a)
if(NOT MUSDK_INCLUDE_DIR OR NOT MUSDK_LIB)
message(WARNING "Marvell MUSDK not found - dev_armada plugin disabled")
return()
endif()
get_filename_component(MUSDK_LIB_DIR ${MUSDK_LIB} DIRECTORY)
set(MUSDK_LINK_FLAGS "-Wl,--whole-archive,${MUSDK_LIB_DIR}/libmusdk.a,--no-whole-archive")
add_vpp_plugin(dev_armada
SOURCES
plugin.c
pp2/init.c
pp2/format.c
pp2/port.c
pp2/queue.c
pp2/rx.c
pp2/tx.c
LINK_FLAGS
${MUSDK_LINK_FLAGS}
)
include_directories(${MUSDK_INCLUDE_DIR})
|