From 221290bcc7036eef81d9bb706ed888007efa308c Mon Sep 17 00:00:00 2001 From: Mauro Ezequiel Moltrasio Date: Wed, 11 Sep 2024 10:07:20 +0200 Subject: [PATCH] Determine host architecture without using docker (#1834) --- Makefile-constants.mk | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Makefile-constants.mk b/Makefile-constants.mk index e096162b3c..b4b4ebd83a 100644 --- a/Makefile-constants.mk +++ b/Makefile-constants.mk @@ -6,13 +6,7 @@ ifeq ($(COLLECTOR_TAG),) COLLECTOR_TAG=$(shell git describe --tags --abbrev=10 --dirty) endif -DOCKER_CLI := $(shell command -v docker 2>/dev/null) - -ifeq ($(DOCKER_CLI),) -$(error "docker is required for building") -endif - -HOST_ARCH := $(shell docker system info --format '{{.Architecture}}') +HOST_ARCH := $(shell uname -m | sed -e 's/x86_64/amd64/' -e 's/aarch64/arm64/') PLATFORM ?= "linux/$(HOST_ARCH)" USE_VALGRIND ?= false