From 8acff5ede65c299a207e2fac30942dcda1d8d699 Mon Sep 17 00:00:00 2001 From: Links2004 Date: Sat, 6 Apr 2024 10:56:22 +0200 Subject: [PATCH] Add armv7 support This allows the nfd to run on arm devices like the Raspberry Pi > 2 with armv7 core or armv8 in 32Bit mode. The build tests will only be run for linux/amd64 and linux/arm64. Releases will be made for all Platforms. --- Makefile | 2 +- scripts/test-infra/build-image-cross.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f77e7a9a9..12514dd3a 100644 --- a/Makefile +++ b/Makefile @@ -63,7 +63,7 @@ BUILD_FLAGS = -tags osusergo,netgo \ -ldflags "-s -w -extldflags=-static -X sigs.k8s.io/node-feature-discovery/pkg/version.version=$(VERSION) -X sigs.k8s.io/node-feature-discovery/pkg/utils/hostpath.pathPrefix=$(HOSTMOUNT_PREFIX)" # multi-arch build with buildx -IMAGE_ALL_PLATFORMS ?= linux/amd64,linux/arm64 +IMAGE_ALL_PLATFORMS ?= linux/amd64,linux/arm64,linux/arm/v7 # enable buildx ensure-buildx: diff --git a/scripts/test-infra/build-image-cross.sh b/scripts/test-infra/build-image-cross.sh index 5ec84783d..444f7260d 100755 --- a/scripts/test-infra/build-image-cross.sh +++ b/scripts/test-infra/build-image-cross.sh @@ -1,4 +1,4 @@ #!/bin/bash -e # cross build -make image-all +IMAGE_ALL_PLATFORMS=linux/amd64,linux/arm64 make image-all