Commit 241ce107 authored by Michal Wasiak's avatar Michal Wasiak Committed by Adam Wujek

snmp/bridge_mib: add Makefiles

Signed-off-by: 's avatarMichal Wasiak <michal.wasiak@gmail.com>
parent 40751c27
-include ../Makefile.specific
# include Makefile for bridge mib
BRIDGE_MIB_DIR:=bridge_mib
include ${BRIDGE_MIB_DIR}/Makefile
# if BRVER not defined use a wildcard
BRVER?=2*
SNMP_BUILD := $(wildcard $(WRS_OUTPUT_DIR)/build/buildroot-$(BRVER))
......@@ -62,6 +66,7 @@ SOURCES = \
wrsPtpDataTable.c \
wrsPortStatusTable.c \
wrsPtpInstanceTable.c \
$(BRIDGE_MIB_SRCS) \
init.c \
$(PPSI_SOURCES)
......
-include ../Makefile.specific
BRIDGE_DIRS= \
BRIDGE_INCLUDE_DIRS:=$(addsuffix /Makefile,$(BRIDGE_DIRS))
BRIDGE_INCLUDE_DIRS:=$(addprefix $(BRIDGE_MIB_DIR)/,$(BRIDGE_INCLUDE_DIRS))
include $(BRIDGE_INCLUDE_DIRS)
#BRIDGE_I_DIRS=$(addprefix -I$(BRIDGE_MIB_DIR)/,$(BRIDGE_DIRS))
CFLAGS += -I$(BRIDGE_MIB_DIR)
BRIDGE_MIB_SRCS += \
init_bridge_mib.c
BRIDGE_MIB_SRCS:=$(addprefix $(BRIDGE_MIB_DIR)/,$(BRIDGE_MIB_SRCS))
/*
* A global (library-wide) init function to register several things
*/
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include <net-snmp/agent/net-snmp-agent-includes.h>
/* The sub-init functions */
#include "wrsSnmp.h"
#include "snmp_shmem.h"
void init_bridge_mib(void)
{
}
#ifndef INIT_BRIDGE_MIB_H
#define INIT_BRIDGE_MIB_H
void init_bridge_mib(void);
#endif /* INIT_BRIDGE_MIB_H */
......@@ -28,6 +28,8 @@
#include "wrsPstatsHCTable.h"
#include "wrsPtpInstanceTable.h"
#include "init_bridge_mib.h"
#define DOTCONFIG_FILE "/wr/etc/dot-config"
FILE *wrs_logf; /* for the local-hack messages */
......@@ -66,4 +68,6 @@ void init_wrsSnmp(void)
wrsTimingStatus_data_fill();
wrsNetworkingStatus_data_fill();
/* BRIDGE-MIB and Q-BRIDGE-MIB */
init_bridge_mib();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment