From b9b8d74f0fb7ff4c64ea348d94b4a9245fd770d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20H=C3=B6ner?= Date: Thu, 18 Apr 2024 15:36:43 +0200 Subject: [PATCH] Makefile: allow docker targets to work on macOS (#17) --- Makefile | 2 +- support/ebpf/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b6c7efb9..370b5974 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ UNAME_NATIVE_ARCH:=$(shell uname -m) ifeq ($(UNAME_NATIVE_ARCH),x86_64) NATIVE_ARCH:=amd64 -else ifeq ($(UNAME_NATIVE_ARCH),aarch64) +else ifneq (,$(filter $(UNAME_NATIVE_ARCH),aarch64 arm64)) NATIVE_ARCH:=arm64 else $(error Unsupported architecture: $(UNAME_NATIVE_ARCH)) diff --git a/support/ebpf/Makefile b/support/ebpf/Makefile index f30d23dc..315d9526 100644 --- a/support/ebpf/Makefile +++ b/support/ebpf/Makefile @@ -11,7 +11,7 @@ NATIVE_ARCH:=$(shell uname -m) ifeq ($(NATIVE_ARCH),x86_64) NATIVE_ARCH:=x86 -else ifeq ($(NATIVE_ARCH),aarch64) +else ifneq (,$(filter $(NATIVE_ARCH),aarch64 arm64)) NATIVE_ARCH:=arm64 else $(error Unsupported architecture: $(NATIVE_ARCH))