From cc9ecace262070807a0cead52c22296fdd7f1536 Mon Sep 17 00:00:00 2001 From: Stepan Blyshchak <38952541+stepanblyschak@users.noreply.github.com> Date: Tue, 7 Dec 2021 17:32:56 +0200 Subject: [PATCH] [slave.mk] fix error: recursive variable references itself. (#9385) - Why I did it To fix the above error when running make slave.mk with PLATFORM=vs. - How I did it Instead of: export BUILD_MULTIASIC_KVM=$(BUILD_MULTIASIC_KVM) do just the export: export BUILD_MULTIASIC_KVM BUILD_MULTIASIC_KVM is already defined to be either empty, or from rules/config or from the environment - from Makefile.work. No need to dereference the variable in the export statement. - How to verify it PLATFORM=vs make -f slave.mk list # verify no error and BUILD_MULTIASIC_KVM is empty in the output PLATFORM=vs BUILD_MULTIASIC_KVM=y make -f slave.mk list # verify no error and BUILD_MULTIASIC_KVM is set to y in the output Signed-off-by: Stepan Blyshchak --- slave.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slave.mk b/slave.mk index 10b71bf0a1..a954055bfc 100644 --- a/slave.mk +++ b/slave.mk @@ -243,7 +243,7 @@ MAKEFLAGS += -j $(SONIC_BUILD_JOBS) export SONIC_CONFIG_MAKE_JOBS ifeq ($(CONFIGURED_PLATFORM),vs) -export BUILD_MULTIASIC_KVM=$(BUILD_MULTIASIC_KVM) +export BUILD_MULTIASIC_KVM endif ###############################################################################