From a9126da2d990e1a62a4d26b472d86393330210ee Mon Sep 17 00:00:00 2001 From: ganglv <88995770+ganglyu@users.noreply.github.com> Date: Mon, 3 Jul 2023 09:41:35 +0800 Subject: [PATCH] Update makefile to support armhf (#132) Why I did it Telemetry service crashed on armhf platform. How I did it Update makefile, and armhf is 32-bit. How to verify it Install new image on armhf platform, and telemetry service should be fine. --- swsscommon/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/swsscommon/Makefile b/swsscommon/Makefile index 79bdc572..7ca2a18e 100644 --- a/swsscommon/Makefile +++ b/swsscommon/Makefile @@ -6,6 +6,10 @@ SWIG_FLAG = -go -cgo -c++ -intgosize 64 ifeq ($(CONFIGURED_ARCH),arm64) SWIG_FLAG += -DSWIGWORDSIZE64 endif +ifeq ($(CONFIGURED_ARCH),armhf) +SWIG_FLAG = -go -cgo -c++ -intgosize 32 -DSWIGWORDSIZE32 +endif + .PHONY: all clean @@ -14,4 +18,4 @@ all: $(SWIG) $(SWIG_FLAG) -I/usr/include/swss/ swsscommon.i clean: - $(RM) *.go *.cxx *.i \ No newline at end of file + $(RM) *.go *.cxx *.i