[barefoot][platform] Update BFN platforms (#5419)

* [barefoot][platform] Update BFN platforms (#5356)

1. Added support of BFN newport new platform name.
2. Updated debian version for montara and mavericks platforms.
This commit is contained in:
Vitaliy Senchyshyn 2020-09-27 10:21:02 -07:00 committed by GitHub
parent 7580c846ad
commit 7c849ed037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
22 changed files with 31 additions and 17 deletions

View File

@ -0,0 +1 @@
x86_64-accton_as9516_32d-r0

View File

@ -8,6 +8,7 @@ $(SONIC_ONE_IMAGE)_INSTALLS += $(SYSTEMD_SONIC_GENERATOR)
$(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(BFN_PLATFORM_MODULE) $(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(BFN_PLATFORM_MODULE)
$(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(BFN_MONTARA_PLATFORM_MODULE) $(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(BFN_MONTARA_PLATFORM_MODULE)
$(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(BFN_NEWPORT_PLATFORM_MODULE) $(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(BFN_NEWPORT_PLATFORM_MODULE)
$(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(BFN_NEWPORT_BF_PLATFORM_MODULE)
$(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(WNC_OSW1800_PLATFORM_MODULE) $(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(WNC_OSW1800_PLATFORM_MODULE)
$(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(INGRASYS_S9180_32X_PLATFORM_MODULE) $(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(INGRASYS_S9180_32X_PLATFORM_MODULE)
$(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(INGRASYS_S9280_64X_PLATFORM_MODULE) $(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(INGRASYS_S9280_64X_PLATFORM_MODULE)

View File

@ -4,10 +4,14 @@ BFN_NEWPORT_PLATFORM_MODULE_VERSION = 1.0
export BFN_NEWPORT_PLATFORM_MODULE_VERSION export BFN_NEWPORT_PLATFORM_MODULE_VERSION
BFN_NEWPORT_PLATFORM_MODULE = sonic-platform-modules-bfn-newport_$(BFN_NEWPORT_PLATFORM_MODULE_VERSION)_amd64.deb BFN_NEWPORT_PLATFORM_MODULE = sonic-platform-modules-bfn-newport-as9516_$(BFN_NEWPORT_PLATFORM_MODULE_VERSION)_amd64.deb
$(BFN_NEWPORT_PLATFORM_MODULE)_SRC_PATH = $(PLATFORM_PATH)/sonic-platform-modules-bfn-newport $(BFN_NEWPORT_PLATFORM_MODULE)_SRC_PATH = $(PLATFORM_PATH)/sonic-platform-modules-bfn-newport
$(BFN_NEWPORT_PLATFORM_MODULE)_DEPENDS += $(LINUX_HEADERS) $(LINUX_HEADERS_COMMON) $(BFN_NEWPORT_PLATFORM_MODULE)_DEPENDS += $(LINUX_HEADERS) $(LINUX_HEADERS_COMMON)
$(BFN_NEWPORT_PLATFORM_MODULE)_PLATFORM = x86_64-accton_as9516bf_32d-r0 $(BFN_NEWPORT_PLATFORM_MODULE)_PLATFORM = x86_64-accton_as9516_32d-r0
SONIC_DPKG_DEBS += $(BFN_NEWPORT_PLATFORM_MODULE) SONIC_DPKG_DEBS += $(BFN_NEWPORT_PLATFORM_MODULE)
SONIC_STRETCH_DEBS += $(BFN_NEWPORT_PLATFORM_MODULE) BFN_NEWPORT_BF_PLATFORM_MODULE = sonic-platform-modules-bfn-newport-as9516bf_$(BFN_NEWPORT_PLATFORM_MODULE_VERSION)_amd64.deb
$(BFN_NEWPORT_BF_PLATFORM_MODULE)_PLATFORM = x86_64-accton_as9516bf_32d-r0
$(eval $(call add_extra_package,$(BFN_NEWPORT_PLATFORM_MODULE),$(BFN_NEWPORT_BF_PLATFORM_MODULE)))
SONIC_STRETCH_DEBS += $(BFN_NEWPORT_PLATFORM_MODULE)

View File

@ -2,7 +2,7 @@ Source: sonic-platform-modules-bfn-montara
Section: main Section: main
Priority: extra Priority: extra
Maintainer: Support <support@edge-core.com> Maintainer: Support <support@edge-core.com>
Build-Depends: debhelper (>= 8.0.0), bzip2 Build-Depends: debhelper (>= 9.0.0), bzip2
Standards-Version: 3.9.3 Standards-Version: 3.9.3
Package: sonic-platform-modules-bfn-montara Package: sonic-platform-modules-bfn-montara

View File

@ -2,10 +2,15 @@ Source: sonic-platform-modules-bfn-newport
Section: main Section: main
Priority: extra Priority: extra
Maintainer: Support <support@edge-core.com> Maintainer: Support <support@edge-core.com>
Build-Depends: debhelper (>= 8.0.0), bzip2 Build-Depends: debhelper (>= 9.0.0), bzip2
Standards-Version: 3.9.3 Standards-Version: 3.9.3
Package: sonic-platform-modules-bfn-newport Package: sonic-platform-modules-bfn-newport-as9516
Architecture: amd64
Depends: linux-image-4.9.0-11-2-amd64
Description: kernel module for bfn platform fpga and scripts for the devices such as fan, led, sfp
Package: sonic-platform-modules-bfn-newport-as9516bf
Architecture: amd64 Architecture: amd64
Depends: linux-image-4.9.0-11-2-amd64 Depends: linux-image-4.9.0-11-2-amd64
Description: kernel module for bfn platform fpga and scripts for the devices such as fan, led, sfp Description: kernel module for bfn platform fpga and scripts for the devices such as fan, led, sfp

View File

@ -2,12 +2,13 @@
export INSTALL_MOD_DIR:=extra export INSTALL_MOD_DIR:=extra
PACKAGE_NAME := sonic-platform-modules-bfn-newport PACKAGE_PRE_NAME := sonic-platform-modules-bfn-newport
KVERSION ?= $(shell uname -r) KVERSION ?= $(shell uname -r)
KERNEL_SRC := /lib/modules/$(KVERSION) KERNEL_SRC := /lib/modules/$(KVERSION)
MODULE_SRC := $(shell pwd)/modules MODULE_SRC := $(shell pwd)/modules
SCRIPT_SRC := $(shell pwd)/scripts SCRIPT_SRC := $(shell pwd)/scripts
CONFIGS_SRC := $(shell pwd)/configs CONFIGS_SRC := $(shell pwd)/configs
MODULE_NAMES := as9516 as9516bf
%: %:
dh $@ dh $@
@ -16,12 +17,14 @@ override_dh_auto_build:
make -C $(KERNEL_SRC)/build M=$(MODULE_SRC) make -C $(KERNEL_SRC)/build M=$(MODULE_SRC)
override_dh_auto_install: override_dh_auto_install:
dh_installdirs -p$(PACKAGE_NAME) $(KERNEL_SRC)/$(INSTALL_MOD_DIR) (for mod in $(MODULE_NAMES); do \
cp $(MODULE_SRC)/*.ko debian/$(PACKAGE_NAME)/$(KERNEL_SRC)/$(INSTALL_MOD_DIR) dh_installdirs -p$(PACKAGE_PRE_NAME)-$${mod} $(KERNEL_SRC)/$(INSTALL_MOD_DIR); \
dh_installdirs -p$(PACKAGE_NAME) usr/local/bin cp $(MODULE_SRC)/*.ko debian/$(PACKAGE_PRE_NAME)-$${mod}/$(KERNEL_SRC)/$(INSTALL_MOD_DIR); \
cp -r $(SCRIPT_SRC)/* debian/$(PACKAGE_NAME)/usr/local/bin dh_installdirs -p$(PACKAGE_PRE_NAME)-$${mod} usr/local/bin; \
dh_installdirs -p$(PACKAGE_NAME) etc/network/interfaces.d/ cp -r $(SCRIPT_SRC)/* debian/$(PACKAGE_PRE_NAME)-$${mod}/usr/local/bin; \
cp -r $(CONFIGS_SRC)/network/interfaces.d/* debian/$(PACKAGE_NAME)/etc/network/interfaces.d/ dh_installdirs -p$(PACKAGE_PRE_NAME)-$${mod} etc/network/interfaces.d/; \
cp -r $(CONFIGS_SRC)/network/interfaces.d/* debian/$(PACKAGE_PRE_NAME)-$${mod}/etc/network/interfaces.d/; \
done)
override_dh_usrlocal: override_dh_usrlocal:

View File

@ -2,7 +2,7 @@ Source: sonic-platform-modules-bfn
Section: main Section: main
Priority: extra Priority: extra
Maintainer: support <support@edge-core.com> Maintainer: support <support@edge-core.com>
Build-Depends: debhelper (>= 8.0.0), bzip2 Build-Depends: debhelper (>= 9.0.0), bzip2
Standards-Version: 3.9.3 Standards-Version: 3.9.3
Package: sonic-platform-modules-bfn Package: sonic-platform-modules-bfn