Skip to content

Commit

Permalink
[build][arm64] disable p4rt compile on arm64 for bazel not work
Browse files Browse the repository at this point in the history
  • Loading branch information
LuiSzee committed Nov 26, 2022
1 parent e524923 commit 5cd141a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions slave.mk
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,15 @@ endif
override INCLUDE_P4RT = n
endif

# Pre-built Bazel is not available for arm64, so exclude P4RT
# TODO(PINS): Remove when Bazel binaries are available for arm64
ifeq ($(CONFIGURED_ARCH),arm64)
ifeq ($(INCLUDE_P4RT),y)
$(Q)echo "Disabling P4RT due to incompatible CPU architecture: $(CONFIGURED_ARCH)"
endif
override INCLUDE_P4RT = n
endif

ifeq ($(SONIC_INCLUDE_MACSEC),y)
INCLUDE_MACSEC = y
endif
Expand Down

0 comments on commit 5cd141a

Please sign in to comment.