mirror of
git://nv-tegra.nvidia.com/kernel/nvethernetrm.git
synced 2025-12-22 17:33:14 +03:00
osi: core: move vlan_filter.c and debug.c out of safety
vlan_filter.c and debug.c files not used for safety builds. Move this out of safety build compilation Bug 3949980 Change-Id: I1bc177dc62be55b409d9a2dd5db551fc20828ac1 Signed-off-by: Narayan Reddy <narayanr@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/2847416 Reviewed-by: Bhadram Varka <vbhadram@nvidia.com> Reviewed-by: Nagarjuna Kristam <nkristam@nvidia.com> Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
Bhadram Varka
parent
5a41280c4b
commit
e72eaed099
@@ -30,18 +30,16 @@ NV_COMPONENT_STRICT_WARNINGS_qnx_64 := 1
|
|||||||
NV_COMPONENT_NAME := nvethernetrm
|
NV_COMPONENT_NAME := nvethernetrm
|
||||||
NV_COMPONENT_OWN_INTERFACE_DIR := .
|
NV_COMPONENT_OWN_INTERFACE_DIR := .
|
||||||
NV_COMPONENT_SOURCES := \
|
NV_COMPONENT_SOURCES := \
|
||||||
eqos_core.c \
|
$(NV_SOURCE)/nvethernetrm/osi/core/eqos_core.c \
|
||||||
eqos_mmc.c \
|
$(NV_SOURCE)/nvethernetrm/osi/core/eqos_mmc.c \
|
||||||
osi_core.c \
|
$(NV_SOURCE)/nvethernetrm/osi/core/osi_core.c \
|
||||||
vlan_filter.c \
|
$(NV_SOURCE)/nvethernetrm/osi/core/osi_hal.c \
|
||||||
osi_hal.c \
|
$(NV_SOURCE)/nvethernetrm/osi/core/ivc_core.c \
|
||||||
ivc_core.c \
|
$(NV_SOURCE)/nvethernetrm/osi/core/frp.c \
|
||||||
frp.c \
|
$(NV_SOURCE)/nvethernetrm/osi/core/mgbe_core.c \
|
||||||
mgbe_core.c \
|
$(NV_SOURCE)/nvethernetrm/osi/core/xpcs.c \
|
||||||
xpcs.c \
|
$(NV_SOURCE)/nvethernetrm/osi/core/mgbe_mmc.c \
|
||||||
mgbe_mmc.c \
|
$(NV_SOURCE)/nvethernetrm/osi/core/core_common.c \
|
||||||
debug.c \
|
|
||||||
core_common.c \
|
|
||||||
$(NV_SOURCE)/nvethernetrm/osi/common/osi_common.c \
|
$(NV_SOURCE)/nvethernetrm/osi/common/osi_common.c \
|
||||||
$(NV_SOURCE)/nvethernetrm/osi/common/eqos_common.c \
|
$(NV_SOURCE)/nvethernetrm/osi/common/eqos_common.c \
|
||||||
$(NV_SOURCE)/nvethernetrm/osi/common/mgbe_common.c \
|
$(NV_SOURCE)/nvethernetrm/osi/common/mgbe_common.c \
|
||||||
@@ -53,6 +51,15 @@ NV_COMPONENT_INCLUDES := \
|
|||||||
|
|
||||||
include $(NV_SOURCE)/nvethernetrm/include/config.tmk
|
include $(NV_SOURCE)/nvethernetrm/include/config.tmk
|
||||||
|
|
||||||
|
ifeq ($(OSI_DEBUG),1)
|
||||||
|
NV_COMPONENT_SOURCES += $(NV_SOURCE)/nvethernetrm/osi/core/debug.c
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(OSI_STRIPPED_LIB),0)
|
||||||
|
NV_COMPONENT_SOURCES += \
|
||||||
|
$(NV_SOURCE)/nvethernetrm/osi/core/vlan_filter.c
|
||||||
|
endif
|
||||||
|
|
||||||
include $(NV_BUILD_STATIC_LIBRARY)
|
include $(NV_BUILD_STATIC_LIBRARY)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -26,7 +26,6 @@
|
|||||||
#include "eqos_core.h"
|
#include "eqos_core.h"
|
||||||
#include "eqos_mmc.h"
|
#include "eqos_mmc.h"
|
||||||
#include "core_local.h"
|
#include "core_local.h"
|
||||||
#include "vlan_filter.h"
|
|
||||||
#include "core_common.h"
|
#include "core_common.h"
|
||||||
#include "macsec.h"
|
#include "macsec.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2022, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2020-2023, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -28,7 +28,6 @@
|
|||||||
#include "core_local.h"
|
#include "core_local.h"
|
||||||
#include "xpcs.h"
|
#include "xpcs.h"
|
||||||
#include "mgbe_mmc.h"
|
#include "mgbe_mmc.h"
|
||||||
#include "vlan_filter.h"
|
|
||||||
#include "core_common.h"
|
#include "core_common.h"
|
||||||
#include "macsec.h"
|
#include "macsec.h"
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
#include <ivc_core.h>
|
#include <ivc_core.h>
|
||||||
#include "core_local.h"
|
#include "core_local.h"
|
||||||
#include "../osi/common/common.h"
|
#include "../osi/common/common.h"
|
||||||
#include "vlan_filter.h"
|
|
||||||
#include "core_common.h"
|
#include "core_common.h"
|
||||||
#include "eqos_core.h"
|
#include "eqos_core.h"
|
||||||
#include "mgbe_core.h"
|
#include "mgbe_core.h"
|
||||||
@@ -32,7 +31,9 @@
|
|||||||
#ifdef OSI_DEBUG
|
#ifdef OSI_DEBUG
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#endif /* OSI_DEBUG */
|
#endif /* OSI_DEBUG */
|
||||||
|
#ifndef OSI_STRIPPED_LIB
|
||||||
|
#include "vlan_filter.h"
|
||||||
|
#endif
|
||||||
/**
|
/**
|
||||||
* @brief g_ops - Static core operations array.
|
* @brief g_ops - Static core operations array.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2022, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2020-2023, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -20,10 +20,10 @@
|
|||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef OSI_STRIPPED_LIB
|
||||||
#include "../osi/common/common.h"
|
#include "../osi/common/common.h"
|
||||||
#include "vlan_filter.h"
|
#include "vlan_filter.h"
|
||||||
|
|
||||||
#ifndef OSI_STRIPPED_LIB
|
|
||||||
/**
|
/**
|
||||||
* @brief get_vlan_filter_idx - Get VLAN HW filter index which match vlan_id
|
* @brief get_vlan_filter_idx - Get VLAN HW filter index which match vlan_id
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user