Skip to content

Commit

Permalink
Update makefile to support armhf (#132) (#133)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ganglyu authored Jul 6, 2023
1 parent 88ee65d commit d1467d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion swsscommon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -14,4 +18,4 @@ all:
$(SWIG) $(SWIG_FLAG) -I/usr/include/swss/ swsscommon.i

clean:
$(RM) *.go *.cxx *.i
$(RM) *.go *.cxx *.i

0 comments on commit d1467d3

Please sign in to comment.