Fix for Accton platform build failure when doing incremental build (#10541)

This commit is contained in:
FuzailBrcm 2022-05-10 00:47:38 +05:30 committed by GitHub
parent dc6f3252aa
commit f579f61e4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 1 deletions

View File

@ -44,7 +44,7 @@ export ACCTON_AS7315_27XB_PLATFORM_MODULE_VERSION
ACCTON_AS7712_32X_PLATFORM_MODULE = sonic-platform-accton-as7712-32x_$(ACCTON_AS7712_32X_PLATFORM_MODULE_VERSION)_amd64.deb
$(ACCTON_AS7712_32X_PLATFORM_MODULE)_SRC_PATH = $(PLATFORM_PATH)/sonic-platform-modules-accton
$(ACCTON_AS7712_32X_PLATFORM_MODULE)_DEPENDS += $(LINUX_HEADERS) $(LINUX_HEADERS_COMMON)
$(ACCTON_AS7712_32X_PLATFORM_MODULE)_DEPENDS += $(LINUX_HEADERS) $(LINUX_HEADERS_COMMON) $(PDDF_PLATFORM_MODULE_SYM)
$(ACCTON_AS7712_32X_PLATFORM_MODULE)_PLATFORM = x86_64-accton_as7712_32x-r0
SONIC_DPKG_DEBS += $(ACCTON_AS7712_32X_PLATFORM_MODULE)

View File

@ -9,4 +9,7 @@ Package: sonic-platform-pddf
Architecture: amd64
Description: kernel modules for platform devices such as psu, fan, sfp, led
Package: sonic-platform-pddf-sym
Architecture: amd64
Description: PDDF kernel modules symbols which could be used for other platform modules build

View File

@ -0,0 +1 @@
Module.symvers.PDDF sonic/platform/pddf/i2c

View File

@ -0,0 +1,2 @@
chmod 777 sonic/platform/pddf/i2c/Module.symvers.PDDF
chown $(stat -c "%u:%g" sonic/platform/pddf/i2c) sonic/platform/pddf/i2c/Module.symvers.PDDF

View File

@ -9,4 +9,7 @@ $(PDDF_PLATFORM_MODULE)_SRC_PATH = $(PLATFORM_PDDF_PATH)/i2c
$(PDDF_PLATFORM_MODULE)_DEPENDS += $(LINUX_HEADERS) $(LINUX_HEADERS_COMMON)
SONIC_DPKG_DEBS += $(PDDF_PLATFORM_MODULE)
PDDF_PLATFORM_MODULE_SYM = sonic-platform-pddf-sym_$(PDDF_PLATFORM_MODULE_VERSION)_amd64.deb
$(eval $(call add_derived_package,$(PDDF_PLATFORM_MODULE),$(PDDF_PLATFORM_MODULE_SYM)))
SONIC_STRETCH_DEBS += $(PDDF_PLATFORM_MODULE)