Skip to content

Commit 58d7e13

Browse files
authored
[build]: Add an artificial dependency between two modules for centec-arm64 (#19914)
For centec-arm64, both platform-modules-fs and platform-modules-e530 try to compile the same directory of kernel sources. If both compilations are running at the same time, then this is going to lead to errors. Fix this by introducing an artificial dependency between the two so that the compilations are forced to be serialized. Signed-off-by: Saikrishna Arcot <[email protected]>
1 parent 7bdf8d4 commit 58d7e13

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

platform/centec-arm64/platform-modules-fs.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@ FS_S5800_48T4S_PLATFORM_MODULE = platform-modules-s5800-48t4s_$(FS_S5800_48T4S_P
99
$(FS_S5800_48T4S_PLATFORM_MODULE)_SRC_PATH = $(PLATFORM_PATH)/sonic-platform-modules-fs
1010
$(FS_S5800_48T4S_PLATFORM_MODULE)_DEPENDS += $(LINUX_HEADERS) $(LINUX_HEADERS_COMMON)
1111
$(FS_S5800_48T4S_PLATFORM_MODULE)_PLATFORM = arm64-fs_s5800_48t4s-r0
12+
# Both this and the e530 modules compile ../centec/centec-dal/, which causes a problem
13+
# if both are being compiled at the same time. To get around that, add an artificial
14+
# dependency here so that this part is serialized.
15+
$(FS_S5800_48T4S_PLATFORM_MODULE)_AFTER = $(CENTEC_E530_48T4X_P_PLATFORM_MODULE)
1216
SONIC_DPKG_DEBS += $(FS_S5800_48T4S_PLATFORM_MODULE)

0 commit comments

Comments
 (0)