From b9b38791bc5fd81f846789677ca873345fbf2048 Mon Sep 17 00:00:00 2001 From: zitingguo Date: Fri, 22 May 2026 10:35:35 +0800 Subject: [PATCH] [bcm-genl] Restore DCBDIR path fallback sdk-6.5.35-xgs unconditionally errors when DCBDIR is unset, which breaks the SONiC opennsl-modules deb build (debian/rules does not pass DCBDIR). sdk-6.5.34-xgs and earlier branches default DCBDIR to \/systems/linux/kernel/modules/dcb -- restore that pattern here so the SONiC build can clean/compile bcm-genl without external configuration. Signed-off-by: zitingguo --- systems/linux/kernel/modules/bcm-genl/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/systems/linux/kernel/modules/bcm-genl/Makefile b/systems/linux/kernel/modules/bcm-genl/Makefile index 76efd38..43e620a 100644 --- a/systems/linux/kernel/modules/bcm-genl/Makefile +++ b/systems/linux/kernel/modules/bcm-genl/Makefile @@ -35,7 +35,8 @@ include ${SDK}/make/Make.config LIBS = $(LIBDIR)/libkern.a ifndef DCBDIR -$(error 'The $$DCBDIR variable is not set') +DCBDIR = $(SDK)/systems/linux/kernel/modules/dcb +# $(error 'The $$DCBDIR variable is not set') endif ifeq (1,$(NO_PRECOMPILED_MODULE)) $(error 'DCB_LIB build is not supported if NO_PRECOMPILED_MODULE=1')