Skip to content

Commit 1a915c7

Browse files
anjannathpraveenkumar
authored andcommitted
build: replace amd64 with GOARCH in make target 'release'
this allows to run 'make release' on an arm64 host where build output dir is out/linux-arm64 not out/linux-amd64
1 parent 0849cb8 commit 1a915c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ linux-release: clean lint linux-release-binary embed_crc_helpers gen_release_inf
311311
mkdir $(RELEASE_DIR)
312312

313313
@mkdir -p $(BUILD_DIR)/crc-linux-$(CRC_VERSION)-${GOARCH}
314-
@cp LICENSE $(BUILD_DIR)/linux-amd64/crc $(BUILD_DIR)/crc-linux-$(CRC_VERSION)-${GOARCH}
314+
@cp LICENSE $(BUILD_DIR)/linux-${GOARCH}/crc $(BUILD_DIR)/crc-linux-$(CRC_VERSION)-${GOARCH}
315315
tar cJSf $(RELEASE_DIR)/crc-linux-${GOARCH}.tar.xz -C $(BUILD_DIR) crc-linux-$(CRC_VERSION)-${GOARCH} --owner=0 --group=0
316316

317317
@cp $(RELEASE_INFO) $(RELEASE_DIR)/$(RELEASE_INFO)

0 commit comments

Comments
 (0)