Add genl packet to sonic-buildimage (#13032)
* Adding sonic-genl-packet submodule Signed-off-by don.newton@intel.com * Adding build files for genl-packet Signed-off-by: don.newton@intel.com Signed-off-by: don.newton@intel.com
This commit is contained in:
parent
de4506dbf6
commit
86894d5b8d
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -112,3 +112,6 @@
|
|||||||
[submodule "src/sonic-gnmi"]
|
[submodule "src/sonic-gnmi"]
|
||||||
path = src/sonic-gnmi
|
path = src/sonic-gnmi
|
||||||
url = https://github.com/sonic-net/sonic-gnmi.git
|
url = https://github.com/sonic-net/sonic-gnmi.git
|
||||||
|
[submodule "src/sonic-genl-packet"]
|
||||||
|
path = src/sonic-genl-packet
|
||||||
|
url = https://github.com/sonic-net/sonic-genl-packet
|
||||||
|
10
rules/sonic-genl-packet-ko.mk
Normal file
10
rules/sonic-genl-packet-ko.mk
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# BFN Platform modules
|
||||||
|
|
||||||
|
GENL_PACKET_VERSION = 1.0-1
|
||||||
|
GENL_PACKET_KO_NAME = genl-packet-module
|
||||||
|
GENL_PACKET_DIR = sonic-genl-packet
|
||||||
|
|
||||||
|
GENL_PACKET_MODULE = $(GENL_PACKET_KO_NAME)_$(GENL_PACKET_VERSION)_$(CONFIGURED_ARCH).deb
|
||||||
|
$(GENL_PACKET_MODULE)_SRC_PATH = $(SRC_PATH)/$(GENL_PACKET_DIR)/$(GENL_PACKET_KO_NAME)
|
||||||
|
$(GENL_PACKET_MODULE)_DEPENDS += $(LINUX_HEADERS) $(LINUX_HEADERS_COMMON)
|
||||||
|
SONIC_DPKG_DEBS += $(GENL_PACKET_MODULE)
|
10
rules/sonic-genl-packet-tools.dep
Normal file
10
rules/sonic-genl-packet-tools.dep
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
SPATH := $($(GENL_TOOLS)_SRC_PATH)
|
||||||
|
DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/sonic-genl-packet-tools.mk rules/sonic-genl-packet-tools.dep
|
||||||
|
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||||
|
SMDEP_FILES := $(addprefix $(SPATH)/,$(shell cd $(SPATH) && git ls-files))
|
||||||
|
|
||||||
|
$(GENL_TOOLS)_CACHE_MODE := GIT_CONTENT_SHA
|
||||||
|
$(GENL_TOOLS)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||||
|
$(GENL_TOOLS)_DEP_FILES := $(DEP_FILES)
|
||||||
|
$(GENL_TOOLS)_SMDEP_FILES := $(SMDEP_FILES)
|
||||||
|
$(GENL_TOOLS)_SMDEP_PATHS := $(SPATH)
|
14
rules/sonic-genl-packet-tools.mk
Normal file
14
rules/sonic-genl-packet-tools.mk
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# genl-packet listener package
|
||||||
|
GENL_PACKET_VERSION = 1.0-1
|
||||||
|
GENL_PACKET_DIR = sonic-genl-packet
|
||||||
|
|
||||||
|
GENL_TOOLS_NAME = genl-packet-tools
|
||||||
|
GENL_TOOLS = $(GENL_TOOLS_NAME)_$(GENL_PACKET_VERSION)_$(CONFIGURED_ARCH).deb
|
||||||
|
$(GENL_TOOLS)_SRC_PATH = $(SRC_PATH)/$(GENL_PACKET_DIR)/$(GENL_TOOLS_NAME)/
|
||||||
|
$(GENL_TOOLS)_VERSION =$(GENL_PACKET_VERSION)
|
||||||
|
$(GENL_TOOLS)_NAME = $(GENL_TOOLS_NAME)
|
||||||
|
$(GENL_TOOLS)_DEPENDS += $(LIBNL3_DEV) $(LIBNL_GENL3_DEV)
|
||||||
|
$(GENL_TOOLS)_RDEPENDS += $(LIBNL3) $(LIBNL_GENL3) $(LIBGENL_PACKET)
|
||||||
|
SONIC_DPKG_DEBS += $(GENL_TOOLS)
|
||||||
|
|
||||||
|
|
10
rules/sonic-libgenl-packet.dep
Normal file
10
rules/sonic-libgenl-packet.dep
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
SPATH := $($(LIBGENL_PACKET)_SRC_PATH)
|
||||||
|
DEP_FILES := $(SONIC_COMMON_FILES_LIST)
|
||||||
|
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||||
|
SMDEP_FILES := $(addprefix $(SPATH)/,$(shell cd $(SPATH) && git ls-files))
|
||||||
|
|
||||||
|
$(LIBGENL_PACKET)_CACHE_MODE := GIT_CONTENT_SHA
|
||||||
|
$(LIBGENL_PACKET)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||||
|
$(LIBGENL_PACKET)_DEP_FILES := $(DEP_FILES)
|
||||||
|
$(LIBGENL_PACKET)_SMDEP_FILES := $(SMDEP_FILES)
|
||||||
|
$(LIBGENL_PACKET)_SMDEP_PATHS := $(SPATH)
|
16
rules/sonic-libgenl-packet.mk
Normal file
16
rules/sonic-libgenl-packet.mk
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# genl-packet listener package
|
||||||
|
GENL_PACKET_VERSION = 1.0-1
|
||||||
|
GENL_PACKET_DIR = sonic-genl-packet
|
||||||
|
|
||||||
|
LIBGENL_PACKET_NAME = libgenl-packet
|
||||||
|
LIBGENL_PACKET = $(LIBGENL_PACKET_NAME)_$(GENL_PACKET_VERSION)_$(CONFIGURED_ARCH).deb
|
||||||
|
$(LIBGENL_PACKET)_SRC_PATH = $(SRC_PATH)/$(GENL_PACKET_DIR)/libgenl-packet
|
||||||
|
$(LIBGENL_PACKET)_VERSION = $(LIBGENL_PACKET_VERSION)
|
||||||
|
$(LIBGENL_PACKET)_NAME = $(LIBGENL_PACKET_NAME)
|
||||||
|
$(LIBGENL_PACKET)_DEPENDS += $(LIBNL3_DEV) $(LIBNL_GENL3_DEV)
|
||||||
|
$(LIBGENL_RDEPENDS += $(LIBNL3) $(LIBNL_GENL3)
|
||||||
|
SONIC_DPKG_DEBS += $(LIBGENL_PACKET)
|
||||||
|
|
||||||
|
LIBGENL_PACKET_DEV= $(LIBGENL_PACKET_NAME)-dev_$(GENL_PACKET_VERSION)_$(CONFIGURED_ARCH).deb
|
||||||
|
$(eval $(call add_derived_package,$(LIBGENL_PACKET),$(LIBGENL_PACKET_DEV)))
|
||||||
|
|
1
src/sonic-genl-packet
Submodule
1
src/sonic-genl-packet
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 829cc21762aa5a82b6b5b277da9111d7fc399fc8
|
Loading…
Reference in New Issue
Block a user