Skip to content

Commit 47b9495

Browse files
committed
kernel: fix hv tools build for arm64
1 parent 2be94c2 commit 47b9495

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-sources/coreos-sources-6.10.9.ebuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,5 @@ UNIPATCH_LIST="
4242
${PATCH_DIR}/z0005-efi-Lock-down-the-kernel-if-booted-in-secure-boot-mo.patch \
4343
${PATCH_DIR}/z0006-mtd-phram-slram-Disable-when-the-kernel-is-locked-do.patch \
4444
${PATCH_DIR}/z0007-arm64-add-kernel-config-option-to-lock-down-when-in-.patch \
45+
${PATCH_DIR}/z0008-tools-hv-fix-cross-compilation-for-ARM64.patch \
4546
"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
From 0890eb69da82aec12518a5c2998afea467a0e9d7 Mon Sep 17 00:00:00 2001
2+
From: Adrian Vladu <avladu@cloudbasesolutions.com>
3+
Date: Thu, 19 Sep 2024 07:59:59 +0000
4+
Subject: [PATCH] tools: hv: fix cross-compilation for ARM64
5+
6+
---
7+
tools/hv/Makefile | 4 +++-
8+
1 file changed, 3 insertions(+), 1 deletion(-)
9+
10+
diff --git a/tools/hv/Makefile b/tools/hv/Makefile
11+
index 2e60e2c212cd..d72554cedbf6 100644
12+
--- a/tools/hv/Makefile
13+
+++ b/tools/hv/Makefile
14+
@@ -2,7 +2,9 @@
15+
# Makefile for Hyper-V tools
16+
include ../scripts/Makefile.include
17+
18+
+ifeq ($(ARCH),)
19+
ARCH := $(shell uname -m 2>/dev/null)
20+
+endif
21+
sbindir ?= /usr/sbin
22+
libexecdir ?= /usr/libexec
23+
sharedstatedir ?= /var/lib
24+
@@ -20,7 +22,7 @@ override CFLAGS += -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include
25+
override CFLAGS += -Wno-address-of-packed-member
26+
27+
ALL_TARGETS := hv_kvp_daemon hv_vss_daemon
28+
-ifneq ($(ARCH), aarch64)
29+
+ifeq ($(filter $(ARCH),aarch64 arm64),)
30+
ALL_TARGETS += hv_fcopy_uio_daemon
31+
endif
32+
ALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS))
33+
--
34+
2.34.1
35+

0 commit comments

Comments
 (0)