Make changes needed to build a basic Broadcom image
Vendor-specific SAI modules have been commented out. Bootup has not been tested. Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
This commit is contained in:
parent
33e4b7f90e
commit
d01d8ca5d5
@ -29,3 +29,5 @@ $(DOCKER_SYNCD_BRCM_DNX_RPC)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
||||
$(DOCKER_SYNCD_BRCM_DNX_RPC)_BASE_IMAGE_FILES += bcmcmd:/usr/bin/bcmcmd
|
||||
$(DOCKER_SYNCD_BRCM_DNX_RPC)_BASE_IMAGE_FILES += bcmsh:/usr/bin/bcmsh
|
||||
$(DOCKER_SYNCD_BRCM_DNX_RPC)_MACHINE = broadcom-dnx
|
||||
|
||||
SONIC_BUSTER_DOCKERS += $(DOCKER_SYNCD_BRCM_DNX_RPC)
|
||||
|
@ -46,3 +46,5 @@ $(DOCKER_SYNCD_DNX_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
||||
$(DOCKER_SYNCD_DNX_BASE)_BASE_IMAGE_FILES += bcmcmd:/usr/bin/bcmcmd
|
||||
$(DOCKER_SYNCD_DNX_BASE)_BASE_IMAGE_FILES += bcmsh:/usr/bin/bcmsh
|
||||
$(DOCKER_SYNCD_DNX_BASE)_BASE_IMAGE_FILES += bcm_common:/usr/bin/bcm_common
|
||||
|
||||
SONIC_BUSTER_DOCKERS += $(DOCKER_SYNCD_DNX_BASE)
|
||||
|
@ -28,3 +28,5 @@ $(DOCKER_SYNCD_BRCM_RPC)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
||||
$(DOCKER_SYNCD_BRCM_RPC)_BASE_IMAGE_FILES += bcmcmd:/usr/bin/bcmcmd
|
||||
$(DOCKER_SYNCD_BRCM_RPC)_BASE_IMAGE_FILES += bcmsh:/usr/bin/bcmsh
|
||||
$(DOCKER_SYNCD_BRCM_RPC)_MACHINE = broadcom
|
||||
|
||||
SONIC_BUSTER_DOCKERS += $(DOCKER_SYNCD_BRCM_RPC)
|
||||
|
@ -22,3 +22,5 @@ $(DOCKER_SYNCD_BASE)_RUN_OPT += -v /usr/share/sonic/device/x86_64-broadcom_commo
|
||||
$(DOCKER_SYNCD_BASE)_BASE_IMAGE_FILES += bcmcmd:/usr/bin/bcmcmd
|
||||
$(DOCKER_SYNCD_BASE)_BASE_IMAGE_FILES += bcmsh:/usr/bin/bcmsh
|
||||
$(DOCKER_SYNCD_BASE)_BASE_IMAGE_FILES += bcm_common:/usr/bin/bcm_common
|
||||
|
||||
SONIC_BUSTER_DOCKERS += $(DOCKER_SYNCD_BASE)
|
||||
|
@ -1,20 +1,20 @@
|
||||
include $(PLATFORM_PATH)/sai-modules.mk
|
||||
include $(PLATFORM_PATH)/sai.mk
|
||||
include $(PLATFORM_PATH)/platform-modules-nokia.mk
|
||||
include $(PLATFORM_PATH)/platform-modules-dell.mk
|
||||
include $(PLATFORM_PATH)/platform-modules-arista.mk
|
||||
include $(PLATFORM_PATH)/platform-modules-ingrasys.mk
|
||||
include $(PLATFORM_PATH)/platform-modules-accton.mk
|
||||
include $(PLATFORM_PATH)/platform-modules-alphanetworks.mk
|
||||
include $(PLATFORM_PATH)/platform-modules-inventec.mk
|
||||
include $(PLATFORM_PATH)/platform-modules-cel.mk
|
||||
include $(PLATFORM_PATH)/platform-modules-delta.mk
|
||||
include $(PLATFORM_PATH)/platform-modules-quanta.mk
|
||||
#include $(PLATFORM_PATH)/platform-modules-mitac.mk
|
||||
include $(PLATFORM_PATH)/platform-modules-juniper.mk
|
||||
include $(PLATFORM_PATH)/platform-modules-brcm-xlr-gts.mk
|
||||
include $(PLATFORM_PATH)/platform-modules-ruijie.mk
|
||||
include $(PLATFORM_PATH)/platform-modules-ragile.mk
|
||||
#include $(PLATFORM_PATH)/platform-modules-nokia.mk
|
||||
#include $(PLATFORM_PATH)/platform-modules-dell.mk
|
||||
#include $(PLATFORM_PATH)/platform-modules-arista.mk
|
||||
#include $(PLATFORM_PATH)/platform-modules-ingrasys.mk
|
||||
#include $(PLATFORM_PATH)/platform-modules-accton.mk
|
||||
#include $(PLATFORM_PATH)/platform-modules-alphanetworks.mk
|
||||
#include $(PLATFORM_PATH)/platform-modules-inventec.mk
|
||||
#include $(PLATFORM_PATH)/platform-modules-cel.mk
|
||||
#include $(PLATFORM_PATH)/platform-modules-delta.mk
|
||||
#include $(PLATFORM_PATH)/platform-modules-quanta.mk
|
||||
##include $(PLATFORM_PATH)/platform-modules-mitac.mk
|
||||
#include $(PLATFORM_PATH)/platform-modules-juniper.mk
|
||||
#include $(PLATFORM_PATH)/platform-modules-brcm-xlr-gts.mk
|
||||
#include $(PLATFORM_PATH)/platform-modules-ruijie.mk
|
||||
#include $(PLATFORM_PATH)/platform-modules-ragile.mk
|
||||
include $(PLATFORM_PATH)/docker-syncd-brcm.mk
|
||||
include $(PLATFORM_PATH)/docker-syncd-brcm-rpc.mk
|
||||
include $(PLATFORM_PATH)/docker-saiserver-brcm.mk
|
||||
|
@ -12,7 +12,7 @@ include /usr/share/dpkg/pkg-info.mk
|
||||
|
||||
export INSTALL_MOD_DIR:=extra
|
||||
|
||||
PYTHON ?= python2
|
||||
PYTHON ?= python3
|
||||
|
||||
PACKAGE_PRE_NAME := sonic-platform-pddf
|
||||
KVERSION ?= $(shell uname -r)
|
||||
|
@ -115,7 +115,7 @@ static ssize_t do_device_operation(struct device *dev, struct device_attribute *
|
||||
strcpy(board_info.type, device_ptr->dev_type);
|
||||
|
||||
/*pddf_dbg(KERN_ERR "Creating a client %s on 0x%x, platform_data 0x%x\n", board_info.type, board_info.addr, board_info.platform_data);*/
|
||||
client_ptr = i2c_new_device(adapter, &board_info);
|
||||
client_ptr = i2c_new_client_device(adapter, &board_info);
|
||||
|
||||
if (client_ptr != NULL) {
|
||||
i2c_put_adapter(adapter);
|
||||
|
Reference in New Issue
Block a user