diff --git a/slave.mk b/slave.mk index 32ca3cb2bfed..2b7a8bd1c568 100644 --- a/slave.mk +++ b/slave.mk @@ -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