Skip to content

Commit

Permalink
Fix for Accton platform build failure when doing incremental build (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
FuzailBrcm authored May 9, 2022
1 parent dc6f325 commit f579f61
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion platform/broadcom/platform-modules-accton.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 3 additions & 0 deletions platform/pddf/i2c/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -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

1 change: 1 addition & 0 deletions platform/pddf/i2c/debian/sonic-platform-pddf-sym.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Module.symvers.PDDF sonic/platform/pddf/i2c
2 changes: 2 additions & 0 deletions platform/pddf/i2c/debian/sonic-platform-pddf-sym.postinst
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions platform/pddf/platform-modules-pddf.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit f579f61

Please sign in to comment.